Skip to content

feat(ui): dock the session progress card beside a wide composer - #129141

Merged
steipete merged 2 commits into
mainfrom
steipete/progress-box-layout-65530d
Aug 25, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/progress-box-layout-65530d

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

On a wide chat window the composer stays centered at the transcript width, leaving a large empty gutter on either side. The session progress card ignored that space: unless the companion side panel happened to be open, the card was squeezed into a collapsed one-line bar inside the composer box, so an active plan showed only its current step and a 1/5 counter. Operators watching a long-running run had to expand the bar, or open an unrelated side panel, to see the checklist that space was already there to hold.

Why This Change Was Made

The card gains a third placement. When the free gutter beside the composer is wide enough (at least 280px, leaving the card ~250px), it docks there with the full checklist expanded; below that it falls back to the existing composer bar, and an open companion rail still wins. Exactly one placement renders at a time — that invariant is now expressed as a closed { card, placement } prop, so the composer bar and the dock cannot both draw the same card.

"Wide enough" is measured from the DOM by a small ResizeObserver controller rather than derived from the pane width. Two things make a width breakpoint wrong here: the transcript width is a browser-local setting that accepts arbitrary CSS (48rem, 82%, a calc()), and an open side panel shrinks the conversation column without changing the pane at all. The dock is positioned absolutely inside that gutter, so the transcript and composer never shift when a card appears or is dismissed, and its inline-start edge repeats the composer's own half-width formula through a shared --chat-composer-side-inset token so the two cannot drift apart.

Non-goals: the narrow and companion-rail placements are unchanged, and no new setting is introduced.

User Impact

On a wide chat, an active progress card now sits beside the composer showing every step and its status at a glance, instead of a single collapsed line inside the input box. Narrow windows, split view, and the side-panel layout look and behave exactly as before. Nothing to configure — the layout follows the space available.

Evidence

Before/after screenshots below: the card docked at 1600px wide, and the unchanged narrow fallback at 560px. Both captured from the real Control UI by the e2e run.

  • ui/src/e2e/session-progress-live-placement.e2e.test.ts now asserts all three placements in one pass (1600 wide / 1280 with the side panel open / 560), including geometry: the dock starts past the composer's right edge and their bottom edges agree within 1px. 3/3 passing.
  • node scripts/check-changed.mjs: exit 0 (guards, dead-export scan, i18n, typecheck core+UI, oxlint, stylelint, format).
  • pnpm test ui/src/pages/chat/chat-responsive.browser.test.ts: 93/93 passing — composer geometry across the viewport ladder is unaffected.
  • Focused unit suites for the card renderer and chat view: 269/269 passing.
  • Codex autoreview (gpt-5.6-sol, high reasoning, single pass over the full bundle): no accepted or actionable findings.

Production LOC: +175/-26 (net +149) | Tests: +28/-0 | Docs: +3/-2. Roughly half the production growth is the new measurement controller (75 lines, a third of them the comments explaining why the gutter is measured rather than assumed) and the dock's CSS block; the placement decision itself replaced a boolean with a three-value union rather than adding a parallel flag.

pr-dock-wide

pr-composer-narrow

The progress card had two placements: the companion rail when that side
panel is open, otherwise a collapsed one-line bar stacked inside the
composer box. On a wide chat the composer stays centered at the
transcript width, so the space either side of it sits empty while the
card is squeezed into the composer.

Add a third placement. When the measured free gutter beside the composer
is at least 280px, the card docks into it with its full checklist
expanded; below that it falls back to the existing composer bar, and an
open companion rail still wins. Exactly one placement renders at a time,
now expressed as a closed {card, placement} prop so the composer bar and
the dock cannot both draw the same card.

The gutter is measured from the DOM by a small ResizeObserver controller
rather than derived from the pane width: the transcript width is a
browser-local setting in arbitrary CSS units, and an open side panel
shrinks the conversation column without changing the pane. The dock is
positioned absolutely in that gutter, so the transcript and composer
never shift when a card appears or is dismissed, and its inline-start
edge repeats the composer's own half-width formula through a shared
--chat-composer-side-inset token so the two stay in agreement.
@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 docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 25, 2026
@steipete
steipete marked this pull request as ready for review August 25, 2026 08:02
The composer shell tokens are declared on .chat, but the new-session page
reuses .agent-chat__composer-shell outside it. There the var() had no
value, so the whole width declaration was invalid and dropped, and the
composer stretched full-width instead of holding its 48rem centered box.

