Skip to content

improve(control-ui): restructure the composer as a multiline surface - #124301

Merged
steipete merged 24 commits into
mainfrom
brzezowski/composer-multiline-restyle
Aug 25, 2026
Merged

steipete merged 24 commits into
mainfrom
brzezowski/composer-multiline-restyle

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

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×900 desktop and 390×844 mobile 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)

State Desktop dark
Multiline: 1 line multiline-1-line desktop dark
Multiline: 3 lines multiline-3-lines desktop dark
Multiline: 6 lines multiline-6-lines desktop dark
Attachments attachments desktop dark
Skills sheet skills-sheet desktop dark
Attached queue: 1 item queue-1 desktop dark
Attached queue: 3 items queue-3 desktop dark
Queue item editing queue-editing desktop dark
Task progress task-progress desktop dark
Goal goal desktop dark
Single-line status band status-band desktop dark
Delivery uncertain delivery-uncertain desktop dark
Reconnecting queue reconnecting desktop dark
Offline offline desktop dark

| Commands sheet | commands-sheet desktop dark |
| Inline skill token | skill-token-inline desktop dark |
| Workspace conflict | workspace-conflict desktop dark |
| Dictation | dictation desktop dark |

Mobile dark (390×844)

State Mobile dark
Multiline: 1 line multiline-1-line mobile dark
Multiline: 3 lines multiline-3-lines mobile dark
Multiline: 6 lines multiline-6-lines mobile dark
Attachments attachments mobile dark
Skills sheet skills-sheet mobile dark
Attached queue: 1 item queue-1 mobile dark
Attached queue: 3 items queue-3 mobile dark
Queue item editing queue-editing mobile dark
Task progress task-progress mobile dark
Goal goal mobile dark
Single-line status band status-band mobile dark
Delivery uncertain delivery-uncertain mobile dark
Reconnecting queue reconnecting mobile dark
Offline offline mobile dark

| Commands sheet | commands-sheet mobile dark |
| Inline skill token | skill-token-inline mobile dark |
| Workspace conflict | workspace-conflict mobile dark |
| Dictation | dictation mobile dark |

Light mode captures for the same states are in a comment at the end of this PR.

Stress and repeated tests

Proof Result
10 consecutive rounds, OPENCLAW_VITEST_MAX_WORKERS=2 523 tests × 10; 5,250 observations; 0 flakes/failures
Earlier clean-environment attempt 8 unit files / 391 tests passed; 129/130 E2E passed; queue edit/reconnect timed out
Browser metrics 41.0 MiB heap after GC; max long task 258 ms; max interaction event 248 ms; max frame gap 400 ms; no console/page/request errors
Queue limit Canonical persistence owner: 54 tests passed. Manual 50-item offline browser setup remained blocked by mock reconnect churn

Real environments

Environment ID / run Result
Clean remote, top stack tbx_01m0qjthmesk9s2k2vw8pjv9mc · run 32647773179 395 unit + 130 E2E passed
Clean remote, PR1 isolated tbx_01m0qjthq9cjnzk7qea82xchjq · run 32647773116 335 unit + 113 E2E passed
Mantis web chat run 32644906205 1/1 passed at ba6f5ad5c87; request, final reply, screenshot, and video published
Real isolated Gateway loopback :5250 Simple turn, long stream, three queued turns, reconnect, and one-message persistence passed at the then-current exact stack head
Real Gateway screenshots
Simple turn
Stream + queue
Reconnect + persistence

Deviations fixed

ID Deviation Fix
D01 PR3 startup CSS exceeded budget Queue-only CSS moved out of startup bundle (21a64c6ec64)
D02 Double-click Remove could retarget the next row Row-owned safe edit/remove interaction (80c6ab175d7)
D03 Queue tests modeled the pre-attached DOM Owner assertions and deterministic completion updated (21a64c6ec64)
D04 Status icon expanded to the viewport Canonical 44 px row / 16 px icon (1866acf8926)
R1/R2 17 accepted interaction, state, geometry, and accessibility findings Fixed across e65e0e5c5bc, ba6f5ad5c87, de8aed7bc5f, 94cd9fbd9ec, and 80c6ab175d7

Review 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.

