Skip to content

fix(ui): quiet pending steer states - #194805

Merged
roboclaw-bot merged 15 commits into
mainfrom
openclaw/nova-claw-2
Nov 8, 2026
Merged

roboclaw-bot merged 15 commits into
mainfrom
openclaw/nova-claw-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Pending steers from #193665 work well, but a few edges are rough:

  • Messages that cannot be sent early show a warning-styled line under every waiting bubble (Waiting for exec; cannot interrupt safely.), using internal tool names.
  • A refused Send now puts a sticky notice above the composer (Sending a pending steer now requires session write access. / The conversation changed…). It stays there after the user sends new messages, so it reads as if those failed.
  • Several waiting messages each show their own row (Send now or a warning), which is redundant: waiting steers are delivered together.
  • A pending bubble can show the delivered footer (sender, time, copy/comment/rewind) on hover or focus next to Send now, and pending bubbles sit at different spacing than delivered ones.
  • Viewers without steer access see nothing under their pending message.

Solution

Presentation-only changes in the Control UI. The Gateway, steering lifecycle and Send now interruption are unchanged.

  • One row for all waiting steers. Waiting steers drain together at the next model boundary, so a single Send now sits under the newest steer that can interrupt. When none can (or the viewer cannot steer), the newest shows a muted Steering… label instead. Example: three rapid messages where only the first two can interrupt → Send now under the second, nothing else.
  • Plain copy. Steering… has no spinner; the reason is on hover and is the accessible name: “Steering — sends when the current step finishes.” or “…on the next model turn.” No tool names.
  • Permission-aware. Send now renders only when the viewer can steer (already gated by session access). Everyone else sees Steering….
  • No composer notice for Send now. A refused or failed Send now refreshes the pending list and the row shows its current state. Dismiss errors still use the notice.
  • Delivered spacing. Steer rows use the same footer and action-row slots delivered messages use, so bubbles keep identical positions before and after delivery. Sender, timestamp and footer actions appear once the message is delivered.
  • Docs: docs/web/control-ui.md, docs/concepts/queue-steering.md.

Accepted edge: if a viewer loses steer access while Send now is on screen, the click is refused quietly and the message stays queued.

Screenshots

Before → after screenshots (mocked Gateway, synthetic content) are attached in comments below. The latest comment shows the four states with identical bubble positions.

Evidence

  • Component tests: chat-message (including row assignment across steers waiting together), group, markdown, queue/steer lifecycle, pending-inputs pagination, session-controls and transcript projection suites — 104 passed.
  • Browser e2e chat-flow.messaging (10 passed): one Send now on the newest sendable steer; an earlier sendable steer carries it when the newest cannot interrupt; refused Send now shows no composer notice; blocked steers show one Steering…; Send now still delivers.
  • Measured bubble positions in the mocked Control UI are identical for all-blocked, all-sendable, first-two-sendable and delivered states.
  • Real Gateway proof chat-steer-send-now.real-gateway.e2e.test.ts with OPENCLAW_STEER_NOW_PROOF=fixed passed on this revision.
  • pnpm tsgo:ui, oxlint on touched files, stylelint, format check, git diff --check; pnpm tsgo:test:ui and pnpm ui:i18n:verify on the first revision.
  • Foreign locales show English for the changed strings until the locale refresh workflow runs.

Worked on by

roboclaw-bot and others added 2 commits November 7, 2026 21:01
Show a muted "Steering…" label once on the newest waiting steer, with the
wait reason on hover instead of tool names. Render Send now only when the
viewer can steer and the run can interrupt; a refused Send now refreshes
the row instead of raising a composer notice. Pending steers hide the
delivered footer until they land.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 75c974ad-e97c-460d-a403-74cd33af12f1
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M labels Nov 7, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Before → after, mocked Gateway with synthetic content.

  1. Before: warning under every waiting message.
  2. After: one Steering… on the newest waiting message.
  3. After: Send now when the run can interrupt.
  4. After delivery: sender, time and actions.

The second image shows the refusal path: no composer notice, the row stays, and the footer appears only after delivery.

sheet

sheet

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR quiets pending-steer labels, removes misleading composer notices after refused steering, and defers footer controls until delivery.

Example: Two corrections wait behind a tool that cannot be interrupted.

  • Before: Each correction shows “Waiting for exec; cannot interrupt safely.”
  • After: The newest correction shows one muted “Steering…” label with an accessible wait explanation.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, visually demonstrated presentation repair with a minor documentation mismatch; the changed refusal scenarios use a mocked Gateway.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser captures directly show the changed labels, refusal presentation, pending footers, and delivered controls using synthetic content and a mocked Gateway; the body additionally reports a real-Gateway Send now replay, whose existing scenario covers interruption and continued delivery.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Queued corrections display internal tool warnings, misleading composer errors, and controls that suggest delivery has already completed.
Reason: The collaborator-authored direction addresses visible confusion through existing UI owners without new settings, permissions, or storage.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this is a useful maintainer-directed presentation fix with one minor documentation correction; no introduced runtime or security defect was found.

Priority: P2
Reviewed head: 9dd13e81dad5c94df2812748f64a681b52bdd1be

Before merge

  • Describe refusal as a refresh rather than a guaranteed label change (P3) - When chat.steerNow returns FORBIDDEN and refreshed history still reports interruption as available, the row continues showing Send now. The new browser test explicitly asserts this at chat-flow.messaging.e2e.test.ts:133, and the refusal screenshot shows the same result. Update this sentence to say the row refreshes its current pending state without a separate composer error; promising Steering… contradicts the implemented retry behavior.

Findings

  • [P3] Describe refusal as a refresh rather than a guaranteed label change — docs/web/control-ui.md:397-398

Tests

  • Missing end-to-end proof: No executed base-failing/head-passing result is supplied for the new presentation regressions.
Agent review details

How this fits together

The Control UI projects Gateway pending-input records into chat bubbles and sends existing session-scoped steering actions back to the Gateway.

flowchart LR
  A[Gateway pending inputs] --> B[Scoped chat reconciliation]
  B --> C[Pending steer lookup]
  C --> D[Chat bubbles and status]
  D --> E[Existing steering action]
  E --> A
Loading

Technical review

Best possible solution:

Retain the focused presentation changes and describe refusal as refreshing the current pending state rather than guaranteeing a Steering label.

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

Current-main source establishes the repeated warning and composer-error paths, and the inspected before/after browser captures demonstrate the presentation problem.

Is this the best way to solve the issue?

The patch uses the existing reconciliation and rendering owners, preserves server authority and delivery, and adds only the derived newest-steer marker needed to consolidate labels.

Full review comments:

  • [P3] Describe refusal as a refresh rather than a guaranteed label change — docs/web/control-ui.md:397-398
    When chat.steerNow returns FORBIDDEN and refreshed history still reports interruption as available, the row continues showing Send now. The new browser test explicitly asserts this at chat-flow.messaging.e2e.test.ts:133, and the refusal screenshot shows the same result. Update this sentence to say the row refreshes its current pending state without a separate composer error; promising Steering… contradicts the implemented retry behavior.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fc9749fb1e46.

Provenance checked

  • Pending-steer labels and refusal feedback changes intended behavior with a stated reason (a956ef1: Offer early steering through the existing execution owner and explain unsupported interruption in place; this PR explains why repeated tool warnings and composer notices are misleading.)
  • Delivered transcript footer changes intended behavior with a stated reason (4e3818b: Preserve transcript identities and actions during the Solid migration; this PR deliberately defers those controls only while the message remains pending.)
  • Dismissal error handling keeps the original intent (67ab984: Provide shared dismissal of retired inputs through the existing owner; dismissal failures retain their existing visible error path.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • Compare the revised sentence with ui/src/e2e/chat-flow.messaging.e2e.test.ts:120-133 and the supplied refusal screenshot.
  • pnpm docs:check-links
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a956ef1 adds ui/src/pages/chat/chat-pending-inputs.ts:386 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a956ef171452; files: ui/src/pages/chat/chat-pending-inputs.ts)
  • Chris Eckert: Raw commit 67ab984 adds ui/src/pages/chat/chat-pending-inputs.ts:477 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 67ab9846bed0; files: ui/src/pages/chat/chat-pending-inputs.ts)

PR surface

Source +42, Tests +75, Docs +4. Total +121 across 13 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 74 32 +42
Tests 2 95 20 +75
Docs 2 10 6 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 179 58 +121

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Misleading pending-message notices and premature delivery controls create bounded chat interaction confusion without preventing message delivery.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Misleading pending-message notices and premature delivery controls create bounded chat interaction confusion without preventing message delivery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 7, 2026, 4:17 PM ET / 21:17 UTC.

roboclaw-bot and others added 2 commits November 8, 2026 02:00
Waiting steers drain together, so show a single Send now on the newest
sendable steer, or Steering… on the newest when none can interrupt. Steer
rows use the footer and action-row slots of delivered messages, so pending
and delivered transcripts keep identical spacing.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 5de4f548-dca9-4b68-8647-d89cdbffca48
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Updated revision: one steer row for all waiting steers, with delivered spacing.

Left to right: none can interrupt (one Steering…), all can interrupt (one Send now on the newest), only the first two can interrupt (Send now on the second), delivered. Bubble positions are identical in all four.

sheet

roboclaw-bot and others added 2 commits November 8, 2026 02:16
The steer row between bubbles sat centered in the reserved action-row space,
so it read as belonging to neither message. Place it right under its bubble,
like the final footer, while keeping the same total spacing.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e1b15a49-88e6-4f43-89e4-c9472cd0848d
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Send now now sits right under its own bubble (2px, same as the final footer) instead of floating between bubbles. Bubble positions are unchanged.

Left to right: only the first two can interrupt, all can interrupt, delivered.

sheet

roboclaw-bot and others added 5 commits November 8, 2026 02:28
Reuse the muted chat-message-source color for the Steering… label and use a
shorter steer-row rule so total Control UI CSS stays within the base growth
allowance. Allocate the steer row tests in the test-line budget.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: caf0d4c4-b2db-4d0d-b08d-698b7a73f80b
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8c238ac4-a4a0-4559-8157-31180fe7a9d2
roboclaw-bot and others added 4 commits November 8, 2026 03:08
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 0574f0a9-3676-4385-b4af-0e5f6f202a76
Update the Send-now-after-timeout browser test from main to the new
Steering… row. With current main the test-line budget has room, so drop the
allocation.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 1a77c1d2-34f8-436b-b49f-c8dda77f947e
@roboclaw-bot
roboclaw-bot merged commit 44a5a65 into main Nov 8, 2026
83 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/nova-claw-2 branch November 8, 2026 04:02
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 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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