Skip to content

Floating panel: an app banner is laid out 240 px wide and squeezes the panel body (e2e:panel float-card minimum red on the guest) #778

Closed

Description

@SSFSKIM

Floating panel: an app banner is laid out 240 px wide and squeezes the panel body to about 213 px (e2e:panel "card at its minimum" red on the VM guest)

What fails. e2e/panel.spec.ts:1420, the floating session card (P3-G) › "at its minimum size, with a question waiting in its call's row…", step "the card at its minimum" (:1465): after dragBy(handle, 2000, 2000) the card measures [360, 181], not [360, 240]. It fails on every guest run (2 of 2 at master 1de16dc, plus 3 on 24952ff, one of them a full panel run where the sibling minimum-size scene at :1364, which runs on a stub session source, passed). It passes on the mini's host.

Not the display. Both machines report the same desktop: display=2560x1440@2x (points), and the guest's visible frame is 2560x1320. The window opens at the default 1280 × 820 on both (src/main/window-state.ts:9, and centred() caps it only when the work area is smaller).

The card's clamp is right. placeCard (src/renderer/src/shell/floating.ts:254-259) holds 360 × 240 "unless the body is" smaller and caps the card at the body less 2 × 16 px, as P3-G specifies (docs/doperpowers/plans/2026-10-12-p3-g-shell.md:132). So 181 means the panel's card layer was 213 px tall. With an empty banner row the layer is about 728 px in a 1280 × 820 window: a hosted run's default card was 437 = 0.6 × 728 (docs/doperpowers/plans/2026-10-27-p5-o6-report.md:88). About 515 px is missing.

Cause (product). The scene's replay session launches on the gateway route (launchDefaults, src/shared/composer/launch-defaults.ts:10). A replay skips the launch's relay check (src/engine-host/launcher.ts:121-134), but the renderer's relay monitor counts the session as live through ClaudeUsage and probes the relay at once (src/renderer/src/gateway/relay-monitor.ts:74-78).

  • On the host, ClaudeUsage runs and 127.0.0.1:8641/api/hello answers 200 (checked on the mini).
  • The guest image has no ClaudeUsage, so the monitor posts the warning banner (relay-monitor.ts:62). The banner has a long text, "Open ClaudeUsage", "Retry" and ×.

While the panel floats (mainHidden):

  • the grid is ${sidebar}px 0px 1fr (src/renderer/src/app/shell-geometry.ts:24);
  • the panel leaves rows 1 to 3 for row 3 only (src/renderer/src/panel/PanelRegion.tsx:58);
  • BannerHost keeps col-span-2 (src/renderer/src/app/Shell.tsx:58), so it gets the 240 px sidebar plus the 0 px main column.

The three buttons are shrink-0 and use up almost all of that width, so the text gets almost none and sets about one word per line. That is roughly 26 lines × 19.5 px ≈ 520 px of banner, and the panel row loses that height. This is inferred: the run kept no screenshot or DOM. The arithmetic matches the missing 515 px.

The Toolbar already handles this state (Toolbar.tsx:117: mainHidden || destination !== null ? 'col-start-1 col-span-3'). Shell's own header comment says the title bar and the banner row span every column. The banner never got the mainHidden case. Anyone who floats the panel during a relay outage (or with any other banner) gets the same crushed panel.

Fix. src/renderer/src/app/Shell.tsx:58:

<BannerHost className={`${page || geometry.mainHidden ? 'col-start-1 col-span-3' : 'col-span-2'} row-start-2`} />

The banner then spans the window on one line (about 36 px), and the floating panel's body keeps about 690 px.

Optional, test hygiene: the scene depends on the machine's ClaudeUsage. Launching its replay with gateway: 'direct' would make it hermetic, but it would also hide this bug, so do that only together with the fix above.

Verify.

  1. Repro anywhere before the fix: run e2e:panel -g 'at its minimum size, with a question waiting' with MAWS_RELAY_URL=http://127.0.0.1:9 (a dead loopback port; the dev override in src/engine-host/relay-url.ts). Expect [360, 181] or similar on the host too. If the variable does not reach the engine host under the private daemon, run it on the guest.
  2. After the fix: the same run is green on the guest and on the host, with and without the override.
  3. Also add a unit check that BannerHost spans columns 1 to 3 when mainHidden, beside the Toolbar's.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    status:in-review
    and removed
    status:ready-for-implementer
    status:in-progress
    on Nov 19, 2026
  2. removed
    status:in-review
    on Nov 19, 2026
  3. added 2 commits that reference this issue on Nov 19, 2026
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

    bugpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions