Skip to content

bug(platform): the page beside the Home panel ignores the width the panel was resized to #5410

Open

Description

@yannickmonney

Summary

The Home panel is the list of chats, tasks and conversations beside every Home page. Since e71775a (2026-09-29) it can be dragged between 280 and 480 px, and each organization remembers its width (home-panel-width-<orgId>). The rest of the app still lays out as if the panel were 280 px wide:

  1. A reload paints the panel at 280 px, then jumps. The boot shell and the access placeholder draw a fixed 280 px panel. The live panel replaces them at the stored width when the app mounts, so a widened panel moves the whole page by up to 200 px on every reload.
  2. Pages size themselves by the window, not by the column the panel leaves them. A wider panel narrows the page column by up to 200 px, but breakpoints and matchMedia still see the whole window. Pages keep their wide layout in a narrow column:
    • At 1280 px, the task page keeps its 320 px details rail docked and leaves the conversation 427 px instead of 627 px.
    • The projects table pushes a column out of view.
    • At 820 px the page gets 287 px, less than a phone, still with its desktop layout.
  3. The panel itself. Its search field stays 280 px wide inside a 480 px panel, and its 280–480 px range ignores the window size, so on a small window the panel can be wider than the page beside it.

Anchors are on main at 3d802f94f; the feature line (feature-train at 813be1ff4) handles the width the same way: no change to the panel's width handling, the placeholder or the pre-paint script.

What was observed

Setup. v0.5.102 (main at 3d802f94f) in a local workspace (tale init, tale deploy), Chromium through Playwright 1.62.1, signed in as the owner, device scale 1. Content: the starter project "Getting started" and 4 added tasks, one with a long title and description; no model provider. The panel width was set through its own storage key, home-panel-width-<orgId>, which is what the drag handle writes, to 280 (the default and minimum) and 480 (the maximum).

1. Reload with a widened panel (chat page, 1280×800)

Per-frame log of the panel on screen (milliseconds after navigation start) and the browser's layout-shift entries:

Stored 280 Stored 480
Boot shell's stand-in 280 px at 52 ms 280 px at 48 ms
Access placeholder 280 px at 217 ms 280 px at 210 ms
Live panel 280 px at 300 ms 480 px at 293 ms
Layout shift 0.0047, 0.0006 0.0253

The task page with 480 stored is the same: 280 px from 51 ms, 480 px at 350 ms, a 0.0082 shift. The painted frames show the jump. At 277 ms the stand-in panel ends at x≈332 and the composer stand-in spans x≈423–1190. At 345 ms the live panel ends at x≈532 and the composer spans x≈549–1263. This was on localhost with no network delay; on a real connection the 280 px stand-in stays up longer.

2. The page beside the panel

Page column width (the window minus the rail with its border, 53 px, and the panel):

Window Panel 280 Panel 480
820×700 487 287
1024×768 691 491
1280×800 947 747
1440×900 1107 907

What changes on screen at 480 px:

  • Task page (conversation column + details rail):

    Window Panel 280 Panel 480
    1024×768 691, details as a sheet 491, details as a sheet
    1280×800 627 + 320 docked 427 + 320 docked
    1440×900 787 + 320 docked 587 + 320 docked

    At 1280×800 and 480 px the title is cut ("…with all regional fi…"), the description wraps at about 48 characters, and the composer's hint takes two lines.

  • Projects (/projects): the table needs 956 px for its columns and scrolls sideways in its own frame below that. At 1280×800 the frame is 913 px with the panel at 280 (only the row menu out of view) and 713 px at 480 (Sharing, Last activity and the row menu out of view). At 1440×900 everything fits at 280; at 480 the frame is 873 px and Last activity and the row menu are out of view.

  • 820×700 window, 480 px panel: the page gets 287 px; below 768 px the phone layout gives the page the whole window instead. The project's task list cuts titles to 6–7 characters ("Welcom…"), the "Search tasks" field runs past the window's right edge, and the composer's model picker reads "N…". The panel (480 px) is wider than the page.

  • From 1024 px up, the new-chat page and the project's Overview, Files and Agents pages had nothing pushed past the edge at either width, and the board scrolls sideways at every width. At 820 px those pages truncate only the project's name in the breadcrumb.

