Skip to content

feat(ui): stack the docked progress card under the suggestion tray - #129443

Merged
steipete merged 1 commit into
mainfrom
steipete/progress-dock-gutter-stack
Aug 25, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/progress-dock-gutter-stack

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 450px at z-index: 24; the progress card docked in #129141 sat at z-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-stack is 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, same min(450px, …) width, and position: relative purely 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-derived calc() 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.

  • New placement case in ui/src/e2e/session-progress-live-placement.e2e.test.ts asserts 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.ts passes 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-suggestions unit suites: 369/369.
  • node scripts/check-changed.mjs, tsgo:ui, oxlint, stylelint clean.
  • Codex autoreview (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.

pr2-stacked

pr2-before-bottom

pr2-after-top

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 16:23
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 25, 2026, 6:00 PM ET / 22:00 UTC.

ClawSweeper review

What this changes

The PR stacks task suggestions above the docked session-progress card in the chat pane’s top-right gutter and top-anchors the card.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Needs maintainer review before merge - 3 items remain

Keep 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
Reviewed head: 5f81865cd845ff53385a8a408662ab81042e8a72

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The layout repair and visible proof are strong, but the regression test does not yet prove that it catches the predecessor defect.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.
Evidence reviewed 6 items Current-head regression fixture: The new case uses a 1600×900 viewport, one collapsed suggestion, and only two progress steps; it asserts only that the post-fix card starts below the tray.
Predecessor geometry: The supplied PR diff shows the predecessor dock was bottom-anchored to the composer, so this short top tray and short card do not establish the reported intersection before the stack exists.
Current layout owner: The PR head renders both surfaces as children of one grid container, which is the appropriate owner boundary for preventing overlap.
Findings 1 actionable finding [P2] Make the fixture overlap on the predecessor layout
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts

Result: FAIL (failed) — step 1 run node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts: previous terminal command was still running after 30 seconds: "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts"

RUN  v4.1.10 /tmp/clawsweeper-live-proof-129443-DBOQ35/target

[vitest] still running with no output for 30000ms.

Assertions:

  • FAIL expect_output: stacks the docked card under a suggestion tray

How this fits together

The 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
Loading

Before merge

  • Make the fixture overlap on the predecessor layout (P2) - The test still uses one collapsed tray and two short steps at 1600×900. Under the previous bottom-anchored dock, those rectangles are already vertically separate, so the non-overlap assertion can pass before this PR. Expand the tray or otherwise force an old-layout intersection, then retain this post-fix geometry assertion.
  • Resolve merge risk (P1) - Current-main source could not be materialized from this shallow checkout, so the review cannot independently compare the PR head with the supplied base SHA.
  • Complete next step (P2) - A narrow E2E-fixture repair is the only supported blocker; the production stack can remain unchanged.

Findings

  • [P2] Make the fixture overlap on the predecessor layout — ui/src/e2e/session-progress-live-placement.e2e.test.ts:194-213
Agent review details

Security

None.

PR surface

Source +20, Tests +75. Total +95 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 4 56 36 +20
Tests 1 79 4 +75
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 135 40 +95

Review metrics

Metric Value Why it matters
Production versus test LOC production +56/-36 (net +20); tests +79/-4 The added stack and hit-testing owner are purposeful, but the regression test must demonstrate the predecessor failure before that growth earns the merge.

Stored data model

Persistent data-model change detected: serialized state: ui/src/e2e/session-progress-live-placement.e2e.test.ts, unknown-data-model-change: ui/src/e2e/session-progress-live-placement.e2e.test.ts, vector/embedding metadata: ui/src/e2e/session-progress-live-placement.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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:

  • [P2] Make the fixture overlap on the predecessor layout — ui/src/e2e/session-progress-live-placement.e2e.test.ts:194-213
    The test still uses one collapsed tray and two short steps at 1600×900. Under the previous bottom-anchored dock, those rectangles are already vertically separate, so the non-overlap assertion can pass before this PR. Expand the tray or otherwise force an old-layout intersection, then retain this post-fix geometry assertion.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e1e2818a6ab0.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.

Label justifications:

  • P2: The PR repairs a visible Control UI layout regression, but the remaining proof defect has limited blast radius and a narrow correction.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body supplies direct before/after and combined-placement screenshots for the visible layout result; redaction should be retained for any refreshed proof.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts.
  • [P1] node scripts/check-changed.mjs --dry-run -- ui/src/e2e/session-progress-live-placement.e2e.test.ts.

What I checked:

Likely related people:

  • steipete: Authored the merged docked-progress-card feature and this focused follow-up layout repair. (role: feature owner; confidence: high; commits: 5b5fdacfdaa8, 5f81865cd845; files: ui/src/pages/chat/chat-pane-rails.ts, ui/src/pages/chat/chat-view.ts, ui/src/styles/chat/progress-card.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Make the E2E fixture force a predecessor-layout overlap, then keep the card-below-tray assertion as the after-fix proof.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-25T16:30:26.921Z sha 157aa1d :: needs changes before merge. :: [P2] Make the fixture reproduce the prior overlap
  • reviewed 2026-08-25T17:22:17.865Z sha 3e1f76343a31bbac61b09ec9d4f20323aa55f8d1 :: found issues before merge. :: [P2] Make the fixture overlap on the pre-stack layout
  • reviewed 2026-08-25T18:14:32.611Z sha c1f7ed2 :: needs changes before merge. :: [P2] Make the fixture overlap on the predecessor layout

@steipete
steipete force-pushed the steipete/progress-dock-gutter-stack branch 2 times, most recently from 3e1f763 to c1f7ed2 Compare August 25, 2026 18:08
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 25, 2026
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.
@steipete
steipete force-pushed the steipete/progress-dock-gutter-stack branch from c1f7ed2 to 5f81865 Compare August 25, 2026 21:53
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 25, 2026
@steipete
steipete merged commit 5b0c094 into main Aug 25, 2026
157 of 159 checks passed
@steipete
steipete deleted the steipete/progress-dock-gutter-stack branch August 25, 2026 23:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant