Repository navigation
feat(ui): stack the docked progress card under the suggestion tray - #129443
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs changes before merge. Reviewed August 25, 2026, 6:00 PM ET / 22:00 UTC. ClawSweeper reviewWhat this changesThe PR stacks task suggestions above the docked session-progress card in the chat pane’s top-right gutter and top-anchors the card. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the single gutter-stack design is coherent, but the new regression fixture still permits the predecessor layout to pass because its short, collapsed tray and two-step card are vertically separate at 1600×900. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe Control UI chat pane overlays both task suggestions and live session progress beside the transcript. This change makes one gutter container lay out those two transient surfaces before they are displayed to the operator. flowchart LR
A[Live progress data] --> C[Chat pane]
B[Task suggestions] --> C
C --> D[Top-right gutter stack]
D --> E[Suggestion tray]
D --> F[Progress card]
E --> G[Visible chat overlays]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +20, Tests +75. Total +95 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the one-owner gutter stack, but make the E2E fixture force the old top-tray and bottom-docked rectangles to intersect before asserting that the stacked layout separates them. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the fixture’s 1600×900 geometry is visibly incapable of proving the former bottom-anchored dock overlapped its short collapsed tray. It was not executed because this review is read-only. Is this the best way to solve the issue? No, not yet. The production stack is the best owner-boundary repair, but its regression test must first make the old independent layout fail for the reported occlusion. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e1e2818a6ab0. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
3e1f763 to
c1f7ed2
Compare
The suggestion tray and the docked progress card both floated over the conversation's top-right area as independent absolutely-positioned elements. The tray is 450px at z-index 24 and the card sat at z-index 3, so whenever a suggestion arrived while a plan was live the tray covered the card outright: session state disappearing with no trace, which is the failure mode this repo weighs heaviest. Give the gutter a single owner. .chat-gutter-stack is one absolutely positioned column at top-right; the tray and the card become its children and cannot overlap by construction. The tray keeps its exact geometry (same inset, same width, position: relative only so its stacked -card shadow still anchors to itself); the card right-aligns beneath it. The card is now top-anchored rather than pinned to the composer's bottom edge, so appended steps and a longer note extend downward instead of shifting the rows already being read, and the empty gutter falls below the card instead of above it. Its width becomes a fixed token rather than gutter-derived arithmetic: the pane already gates this placement on a measured gutter wide enough to hold it, so the clearance is guaranteed and a stable card beats one that grows with the window. Covered by a new placement case asserting the card sits fully below the tray when both render.
c1f7ed2 to
5f81865
Compare
|
Merged via squash.
|
…penclaw#129443) The suggestion tray and the docked progress card both floated over the conversation's top-right area as independent absolutely-positioned elements. The tray is 450px at z-index 24 and the card sat at z-index 3, so whenever a suggestion arrived while a plan was live the tray covered the card outright: session state disappearing with no trace, which is the failure mode this repo weighs heaviest. Give the gutter a single owner. .chat-gutter-stack is one absolutely positioned column at top-right; the tray and the card become its children and cannot overlap by construction. The tray keeps its exact geometry (same inset, same width, position: relative only so its stacked -card shadow still anchors to itself); the card right-aligns beneath it. The card is now top-anchored rather than pinned to the composer's bottom edge, so appended steps and a longer note extend downward instead of shifting the rows already being read, and the empty gutter falls below the card instead of above it. Its width becomes a fixed token rather than gutter-derived arithmetic: the pane already gates this placement on a measured gutter wide enough to hold it, so the clearance is guaranteed and a stable card beats one that grows with the window. Covered by a new placement case asserting the card sits fully below the tray when both render.
Follow-up to #129141.
What Problem This Solves
Two things share the conversation's top-right area and neither knew about the other. The suggested-task tray is
450pxatz-index: 24; the progress card docked in #129141 sat atz-index: 3. Whenever a suggestion arrived while a plan was live, the tray covered the card outright — session state vanishing with no trace, which is the worst failure class in this repo.Separately, the card was pinned to the composer's bottom edge, so it grew upward: every appended step or longer note shifted the rows you were already reading, and the empty gutter sat above the card, making it read as having sunk to the floor of an empty column.
Why This Change Was Made
The gutter gets a single owner.
.chat-gutter-stackis one absolutely positioned column at top-right; the tray and the card are its children, so they cannot overlap by construction rather than by luck. The tray keeps its exact geometry — same inset, samemin(450px, …)width, andposition: relativepurely so its stacked-card shadow still anchors to itself. The card right-aligns beneath it.The card is now top-anchored, so new steps extend downward and the whitespace falls below it. Its width becomes a token (
--chat-progress-dock-width: 250px) instead of gutter-derivedcalc()arithmetic: the pane already gates this placement on a measured gutter wide enough to hold the card plus the stack's insets, so the clearance is guaranteed and a stable card beats one that grows with the window. That deletes the trickiest expression in the previous change.Non-goals: the composer-bar and companion-rail placements are untouched, and no new setting is introduced.
User Impact
A live progress card can no longer be hidden by a task suggestion — they stack. The card reads as session status at the top of the gutter instead of an appendage floating above the composer, and its checklist no longer jumps as steps land.
Evidence
Screenshots below: the two together (tray above, card beneath, nothing covered), plus the before/after of the anchor change that motivated it.
ui/src/e2e/session-progress-live-placement.e2e.test.tsasserts the card's top edge is at or below the tray's bottom edge when both render — the regression test for the occlusion. The existing dock case now asserts top-anchoring instead of composer-bottom alignment. 4/4 passing.ui/src/e2e/chat-flow.task-suggestions.e2e.test.tspasses unchanged (5/5), which is what proves the tray's own geometry survived becoming a flow item.chat-responsive.browser.test.ts+chat-view+chat-task-suggestionsunit suites: 369/369.node scripts/check-changed.mjs,tsgo:ui, oxlint, stylelint clean.gpt-5.6-sol, high, single pass): no accepted or actionable findings.Production LOC: +56/-36 (net +20) | Tests: +79/-4. The production growth is the stack rule and its pointer-events guard; the card's own CSS got smaller by dropping the
calc()inset math.