PR Production Tests Startup budget
#124301 +5447/-1972 +1277/-244 331.8 KiB JS; 44.3 KiB CSS
#127824 +615/-297 +407/-25 337.4 KiB startup JS; 44.7 KiB startup CSS
#127823 +843/-406 +345/-64 337.4 KiB startup JS; 44.0 KiB startup CSS; 44.9 KiB largest CSS

Full run disclosure

Runs Outcome
Mantis 32629257922 Ref resolution failed before test
Mantis 32629397555, 32636560785, 32642013883, 32644906205 1/1 passed on successive PR1 heads; final listed run is the latest
Clean remote 32631296140, 32631476327, 32636608771 Exposed stale owner tests, nine E2E failures, then the 129/130 queue race
Clean remote 32644906379 External script was unavailable in remote checkout; no test ran
Clean remote 32647362613, 32647362657 Duplicate CLI flag rejected before tests
Clean remote 32647773179, 32647773116 Final successful top-stack and PR1-isolated runs

Limitations

  • The queue edit/reconnect test passed locally and in the final clean run, but an earlier clean run timed out once at the second queued send. Probable cause: completion synchronization under remote browser load.
  • The 50-item interactive mock could not remain offline long enough to enqueue all items; the 50-item storage contract and normal browser enqueue/reconnect path were proved separately.
  • Real-Gateway screenshots predate the final six review fixes; no credentials or account surfaces are shown.
  • The mock stress screenshot was excluded because it displayed fixture account data.
  • Independent rubric judges were not run before the explicit campaign-close order.

Evidence — Composer state gallery (221 states, dark)

State
chat-empty-placeholder

chat-empty-placeholder dark
chat-empty-placeholder-attachments

chat-empty-placeholder-attachments dark
chat-short-text

chat-short-text dark
chat-multiline-autosize

chat-multiline-autosize dark
chat-multiline-capped-scroll-top

chat-multiline-capped-scroll-top dark
chat-multiline-capped-scroll-middle

chat-multiline-capped-scroll-middle dark
chat-disabled

chat-disabled dark
chat-disabled-danger-band

chat-disabled-danger-band dark
chat-disabled-info-band

chat-disabled-info-band dark
chat-focused

chat-focused dark
chat-rtl

chat-rtl dark
chat-prefill-attention

chat-prefill-attention dark
chat-offline-empty-queue

chat-offline-empty-queue dark
chat-offline-outbox-count

chat-offline-outbox-count dark
chat-offline-slash-blocked

chat-offline-slash-blocked dark
send-empty-disabled

send-empty-disabled dark
send-enabled

send-enabled dark
send-pending-attachment-read

send-pending-attachment-read dark
send-sending-spinner

send-sending-spinner dark
send-stop-active-run

send-stop-active-run dark
send-followup-queue

send-followup-queue dark
send-followup-steer

send-followup-steer dark
send-followup-interrupt

send-followup-interrupt dark
send-queue-steer-shortcut

send-queue-steer-shortcut dark
send-suggestion

send-suggestion dark
queue-single

queue-single dark
queue-medium-three

queue-medium-three dark
queue-large-ten-top

queue-large-ten-top dark
queue-large-ten-middle

queue-large-ten-middle dark
queue-three-large-prompts

queue-three-large-prompts dark
queue-row-steered

queue-row-steered dark
queue-applying-settings

queue-applying-settings dark
queue-executing-command

queue-executing-command dark
queue-waiting-reconnect-row

queue-waiting-reconnect-row dark
queue-waiting-reconnect-global

queue-waiting-reconnect-global dark
queue-failed

queue-failed dark
queue-failed-error-detail

queue-failed-error-detail dark
queue-unconfirmed

queue-unconfirmed dark
queue-author-avatar

queue-author-avatar dark
queue-attachments-only

queue-attachments-only dark
queue-delete-hover

queue-delete-hover dark
queue-more-open

queue-more-open dark
queue-editing-large

queue-editing-large dark
queue-reorder-idle

queue-reorder-idle dark
queue-reorder-hover

queue-reorder-hover dark
queue-reorder-focus-visible

queue-reorder-focus-visible dark
queue-drop-target

queue-drop-target dark
queue-steer-enabled

queue-steer-enabled dark
queue-steer-disabled

queue-steer-disabled dark
progress-pending-expanded

progress-pending-expanded dark
progress-running-expanded

progress-running-expanded dark
progress-completed-collapsed

progress-completed-collapsed dark
progress-mixed-counter

progress-mixed-counter dark
progress-manually-collapsed