Give both tokens their literal fallback at the use site, matching the
neighbouring --chat-thread-max-width. The custodian surface was already
immune because it overrides width outright.

Caught by ui/src/e2e/new-session-page.places.e2e.test.ts, which is the
regression test for this: it failed on the previous head and passes now.
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 4:18 AM ET / 08:18 UTC.

ClawSweeper review

What this changes

The PR adds a gutter placement that shows a session progress card beside a sufficiently wide chat composer while retaining rail and narrow composer placements.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer review. The head centralizes the mutually exclusive rail/composer/dock choice and the focused UI E2E covers all three layouts; no concrete patch defect was found.

Priority: P3
Reviewed head: a73fb484278141445e9fe39c4f34e60cff9a90e4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, bounded UI feature with direct placement coverage and no actionable defect found in the reviewed head.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after Control UI screenshots and a focused browser E2E scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after Control UI screenshots and a focused browser E2E scenario.
Evidence reviewed 6 items Single-placement owner: The placement function gives a visible companion rail precedence, otherwise selecting either dock or composer from the measured gutter; this is the canonical decision boundary.
Rendering boundary: The chat-pane caller omits the card from the main view for rail placement, while the chat view renders composer and dock placements in separate exclusive branches.
Behavioral UI coverage: The focused browser E2E verifies dock geometry at 1600px, rail precedence at 1280px, and composer fallback at 560px, including the one-card invariant.
Findings None None.
Security None None.

Live Verification

Command: pnpm test ui/src/e2e/session-progress-live-placement.e2e.test.ts

Result: FAIL (partial) — step 2 expect_output keeps one live card placement and a compact transcript receipt: expected terminal output was not visible within 30 seconds: "keeps one live card placement and a compact transcript receipt"

pnpm test ui/src/e2e/session-progress-live-placement.e2e.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-129141-Cjm1YG/target$ pnpm test ui/src/e2e/session-progress-live-placement.e2e.test.ts
$ node --import tsx scripts/test-projects.mts ui/src/e2e/session-progress-live-placement.e2e.test.ts
[test] starting test/vitest/vitest.ui-e2e.config.ts
[test] preflight test/vitest/vitest.ui-e2e.config.ts
pnpm test ui/src/e2e/session-progress-live-placement.e2e.test.ts
[ui-e2e] Using system Chromium at /usr/bin/chromium-browser.
Downloading FFmpeg (playwright ffmpeg v1011) from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip
|                                                                                |   0% of 2.3 MiB
|■■■■■■■■                                                                        |  10% of 2.3 MiB
|■■■■■■■■■■■■■■■■                                                                |  20% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 2.3 MiB
|■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.3 MiB
FFmpeg (playwright ffmpeg v1011) downloaded to /tmp/clawsweeper-live-proof-129141-Cjm1YG/profile/cache/ms-playwright/ffmpeg-1011

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-129141-Cjm1YG/target





























Assertions:

  • FAIL expect_output: keeps one live card placement and a compact transcript receipt

How this fits together

The Control UI receives Gateway-backed progress-card state and renders it in a chat pane. The pane selects exactly one placement before passing the card to the composer, side rail, or gutter renderer.

flowchart LR
A[Gateway progress-card state] --> B[Chat pane]
C[Composer and conversation geometry] --> D[Placement decision]
B --> D
D --> E[Composer card]
D --> F[Side rail card]
D --> G[Gutter dock card]
Loading

Before merge

  • Resolve merge risk (P1) - The local partial clone could not fetch current main or the installed Lit controller contract, so this review does not assert current-main redundancy or dependency-contract verification beyond the checked PR-head source.
Agent review details

Security

None.

PR surface

Source +155, Tests +28, Docs +1. Total +184 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 9 181 26 +155
Tests 1 28 0 +28
Docs 1 3 2 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 212 28 +184

Review metrics

Metric Value Why it matters
Production versus test delta production +175/-26 (net +149); tests +28/-0; docs +3/-2 The production growth implements a new measured layout controller and dock styling; the added E2E exercises the three placement states.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the single closed placement flow and the three-viewport E2E coverage, then land only after exact-head CI and the normal maintainer review are complete.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the single closed placement flow and the three-viewport E2E coverage, then land only after exact-head CI and the normal maintainer review are complete.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction: this is a new layout capability, and the PR supplies a focused browser scenario for its intended states.