3. Inside the panel

At 480 px, the view switcher and the rows fill the panel, but the "Search all…" field stays 280 px wide.

Not examined: a chat with messages (no model was connected), the inbox, other browsers, a drag of the handle itself (the width was set through its storage key), and a slow network.

What the code does today

  • Width: remembered per organization and clamped to 280–480 px, whatever the window (home-panel.tsx:167-181), and applied as an inline width (:211-235). use-resizable.ts knows nothing of the window either.
  • Frame: HomeSectionFrame puts the panel and the page side by side, with the page in a flex-1 min-w-0 column ($id.tsx:540-558). Whether the panel exists at all is a window decision (useIsMobile, :550).
  • Boot stand-ins: HomePanelPlaceholder is a fixed w-70, which "Mirrors the real panel's frame (SubPanel list: 280px …) — so the live panel slots in without reflow" (home-panel-placeholder.tsx:12-31). The boot shell bakes it in (dashboard-shell-frame.tsx:71-82), and the dashboard layout shows it while access resolves ($id.tsx:446-459). The pre-paint script reads only whether the panel is open (chat-history-panel-open-<org>), not its width (index.html:164-171). SubPanel's list width is 280 px (sub-panel.tsx:4-14).
  • Task page: the details rail docks on a window query, DOCKED_DETAILS_QUERY = '(min-width: 1280px)', matched by the aside's xl:block (task-page-layout.tsx:30-32, :134-140). Its comment does the arithmetic for the default panel width (1280 − 53 − 280 − 320 = 627 px): "from xl the conversation keeps ~600px next to the rail, the Home panel and these 20rem … docked there, they left the thread a 200px column" (:67-76).
  • Across the app: 35 files under services/platform/app and packages/ui/src decide layout through useMediaQuery, useIsMobile or matchMedia, and 58 files under services/platform/app use md:/lg:/xl: classes; all of these read the window. Container queries, which read the element's own width, appear in 24 files (the thread header and thread layout, cards, stat grids, metrics pages, among others).
  • Search field: SearchInput caps its input at max-w-70 (search-input.tsx:155-160); the Home panel stretches only the wrapper (wrapperClassName="min-w-0 flex-1", home-panel.tsx:770-777).

Constraints

  • The boot shell is one static, prerendered HTML for every route, and its modules stay lean for the prerender. Anything it learns before the first paint comes from the pre-paint script in index.html, which reads org-scoped localStorage before authentication. The width key is already org-scoped.
  • Below md there is no panel: the Home list is a screen of its own on a phone (HomeNavigator, variant="screen").
  • The handle is keyboard-operable (role="separator", arrow keys, aria-valuenow), and must stay so.
  • SearchInput and SubPanel are shared @tale/ui components that the docs and marketing sites use too.

Options