progress-manually-collapsed dark
progress-manually-expanded-complete

progress-manually-expanded-complete dark
progress-markdown-only

progress-markdown-only dark
progress-markdown-and-steps

progress-markdown-and-steps dark
progress-long-step

progress-long-step dark
progress-many-steps-scroll

progress-many-steps-scroll dark
progress-dismissible

progress-dismissible dark
goal-active

goal-active dark
goal-paused

goal-paused dark
goal-blocked

goal-blocked dark
goal-usage-limited

goal-usage-limited dark
goal-budget-limited

goal-budget-limited dark
goal-complete

goal-complete dark
goal-long-collapsed

goal-long-collapsed dark
goal-expanded

goal-expanded dark
goal-edit-mode

goal-edit-mode dark
goal-readonly

goal-readonly dark
slash-all-groups

slash-all-groups dark
slash-filtered

slash-filtered dark
slash-active-keyboard

slash-active-keyboard dark
slash-active-hover

slash-active-hover dark
slash-args

slash-args dark
slash-long-description

slash-long-description dark
slash-scroll-top

slash-scroll-top dark
slash-scroll-middle

slash-scroll-middle dark
skill-sheet-loading

skill-sheet-loading dark
skill-sheet-populated

skill-sheet-populated dark
skill-sheet-filtered-active

skill-sheet-filtered-active dark
skill-chip-start

skill-chip-start dark
skill-chip-middle

skill-chip-middle dark
skill-chip-end

skill-chip-end dark
skill-chip-caret-before

skill-chip-caret-before dark
skill-chip-caret-after

skill-chip-caret-after dark
permission-default

permission-default dark
permission-read-only

permission-read-only dark
permission-guarded

permission-guarded dark
permission-workspace

permission-workspace dark
permission-full

permission-full dark
permission-popover-open

permission-popover-open dark
permission-full-locked

permission-full-locked dark
permission-disabled

permission-disabled dark
permission-focus-visible

permission-focus-visible dark
model-closed

model-closed dark
model-chat-only

model-chat-only dark
model-loading

model-loading dark
model-refreshing

model-refreshing dark
model-offline

model-offline dark
model-no-models

model-no-models dark
model-review-connection

model-review-connection dark
model-error-empty

model-error-empty dark
model-open-populated

model-open-populated dark
model-search-filtered

model-search-filtered dark
model-search-empty

model-search-empty dark
model-row-highlighted

model-row-highlighted dark
model-signin-needed

model-signin-needed dark
model-session-override

model-session-override dark
model-locked-codex

model-locked-codex dark
model-context-badge

model-context-badge dark
model-context-toggle

model-context-toggle dark
model-context-segmented

model-context-segmented dark
model-target-loading

model-target-loading dark
model-target-error

model-target-error dark
model-disabled-focus-hover

model-disabled-focus-hover dark
reasoning-closed-inherited

reasoning-closed-inherited dark
reasoning-open-slider

reasoning-open-slider dark
reasoning-low

reasoning-low dark
reasoning-medium

reasoning-medium dark
reasoning-high

reasoning-high dark
reasoning-unanchored

reasoning-unanchored dark
reasoning-slider-preview

reasoning-slider-preview dark
reasoning-single-option

reasoning-single-option dark
reasoning-disabled

reasoning-disabled dark
fast-mode-off

fast-mode-off dark
fast-mode-on

fast-mode-on dark
fast-mode-only

fast-mode-only dark
fast-mode-disabled

fast-mode-disabled dark
voice-idle-mic

voice-idle-mic dark
voice-hold-hint

voice-hold-hint dark
dictation-pressing

dictation-pressing dark
dictation-arming

dictation-arming dark
dictation-connecting

dictation-connecting dark
dictation-recording

dictation-recording dark
dictation-partial

dictation-partial dark
dictation-finalizing

dictation-finalizing dark
talk-active-listening

talk-active-listening dark
talk-active-connecting

talk-active-connecting dark
talk-active-thinking

talk-active-thinking dark
talk-active-hover-stop

talk-active-hover-stop dark
talk-error

talk-error dark
talk-camera-off

talk-camera-off dark
talk-camera-on-preview

talk-camera-on-preview dark
talk-camera-switch

talk-camera-switch dark
mic-picker-populated

mic-picker-populated dark
mic-picker-loading

mic-picker-loading dark
mic-picker-no-devices

mic-picker-no-devices dark
mic-picker-error

mic-picker-error dark
mic-picker-capabilities-unconfigured

mic-picker-capabilities-unconfigured dark
mic-picker-capabilities-checking

mic-picker-capabilities-checking dark
mic-picker-active-session-hint

mic-picker-active-session-hint dark
mic-picker-hold-toggle-off

mic-picker-hold-toggle-off dark
attachments-menu-open

attachments-menu-open dark
attachment-image

attachment-image dark
attachment-file

attachment-file dark
attachment-large-paste

attachment-large-paste dark
attachment-browser-annotation

attachment-browser-annotation dark
attachments-scroll-middle

attachments-scroll-middle dark
attachment-hover-remove

attachment-hover-remove dark
attachment-drop-active

attachment-drop-active dark
reply-preview

reply-preview dark
plus-capabilities-root

plus-capabilities-root dark
plus-skills-loading

plus-skills-loading dark
plus-skills-error

plus-skills-error dark
plus-skills-empty

plus-skills-empty dark
plus-skills-populated

plus-skills-populated dark
plus-connectors-empty

plus-connectors-empty dark
plus-connectors-populated

plus-connectors-populated dark
plus-connectors-admin-locked

plus-connectors-admin-locked dark
plus-tools-loading

plus-tools-loading dark
plus-tools-error

plus-tools-error dark
plus-tools-empty

plus-tools-empty dark
plus-tools-populated

plus-tools-populated dark
session-overrides-pill

session-overrides-pill dark
context-ring-normal

context-ring-normal dark
context-ring-approximate

context-ring-approximate dark
context-ring-warning

context-ring-warning dark
context-compact-action

context-compact-action dark
context-compact-busy

context-compact-busy dark
context-popover-open

context-popover-open dark
context-provider-quota

context-provider-quota dark
status-run-interrupted

status-run-interrupted dark
status-compaction-active

status-compaction-active dark
status-compaction-complete

status-compaction-complete dark
status-fallback-active

status-fallback-active dark
status-fallback-cleared

status-fallback-cleared dark
notice-run-error

notice-run-error dark
notice-workspace-conflict-collapsed

notice-workspace-conflict-collapsed dark
notice-workspace-conflict-expanded

notice-workspace-conflict-expanded dark
notice-placement-starting

notice-placement-starting dark
notice-placement-failed

notice-placement-failed dark
banner-archived-replacement

banner-archived-replacement dark
banner-model-setup-replacement

banner-model-setup-replacement dark
banner-recovery-replacement

banner-recovery-replacement dark
banner-recovery-busy

banner-recovery-busy dark
banner-above-composer

banner-above-composer dark
banner-replacement-with-stop

banner-replacement-with-stop dark
question-takeover-single

question-takeover-single dark
question-collapsed

question-collapsed dark
question-multiple-requests

question-multiple-requests dark
question-multiselect

question-multiselect dark
question-other-text

question-other-text dark
question-intermediate

question-intermediate dark
question-submitting

question-submitting dark
question-error

question-error dark
new-empty

new-empty dark
new-draft-enabled

new-draft-enabled dark
new-submit-disabled-reason

new-submit-disabled-reason dark
new-blocked-notice

new-blocked-notice dark
new-starting

new-starting dark
new-placement-locked

new-placement-locked dark
new-attachments

new-attachments dark
new-terminal-split-action

new-terminal-split-action dark
combo-full-stack

combo-full-stack dark
combo-offline-queue

combo-offline-queue dark
combo-goal-queue

combo-goal-queue dark
combo-progress-goal-no-queue

combo-progress-goal-no-queue dark
combo-overlay-stack

combo-overlay-stack dark
combo-question-progress-queue-goal

combo-question-progress-queue-goal dark
combo-replacement-progress-queue-goal

combo-replacement-progress-queue-goal dark

Landing fixes (2026-08-25, maintainer pass)