Is this the best way to solve the issue?

Yes, subject to normal current-main and CI confirmation: one closed placement value prevents duplicate rendering and uses measured geometry rather than a fragile viewport-only breakpoint.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a contained Control UI layout enhancement with no reported availability, data, delivery, or security impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after Control UI screenshots and a focused browser E2E scenario.

Label justifications:

  • P3: This is a contained Control UI layout enhancement with no reported availability, data, delivery, or security impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nevertheless links before/after Control UI screenshots and a focused browser E2E scenario.

Evidence

What I checked:

Likely related people:

  • steipete: Recent history shows repeated merged work on session-progress-card presentation and the current UI head. (role: recent feature owner; confidence: high; commits: a73fb4842781, b228c83bfc79, 8131f56cb133; files: ui/src/components/session-progress-card.ts, ui/src/pages/chat/chat-pane-rails.ts, ui/src/styles/chat/progress-card.css)

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.

@steipete
steipete merged commit 5b5fdac into main Aug 25, 2026
276 of 278 checks passed
@steipete
steipete deleted the steipete/progress-box-layout-65530d branch August 25, 2026 08:34
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 25, 2026
The multiline restructure dropped the .session-progress-card--dock
placement shipped in #129141 and left the completed marker inside the
collapsed-only summary span, so it vanished when the disclosure opened.
Restore the dock positioning block and hoist the marker into the
always-visible summary grid.
steipete added a commit that referenced this pull request Aug 25, 2026
…124301)

* improve(control-ui): align composer stack with current main

* refactor(ui): isolate new-session permission state

* fix(ui): close composer CI regressions

* test(ui): align composer presentation contracts

* test(ui): fix composer browser contracts

* test(ui): stabilize composer browser ownership

* test(ui): target presented mobile composer

* test(ui): select accessible mobile composer

* test(ui): open mobile rail session directly

* fix(ui): keep mobile composer content laid out

* fix(ui): address composer review findings

* fix(ui): close composer interaction gaps

* fix(ui): bound swarm task popover

* fix(ui): restore progress-card docking beside the wide composer

The multiline restructure dropped the .session-progress-card--dock
placement shipped in #129141 and left the completed marker inside the
collapsed-only summary span, so it vanished when the disclosure opened.
Restore the dock positioning block and hoist the marker into the
always-visible summary grid.

* fix(ui): bound swarm task popover by its composer anchor

The popover capped its height against the raw viewport, so on short
mobile viewports its top rendered above the screen. Register the swarm
group with the existing composer popover anchor observer and consume the
measured --chat-composer-popover-max-height, keeping the viewport calc
only as fallback. The new actual-tree mobile regression failed with
-71px top clipping before the fix.

* fix(ui): restore Draft capability controls and split the new-session composer

Restores the Draft option and selected-state indicators the capability
menu lost in the restructure, and moves the capability/visibility
controls into composer-capability-controls.ts so composer.ts drops back
under the 700-line lint gate (677 lines) without a suppression.

* test(ui): prove permission-mode final effect before session creation

Adds mocked-gateway proof that an admin's Full selection reaches
sessions.create as permissionMode:"full" exactly once, and that a
write-scoped operator's retained Full selection is rejected before
creation with a visible status notice and zero create requests. Also
aligns the mobile footer reading-order assertion with the shipped
attachments-draft-model order.

* test(ui): register swarm popover layout test as node-driven

chat-swarm-progress.browser.test.ts drives its own Playwright chromium
from node, but d3396c4 added it without registering it in
nodeDrivenBrowserLayoutTests, so the browser-mode chromium project tried
to fetch it into the page and failed on the node-only playwright import.
This was the deterministic checks-ui failure on both prior heads.

* test(ci): register codex attempt-startup-retry in its support lane

#129505 added extensions/codex/src/app-server/attempt-startup-retry.test.ts
without lane ownership, so the full-suite coverage guard
(test/vitest-projects-config.test.ts) fails on every full run. Register it
beside attempt-startup.test.ts in the attempt-support lane.

* test(ui): expect last-activity suffix in composer summary label

Merge weave: #129520 appends the accessible last-activity to the summary
aria-label; align the restructured composer card's assertion with it.

---------

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
…claw#129141)

* feat(ui): dock the session progress card beside a wide composer

The progress card had two placements: the companion rail when that side
panel is open, otherwise a collapsed one-line bar stacked inside the
composer box. On a wide chat the composer stays centered at the
transcript width, so the space either side of it sits empty while the
card is squeezed into the composer.

Add a third placement. When the measured free gutter beside the composer
is at least 280px, the card docks into it with its full checklist
expanded; below that it falls back to the existing composer bar, and an
open companion rail still wins. Exactly one placement renders at a time,
now expressed as a closed {card, placement} prop so the composer bar and
the dock cannot both draw the same card.

The gutter is measured from the DOM by a small ResizeObserver controller
rather than derived from the pane width: the transcript width is a
browser-local setting in arbitrary CSS units, and an open side panel
shrinks the conversation column without changing the pane. The dock is
positioned absolutely in that gutter, so the transcript and composer
never shift when a card appears or is dismissed, and its inline-start
edge repeats the composer's own half-width formula through a shared
--chat-composer-side-inset token so the two stay in agreement.

* fix(ui): keep the new-session composer sized outside the chat surface

The composer shell tokens are declared on .chat, but the new-session page
reuses .agent-chat__composer-shell outside it. There the var() had no
value, so the whole width declaration was invalid and dropped, and the
composer stretched full-width instead of holding its 48rem centered box.

Give both tokens their literal fallback at the use site, matching the
neighbouring --chat-thread-max-width. The custodian surface was already
immune because it overrides width outright.

Caught by ui/src/e2e/new-session-page.places.e2e.test.ts, which is the
regression test for this: it failed on the previous head and passes now.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 26, 2026
…penclaw#124301)

* improve(control-ui): align composer stack with current main

* refactor(ui): isolate new-session permission state

* fix(ui): close composer CI regressions

* test(ui): align composer presentation contracts

* test(ui): fix composer browser contracts

* test(ui): stabilize composer browser ownership

* test(ui): target presented mobile composer

* test(ui): select accessible mobile composer

* test(ui): open mobile rail session directly

* fix(ui): keep mobile composer content laid out

* fix(ui): address composer review findings

* fix(ui): close composer interaction gaps

* fix(ui): bound swarm task popover

* fix(ui): restore progress-card docking beside the wide composer

The multiline restructure dropped the .session-progress-card--dock
placement shipped in openclaw#129141 and left the completed marker inside the
collapsed-only summary span, so it vanished when the disclosure opened.
Restore the dock positioning block and hoist the marker into the
always-visible summary grid.

* fix(ui): bound swarm task popover by its composer anchor

The popover capped its height against the raw viewport, so on short
mobile viewports its top rendered above the screen. Register the swarm
group with the existing composer popover anchor observer and consume the
measured --chat-composer-popover-max-height, keeping the viewport calc
only as fallback. The new actual-tree mobile regression failed with
-71px top clipping before the fix.

* fix(ui): restore Draft capability controls and split the new-session composer

Restores the Draft option and selected-state indicators the capability
menu lost in the restructure, and moves the capability/visibility
controls into composer-capability-controls.ts so composer.ts drops back
under the 700-line lint gate (677 lines) without a suppression.

* test(ui): prove permission-mode final effect before session creation

Adds mocked-gateway proof that an admin's Full selection reaches
sessions.create as permissionMode:"full" exactly once, and that a
write-scoped operator's retained Full selection is rejected before
creation with a visible status notice and zero create requests. Also
aligns the mobile footer reading-order assertion with the shipped
attachments-draft-model order.

* test(ui): register swarm popover layout test as node-driven

chat-swarm-progress.browser.test.ts drives its own Playwright chromium
from node, but d3396c4 added it without registering it in
nodeDrivenBrowserLayoutTests, so the browser-mode chromium project tried
to fetch it into the page and failed on the node-only playwright import.
This was the deterministic checks-ui failure on both prior heads.

* test(ci): register codex attempt-startup-retry in its support lane

openclaw#129505 added extensions/codex/src/app-server/attempt-startup-retry.test.ts
without lane ownership, so the full-suite coverage guard
(test/vitest-projects-config.test.ts) fails on every full run. Register it
beside attempt-startup.test.ts in the attempt-support lane.

* test(ui): expect last-activity suffix in composer summary label

Merge weave: openclaw#129520 appends the accessible last-activity to the summary
aria-label; align the restructured composer card's assertion with it.

---------

Co-authored-by: Peter Steinberger <[email protected]>
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant