Repository navigation
improve(control-ui): restructure the composer as a multiline surface - #124301
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 25, 2026, 6:59 PM ET / 22:59 UTC. ClawSweeper reviewWhat this changesThe PR replaces Control UI chat and new-session composers with a shared multiline surface, including updated draft, permission, dictation, progress, queue, and responsive interaction behavior. Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain Keep open. This maintainer-authored PR remains a substantial Control UI change; the exact head has no blocking code defect identified, but permission selection changes an authority-bearing session-creation input without exact-head real Gateway final-effect proof. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI composer gathers message text and session choices, sends creation or chat requests through the Gateway, and renders transcript, queue, and recovery state. The new-session path carries a selected permission mode into flowchart LR
A[Operator input] --> B[Multiline composer]
B --> C[Session choices]
C --> D[Gateway request]
D --> E[Gateway authorization]
E --> F[Created session]
F --> G[Transcript and status UI]
Decision needed
Why: The UI test verifies client behavior, while the security-relevant final decision is made by the Gateway and needs end-to-end evidence on this branch. Before merge
Findings
Agent review detailsSecurityNeeds attention: No concrete authorization bypass was found, but the changed permission-selection authority path lacks exact-head final-effect evidence at the real Gateway boundary. Review metrics
Stored data modelPersistent data-model change detected: Mantis proof suggestionMantis could provide supplementary web-chat proof for the composer flow, though it cannot replace the required Gateway authorization trace. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Add exact-head isolated-Gateway proof showing an admin can create a Full session and a write-only client is rejected by the Gateway before any session is created, then retain the existing UI and server-side checks as one authority chain. Do we have a high-confidence way to reproduce the issue? Yes for the authority path: source and exact-head mocked-browser coverage show permission selection reaching Is this the best way to solve the issue? Unclear: the shared composer direction is coherent, but the current proof does not yet establish the final authorization outcome through the real Gateway. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against df9b7a5fbe9b. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
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 (57 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Design bench / state machine
Full preview · use < > keyboard keys to sweep through demos
The bench is the reference composer state machine implemented by this stack.
What Problem This Solves
The composer had competing layout and state owners across multiline input, status bands, dictation, adjacent cards, progress,
/new, invocation sheets, and the attached queue. Several transitions could also lose focus, retain stale state, or end without a visible outcome.Why This Change Was Made
This PR establishes one multiline composer and notice model. The stacked follow-ups add invocation tokens (#127824) and the attached queue (#127823). Review findings were fixed at their owners rather than guarded downstream.
User Impact
The composer remains stable through six lines, attachments, dictation, reconnects, progress/goal states, replacement states, and desktop/mobile layouts. Actions now retain explicit outcomes, and stale draft, picker, queue-edit, and transcript ownership is rejected.
Evidence
Final stack heads:
00321d37503→d6c319d4d74→a6fb4d6d93a.Exact-head CI: PR1 run 32678232696, PR2 run 32690377270, and PR3 run 32690378940 all completed green.
Scenario gallery
All captures were rendered in Chromium at real
1440×900desktop and390×844mobile viewports. Each image was visually inspected before upload and again before publishing; the named state is visible and no mobile composer is narrowed or broken by letter wrapping.Desktop dark (1440×900)
| Commands sheet |
|
|
|
|
| Inline skill token |
| Workspace conflict |
| Dictation |
Mobile dark (390×844)
| Commands sheet |
|
|
|
|
| Inline skill token |
| Workspace conflict |
| Dictation |
Light mode captures for the same states are in a comment at the end of this PR.
Stress and repeated tests
OPENCLAW_VITEST_MAX_WORKERS=2Real environments
tbx_01m0qjthmesk9s2k2vw8pjv9mc· run 32647773179tbx_01m0qjthq9cjnzk7qea82xchjq· run 32647773116ba6f5ad5c87; request, final reply, screenshot, and video published:5250Deviations fixed
21a64c6ec64)80c6ab175d7)21a64c6ec64)1866acf8926)e65e0e5c5bc,ba6f5ad5c87,de8aed7bc5f,94cd9fbd9ec, and80c6ab175d7Review and budgets
Three recursive review rounds were run for PR1 and two for each child. The last round produced six accepted findings; all six were fixed. Per the campaign close order, no additional review or judge round was started after those fixes.
+5447/-1972+1277/-244+615/-297+407/-25+843/-406+345/-64Full run disclosure
3262925792232629397555,32636560785,32642013883,3264490620532631296140,32631476327,326366087713264490637932647362613,3264736265732647773179,32647773116Limitations
Evidence — Composer state gallery (221 states, dark)
Landing fixes (2026-08-25, maintainer pass)
Fixes applied on top of @vyctorbrzezowski's work to finish landing (head
9cbfeb6f3ff):.session-progress-card--dockpositioning and moved the marker to the always-visible summary grid. Protected by the unmodified main e2eui/src/e2e/session-progress-live-placement.e2e.test.ts(2 tests, green again).new-session-page.capability-menu.e2e.test.tsis green again.replaceComposerPopoverAnchorobserver instead of the raw viewport. Actual-tree mobile regression added inchat-swarm-progress.browser.test.ts; it failed with −71px top clipping on the previous head.new-session-page.operator-scopes.e2e.test.tsnow proves an administrator's Full selection creates the session withpermissionMode: "full"(exactly onesessions.create), and a write-scoped operator's retained Full selection is rejected before creation: submit disabled, Full option disabled with explanation, visiblerole="status"notice, zerosessions.createrequests.ui/src/pages/new-session/composer.tssplit below the 700-line gate (capability/visibility controls →composer-capability-controls.ts, no wrapper layer, net −97 lines in the composer) and reformatted.Local verification on this head: six e2e files (34 tests) green including
session-progress-live-placement,capability-menu,workspace-memory,operator-scopes,chat-composer-redesign,github-projects;chat-swarm-progressbrowser+unit andsession-progress-cardsuites green (18 tests);ui/src/pages/new-sessionsuite green (293 tests); changed-file format/lint/typecheck gate green.The previous run's 13
src/**and tooling failures were a broken-main window at 15:39 UTC (healed on main by #129387, #129397, #129409); this push re-merges against healed main.Live-gateway authority proof (real Gateway, non-mocked)
Real-gateway final-effect proof for the permission-mode boundary — write-scoped
sessions.createwithpermissionMode:"full"rejected server-side (FORBIDDEN missing scope: operator.admin, zero creates) and administrator Full success through both the wire and the real Control UI (video), with the created session persisted aspermissionMode: fullin the canonical store: #124301 (comment)