None is preferred; several combine.

  • A. Hand the stored width to the boot stand-ins: the pre-paint script reads home-panel-width-<org> like it reads the open state and sets a CSS variable the placeholders use, or a cookie lets the server render it.
  • B. Let pages size themselves by their column: container queries (Tailwind v4's @container variants, already used by the thread header and cards), or a page-width context fed by a ResizeObserver on the page column, in place of window queries such as DOCKED_DETAILS_QUERY.
  • C. Bound the panel by the window: a maximum that shrinks with the window, a minimum width kept for the page, or folding the panel when the page column would get narrower than a phone.
  • D. Let the panel's search field fill the panel (lift max-w-70 for this use, or make the cap opt-in in SearchInput).
  • E. Guard it: a browser test that renders a Home page beside a 480 px panel (and in an 820 px window) and checks that nothing is cut off and where the task details dock, and a boot-shell test that the stand-in matches a stored width.

Questions

  1. Should the panel's maximum depend on the window, keeping a minimum width for the page, or should every page work down to any column width?
  2. When the page column is as narrow as a phone screen, should the page switch to its phone layout even in a wide window?
  3. Should a reload paint the stored width from the first frame?
  4. Is 480 px the right maximum?

Related

Activity

  1. added
    agent-ready
    on Nov 6, 2026
  2. yannickmonney commented on Nov 14, 2026

    @yannickmonney
    ContributorAuthor

    Decision

    The Home panel keeps its 280–480 px range and the per-organization stored width. What changes is where the drawn width comes from, and how the pages beside the panel react to it.

    • The panel is bounded by the space beside it. The Home row becomes a named container. The drawn width is clamp(280px, var(--home-panel-width, 280px), max(280px, min(480px, 100cqi - 640px))). Container query units resolve to the row from any depth, so the panel, its inner content box and the stand-ins all get the same width. The page keeps at least 640 px whenever the panel can shrink to make room. The stored width is the user's preference and comes back when the window grows; a narrow window never overwrites it. The handle steps from the drawn width, clamps to the effective maximum, and reports both through aria-valuenow and aria-valuemax.
    • A reload paints the stored width from the first frame. The pre-paint script validates and clamps home-panel-width-<org> and sets --home-panel-width on every Home route. The boot shell, the access placeholder and the live panel all use the same expression.
    • Pages size their content by their column. The page column becomes @container/page. Content breakpoints move to container variants in px. The task details rail docks when the column is at least 920 px (600 px conversation plus the 320 px rail). Navigation stays window-driven: below md, the phone layout works as it does today.
    • The panel's search field fills the panel, through a className override. The shared SearchInput default stays as it is.

    Answers

    1. Window-dependent maximum, or every page down to any width? Both. The panel is bounded by its row, and page content adapts to its column.
    2. Phone layout in a phone-narrow column? No. Content adapts instead: a sheet replaces the docked rail, tables use compact forms, toolbars wrap.
    3. Stored width from the first frame? Yes, through the pre-paint script and one shared CSS expression.
    4. Is 480 px right? Yes. With the row bound it is reached only where the page keeps at least 640 px.

    Rationale

    One CSS expression removes the reload jump by construction. It uses container query units because a percentage on the panel's inner box would resolve against the panel itself. Keeping the preference separate from the drawn width protects the user's choice, and stepping the handle from the drawn width keeps the keyboard honest. Using px in both CSS and JS keeps the ARIA values and the dock switch in agreement with what is drawn. Container queries read the column's real width with no flash; the one JS switch takes its first value synchronously.

    Implementation units (all on main)

    1. fix(platform): let the Home panel's search field fill the panel (S). Pass className="max-w-none" to the panel's SearchInput. A browser test checks the field fills the panel at 480 and 280.
    2. fix(platform): bound the Home panel's drawn width by the space beside it (M). Adds the shared 100cqi expression on a named row container and an effective maximum from a ResizeObserver; useResizable gets the drawn width and the effective maximum. Tests at 1280, 1024 and 820 px cover both boxes, the stored value surviving a narrow window, and a visible ArrowLeft step.
    3. fix(platform): paint the stored Home panel width from the first frame (M, after 2). The pre-paint script sets --home-panel-width before its chat-only return, and the placeholder rows use the same container and expression. Boot-script unit tests, a boot-shell render test, and a Playwright check that no layout shift is attributable to the panel.
    4. fix(platform): size the pages beside the Home panel by their column (L, after 2). Adds @container/page, and a usePageColumnMatches hook seeded in a layout effect. The rail docks at a 920 px column: at 1280 it docks with the panel at 280 and opens as a sheet at 480; at 1440 it opens as a sheet at 480 (column 907); at 1600 it docks at 480. Also converts the content breakpoints, adds a guard and adds a manual-test box.

    Cross-issue amendments (decisions taken together with #4934):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions