diff --git a/ui/packages/app-shell/src/layout/__tests__/chromeBannerHost.bannerHeight-37528.test.tsx b/ui/packages/app-shell/src/layout/__tests__/chromeBannerHost.bannerHeight-37528.test.tsx
new file mode 100644
index 00000000000..17cb43996e0
--- /dev/null
+++ b/ui/packages/app-shell/src/layout/__tests__/chromeBannerHost.bannerHeight-37528.test.tsx
@@ -0,0 +1,111 @@
+// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
+
+/**
+ * The banners drawn in place, above the console's routes, publish their
+ * height as `--os-chrome-banners` so a full-height page can give it back
+ * (objectstack#37528). Drawn into an app layout's host they publish nothing:
+ * the host sits inside the content area the page already sizes.
+ */
+import { describe, it, expect, afterEach, beforeEach, vi } from 'vitest';
+import { render, cleanup, act } from '@testing-library/react';
+import * as React from 'react';
+import {
+ CHROME_BANNERS_HEIGHT_VAR,
+ CONSOLE_FULL_HEIGHT,
+ ChromeBannerHost,
+ ChromeBannerSlot,
+} from '../chromeBannerHost';
+
+const observers: Array<{ callback: () => void }> = [];
+
+class FakeResizeObserver {
+ callback: () => void;
+ constructor(callback: () => void) {
+ this.callback = callback;
+ observers.push(this);
+ }
+ observe() {}
+ unobserve() {}
+ disconnect() {}
+}
+
+/** Every element with `data-h` reports that many pixels of height. */
+function stubHeights() {
+ return vi.spyOn(HTMLElement.prototype, 'getBoundingClientRect').mockImplementation(function (this: HTMLElement) {
+ const height = Number(this.getAttribute('data-h') ?? 0);
+ return { height, width: 0, top: 0, left: 0, right: 0, bottom: height, x: 0, y: 0, toJSON: () => ({}) } as DOMRect;
+ });
+}
+
+const published = () => document.documentElement.style.getPropertyValue(CHROME_BANNERS_HEIGHT_VAR);
+
+beforeEach(() => {
+ observers.length = 0;
+ vi.stubGlobal('ResizeObserver', FakeResizeObserver);
+ document.documentElement.style.removeProperty(CHROME_BANNERS_HEIGHT_VAR);
+});
+
+afterEach(() => {
+ cleanup();
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+});
+
+describe('ChromeBannerSlot — the in-place banners publish their height (objectstack#37528)', () => {
+ it('in place: the summed height of the drawn banners, cleared on unmount', () => {
+ stubHeights();
+ const { unmount } = render(
+
+ impersonating
+ read rate
+ ,
+ );
+ expect(published()).toBe('77px');
+
+ unmount();
+ expect(published(), 'nothing drawn, nothing given back').toBe('');
+ });
+
+ it('in place with no banner drawn (an ordinary session): nothing is published', () => {
+ stubHeights();
+ render(
{null});
+ expect(published()).toBe('');
+ });
+
+ it('follows a banner that grows (it wraps on a narrow screen) or goes away', () => {
+ stubHeights();
+ const Banners = ({ show, height }: { show: boolean; height: number }) => (
+
{show ? impersonating
: null}
+ );
+ const { rerender, container } = render(
);
+ expect(published()).toBe('41px');
+
+ container.querySelector('[data-h]')!.setAttribute('data-h', '77');
+ act(() => observers.forEach((o) => o.callback()));
+ expect(published(), 'a resize republishes').toBe('77px');
+
+ rerender(
);
+ act(() => observers.forEach((o) => o.callback()));
+ expect(published(), 'the banner ended').toBe('');
+ });
+
+ it("drawn into an app layout's host: nothing is published", () => {
+ stubHeights();
+ render(
+ <>
+
+
+ impersonating
+
+ >,
+ );
+ expect(document.querySelector('[data-testid="console-chrome-banners"]')?.textContent).toContain('impersonating');
+ expect(published()).toBe('');
+ });
+
+ it('the full-height classes take the viewport less the published height, 0 when unset', () => {
+ for (const cls of Object.values(CONSOLE_FULL_HEIGHT)) {
+ expect(cls).toContain(`var(${CHROME_BANNERS_HEIGHT_VAR},0px)`);
+ }
+ });
+});
diff --git a/ui/packages/app-shell/src/layout/chromeBannerHost.tsx b/ui/packages/app-shell/src/layout/chromeBannerHost.tsx
index 5c3ab0489d6..3aebfed57c2 100644
--- a/ui/packages/app-shell/src/layout/chromeBannerHost.tsx
+++ b/ui/packages/app-shell/src/layout/chromeBannerHost.tsx
@@ -53,8 +53,81 @@ export function ChromeBannerHost() {
return
;
}
-/** Draws `children` into the app layout's host when one is mounted, in place otherwise. */
+/**
+ * The CSS custom property that carries the height of the banners drawn in
+ * place, above the console's routes: `0px` (unset) while none is drawn there.
+ */
+export const CHROME_BANNERS_HEIGHT_VAR = '--os-chrome-banners';
+
+/**
+ * Full-height classes that give the banners drawn in place their height back
+ * (objectstack#37528). A banner in place is in flow above the page, so a page
+ * that takes the whole viewport would be taller than the window by the
+ * banner's height. Outside the console, or while no banner is drawn in place,
+ * the property is unset and these are the plain viewport heights.
+ *
+ * Literal strings, so Tailwind's scan sees every class.
+ */
+export const CONSOLE_FULL_HEIGHT = {
+ /** `h-screen` less the banners. */
+ screen: 'h-[calc(100vh-var(--os-chrome-banners,0px))]',
+ /** `h-svh` less the banners. */
+ svh: 'h-[calc(100svh-var(--os-chrome-banners,0px))]',
+ /** `min-h-svh` less the banners. */
+ minSvh: 'min-h-[calc(100svh-var(--os-chrome-banners,0px))]',
+} as const;
+
+/**
+ * Publishes the summed height of `wrapper`'s children as
+ * {@link CHROME_BANNERS_HEIGHT_VAR} on the document root, and clears it on
+ * unmount. The wrapper is `display: contents`, so the banners keep their own
+ * boxes (and the impersonation banner its `sticky`); each child is measured.
+ */
+function usePublishedBannerHeight(wrapper: React.RefObject
) {
+ React.useLayoutEffect(() => {
+ const el = wrapper.current;
+ if (!el || typeof ResizeObserver === 'undefined') return undefined;
+ const root = document.documentElement;
+ const publish = () => {
+ let height = 0;
+ for (const child of Array.from(el.children)) height += child.getBoundingClientRect().height;
+ if (height > 0) root.style.setProperty(CHROME_BANNERS_HEIGHT_VAR, `${height}px`);
+ else root.style.removeProperty(CHROME_BANNERS_HEIGHT_VAR);
+ };
+ const sizes = new ResizeObserver(publish);
+ const observeChildren = () => {
+ sizes.disconnect();
+ for (const child of Array.from(el.children)) sizes.observe(child);
+ publish();
+ };
+ const children = typeof MutationObserver === 'undefined' ? null : new MutationObserver(observeChildren);
+ children?.observe(el, { childList: true });
+ observeChildren();
+ return () => {
+ sizes.disconnect();
+ children?.disconnect();
+ root.style.removeProperty(CHROME_BANNERS_HEIGHT_VAR);
+ };
+ }, [wrapper]);
+}
+
+function InPlaceBanners({ children }: { children: React.ReactNode }) {
+ const wrapper = React.useRef(null);
+ usePublishedBannerHeight(wrapper);
+ return (
+
+ {children}
+
+ );
+}
+
+/**
+ * Draws `children` into the app layout's host when one is mounted, in place
+ * otherwise. In place, their height is published for the full-height pages
+ * below them ({@link CONSOLE_FULL_HEIGHT}); in the host it is not, since the
+ * host sits inside the content area the page already sizes.
+ */
export function ChromeBannerSlot({ children }: { children: React.ReactNode }) {
const target = useChromeBannerHost();
- return target ? createPortal(children, target) : <>{children}>;
+ return target ? createPortal(children, target) : {children};
}
diff --git a/ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx b/ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx
index 99c7f9a62eb..dd25345a7f1 100644
--- a/ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx
+++ b/ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx
@@ -31,6 +31,7 @@ import { canonicalMetaUrlType } from '@objectstack/spec/shared';
import { resolveI18nLabel, type I18nLabel } from '@objectstack/spec/ui';
import { StudioChatDock, type StudioCopilotStatus, type StudioSurfaceLabel } from './StudioAiCopilot.js';
import { StudioRightSlot } from './StudioRightSlot.js';
+import { CONSOLE_FULL_HEIGHT } from '../../layout/chromeBannerHost.js';
import { StudioTitleRowProvider } from './studioTitleRow.js';
import { useStudioAccentOnBody } from './studioAccent.js';
import { AssistantTopBarButton } from '../../layout/AssistantTopBarButton.js';
@@ -1351,7 +1352,7 @@ function StudioDesignSurfaceBody({ aiSlot, area }: StudioDesignSurfaceProps): Re
sidebar's, under Studio's own collapse cookie (`StudioMenu.tsx`). */}
{/* objectstack#37455 — Studio's graphite on its root: nothing Studio
draws takes the app's theme colour (decision 4 of #37424). */}
-
+
{/* The ADR-0080 `aiSlot` seam — a cloud edition may still inject its own
* left copilot panel; the built-in copilot is the RIGHT dock below. */}
{/* objectstack#32615 — not beside a package that is not there. */}
diff --git a/ui/packages/layout/src/AppShell.tsx b/ui/packages/layout/src/AppShell.tsx
index 5b85bed47ff..e4de6adb699 100644
--- a/ui/packages/layout/src/AppShell.tsx
+++ b/ui/packages/layout/src/AppShell.tsx
@@ -305,7 +305,10 @@ export function AppShell({
useAppShellBranding(branding, branding?.title);
return (
-
+ // The viewport less the banners the console draws above this shell
+ // (`--os-chrome-banners`, objectstack#37528); unset anywhere else. The
+ // `min-h-` replaces the sidebar wrapper's own `min-h-svh` (tailwind-merge).
+
{/* 1. Full-width top bar spanning entire screen. 48 px, the height of
every console frame's bar (objectui#12639): the class is the one
`@object-ui/app-shell` spells as `CONSOLE_TOP_BAR`, and that