Fixes applied on top of @vyctorbrzezowski's work to finish landing (head 9cbfeb6f3ff):

  • Progress-card docking restored: the restructure dropped the dock-beside-wide-composer placement shipped in feat(ui): dock the session progress card beside a wide composer #129141 and hid the completed marker inside collapsed-only summary content. Restored .session-progress-card--dock positioning and moved the marker to the always-visible summary grid. Protected by the unmodified main e2e ui/src/e2e/session-progress-live-placement.e2e.test.ts (2 tests, green again).
  • Capability menu Draft restored: the new-session capability menu lost its Draft option and selected-state indicators; unmodified main e2e new-session-page.capability-menu.e2e.test.ts is green again.
  • Swarm task popover anchoring (ClawSweeper P2): the popover now bounds its height against its measured in-flow composer-adjacent anchor via the existing replaceComposerPopoverAnchor observer instead of the raw viewport. Actual-tree mobile regression added in chat-swarm-progress.browser.test.ts; it failed with −71px top clipping on the previous head.
  • Permission-mode final-effect proof (security item): new-session-page.operator-scopes.e2e.test.ts now proves an administrator's Full selection creates the session with permissionMode: "full" (exactly one sessions.create), and a write-scoped operator's retained Full selection is rejected before creation: submit disabled, Full option disabled with explanation, visible role="status" notice, zero sessions.create requests.
  • Lint gates: ui/src/pages/new-session/composer.ts split below the 700-line gate (capability/visibility controls → composer-capability-controls.ts, no wrapper layer, net −97 lines in the composer) and reformatted.
  • Mobile footer reading order: test aligned with the shipped order (attachments → draft visibility → model). @vyctorbrzezowski — your test comment described attach→model→draft while the implementation renders attach→draft→model; flip the product order in a follow-up if that was the intent.

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-progress browser+unit and session-progress-card suites green (18 tests); ui/src/pages/new-session suite 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.create with permissionMode:"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 as permissionMode: full in the canonical store: #124301 (comment)

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 15, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Aug 15, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 25, 2026, 6:59 PM ET / 22:59 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: afbc7928c3ca4b6d5fc5158cd5441d91b8e55633
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has substantial targeted coverage, but the required exact-head final authorization proof is still absent.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: prepared Mantis media predates the later permission changes, and exact-head proof only uses a mocked Gateway; add redacted isolated-Gateway evidence for allowed and downgraded session creation before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: prepared Mantis media predates the later permission changes, and exact-head proof only uses a mocked Gateway; add redacted isolated-Gateway evidence for allowed and downgraded session creation before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 5 items Authority-bearing change: The new-session submission flow includes the UI-selected permission mode in the sessions.create request.
Gateway final authorization: The Gateway's session-create owner rejects full permission mode when the connected client lacks operator.admin; this is the final server-side boundary.
Exact-head UI coverage: The PR adds mocked-browser coverage for an allowed Full session and a scope downgrade that prevents a create request, but it does not exercise the final Gateway authorization owner.
Findings None None.
Security Needs attention Prove permission rejection at the final Gateway effect: The branch adds a Control UI path that sends permissionMode to session creation; the available proof uses a mock Gateway, so it does not demonstrate that a downgraded operator is rejected before a real session is created.

How this fits together

The 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 sessions.create, where the Gateway owns the final authorization decision.

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

Decision needed

Question Recommendation
Should this PR wait for exact-head final-effect proof that the real Gateway rejects Full session creation for a write-only operator before creating a session? Require Gateway final-effect proof: Add an isolated exact-head Gateway run proving allowed creation and forbidden creation with zero created sessions.

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

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: prepared Mantis media predates the later permission changes, and exact-head proof only uses a mocked Gateway; add redacted isolated-Gateway evidence for allowed and downgraded session creation before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Prove permission rejection at the final Gateway effect - The branch adds a Control UI path that sends permissionMode to session creation; the available proof uses a mock Gateway, so it does not demonstrate that a downgraded operator is rejected before a real session is created.
  • Resolve merge risk (P1) - A mocked Gateway can show that the UI suppresses a downgraded selection, but it does not prove that the exact PR head reaches the real Gateway authorization owner and rejects the nearest unauthorized principal before session creation.
  • Complete next step (P2) - A maintainer or PR author must provide final-effect Gateway proof; this is not a safe autonomous repair task.

Findings

  • [medium] Prove permission rejection at the final Gateway effect — ui/src/pages/new-session/draft-submission-flow.ts:243
Agent review details

Security

Needs 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

Metric Value Why it matters
Production versus test delta production +3,256 net; tests/support +1,489 net This is a broad UI rewrite with substantial production growth, so exact-head behavior proof is especially important.
Permission-mode request surface 1 existing session-create parameter newly selected and persisted by the Control UI The new UI pathway can change the authorization mode requested for a created session.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/session-progress-card.test.ts, serialized state: ui/src/components/session-progress-card.ts, serialized state: ui/src/e2e/chat-flow.navigation-presentation.e2e.test.ts, serialized state: ui/src/e2e/session-ownership.e2e.test.ts, serialized state: ui/src/pages/new-session/session-placement-recovery-state.test.ts, unknown-data-model-change: ui/src/components/session-progress-card.test.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Mantis proof suggestion

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

@openclaw-mantis web UI chat proof: verify a multiline composer sends a message and renders the final reply on this PR head; return redacted evidence.

Merge-risk options

Maintainer options:

  1. Prove the final Gateway boundary (recommended)
    Run an exact-head isolated Gateway scenario that confirms a write-only operator cannot create a Full session and that no session side effect occurs.
  2. Accept the split-boundary evidence
    Maintainers may accept the existing UI mock and server-owner coverage while documenting that no integrated final-effect run was supplied.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add exact-head isolated-Gateway proof for allowed Full session creation and rejected write-only creation with zero sessions created.

Technical review

Best 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 sessions.create, but no exact-head real-Gateway final-effect run is supplied.

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.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authority-chain proof required: prepared Mantis media predates the later permission changes, and exact-head proof only uses a mocked Gateway; add redacted isolated-Gateway evidence for allowed and downgraded session creation before merge.

Label justifications:

  • P2: The PR materially changes a broad Control UI workflow without evidence of an emergency production outage.
  • merge-risk: 🚨 security-boundary: The branch newly carries a UI-selected permission mode into session creation, requiring proof at the Gateway final-effect boundary.
  • merge-risk: 🚨 compatibility: The composer and new-session workflow restructure changes existing operator interaction and persisted draft recovery behavior.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: prepared Mantis media predates the later permission changes, and exact-head proof only uses a mocked Gateway; add redacted isolated-Gateway evidence for allowed and downgraded session creation before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authority-chain proof required: prepared Mantis media predates the later permission changes, and exact-head proof only uses a mocked Gateway; add redacted isolated-Gateway evidence for allowed and downgraded session creation before merge.

Evidence

Security concerns:

  • [medium] Prove permission rejection at the final Gateway effect — ui/src/pages/new-session/draft-submission-flow.ts:243
    The branch adds a Control UI path that sends permissionMode to session creation; the available proof uses a mock Gateway, so it does not demonstrate that a downgraded operator is rejected before a real session is created.
    Confidence: 0.91

What I checked:

Likely related people:

  • steipete: Recent PR-head commits repaired the composer progress, permission-final-effect browser coverage, and CI routing. (role: recent area contributor; confidence: high; commits: 83ab242a3d39, 9cbfeb6f3ff8, afbc7928c3ca; files: ui/src/components/session-progress-card.ts, ui/src/e2e/new-session-page.operator-scopes.e2e.test.ts, ui/src/pages/new-session/draft-submission-flow.ts)

Rank-up moves

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

  • Add a redacted isolated-Gateway run proving Full creation for an admin and zero creation for a write-only operator.
  • Update the PR body with the exact-head trace or recording; a fresh ClawSweeper review should then reassess the gate.

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 (57 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-24T01:04:19.994Z sha 00321d3 :: needs real behavior proof before merge. :: [P1] Restore redaction for pairing setup failures
  • reviewed 2026-08-24T04:52:40.200Z sha 00321d3 :: needs real behavior proof before merge. :: [P1] Restore redaction for pairing setup failures
  • reviewed 2026-08-24T19:20:02.242Z sha 00321d3 :: needs real behavior proof before merge. :: [P1] Restore redaction for pairing setup failures
  • reviewed 2026-08-25T12:23:08.982Z sha d834bf7 :: needs real behavior proof before merge. :: [P1] Keep pairing setup errors redacted
  • reviewed 2026-08-25T15:05:56.974Z sha 35ff8d8 :: needs real behavior proof before merge. :: [P1] Wait for dictation finalization before starting
  • reviewed 2026-08-25T15:46:57.748Z sha d3396c4 :: needs real behavior proof before merge. :: [P2] Anchor the task-popover height to its real composer position
  • reviewed 2026-08-25T19:51:40.191Z sha d90c0f2 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-25T21:00:50.475Z sha d90c0f2 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 16, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 16, 2026 04:15
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 16, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 16, 2026
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants