Skip to content

fix(ui): restore Steer for Gateway-queued inputs - #160593

Draft
roboclaw-bot wants to merge 1 commit into
openclaw/jev-queue-decision-missing-steer-optionfrom
openclaw/queued-input-steer-ui
Draft

roboclaw-bot wants to merge 1 commit into
openclaw/jev-queue-decision-missing-steer-optionfrom
openclaw/queued-input-steer-ui

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: Steer disappears when an unsent message moves into Gateway custody, even while compatible work is still active.

User Impact

The queued-message chip keeps its Steer action after Gateway admission, with a busy state and a visible refusal when steering is unavailable. The composer draft is preserved. Local unsent messages retain their existing send/reorder behavior; Gateway-held inputs are never resent from preview text.

Stack: depends on backend #160275. No merge or deployment is authorized by this task. Both PRs remain drafts.

Why This Change Was Made

Local outbox and Gateway-held input have different custody contracts. Local Steer stays with the send-action owner. Server-held Steer sends only the original session/run identity to chat.steer, then reconciles through the existing authoritative pending-input reader. Empty-composer keyboard steering follows the displayed eligible queue order and retains IME guards.

Evidence

Refreshed UI head: ffc9487b23ee568ea3c48c61256864c8db4e2111, stacked on backend 3b8a4bb07de632056cb7bf1e1340264c59698e83.

  • 60 focused UI cases passed: 15 compositor/projection, 34 composer-action/IME, 6 queue-custody lifecycle, and 5 retained-input control cases. These cover identity-only control, no chat.send fallback, duplicate/busy suppression, refusal reconciliation, retired input and draft preservation.
  • Real current-source Control UI in Chromium with a mock Gateway: the base renderer had the queued chip but no Steer action; the candidate exposes and drives the control without resending the preview, while retaining typed draft text. This is browser/UI boundary proof, not a live-provider claim.
  • Production UI and affected canonical test typegraphs, scoped lint and formatting passed. Backend composed RPC/storage proof is recorded in the prerequisite PR.
  • Complete combined local autoreview against 63c25f72daff6906c011027195a3187c8d8b7f06: P0–P2, two native passes, no actionable findings. The only subsequent change removed await from synchronous backend test cleanup; affected lint and standalone tests passed afterward.

Inspected before/after

Synthetic data; crops exclude unrelated UI and model-picker details. These inspected screenshots were also delivered to the originating chat. Current proof and scenario details.

Before: Gateway-held queued message without Steer.

Before: Gateway-held queued message without Steer

After: the same queued message retains its Steer action.

After: Steer remains available on a Gateway-held queued message

Limits: the browser scenario uses a mock Gateway; there was no live-provider or installed-upgrade rehearsal. Native generated contracts were checked, not native application builds. Current-head CI remains separate; older results are not current-head evidence.

Reported by @vyctorbrzezowski.

Worked on by

Work sessions


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 28, 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 Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 30, 2026, 11:46 PM ET / October 1, 2026, 03:46 UTC (Revision 4).

ClawSweeper review

What this changes

The Control UI adds Steer to Gateway-queued messages, preserves their original identity and the user's draft, and reconciles outcomes through authoritative chat history.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains useful: current main still excludes Gateway-queued inputs from Steer. The prior disconnected-state finding is resolved by the shared composer gate, and no new actionable defect was found in the introduced UI changes.

Priority: P2
Reviewed head: 8f34d27ed7d5f632f1e807cd079ad9c2934d0b93

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported UI repair with the prior finding resolved and no new blocking code defect identified.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.
Evidence reviewed 10 items Pinned introduction boundary: Reviewed the explicit backend-base-to-UI-head delta. The backend implementation is inherited from the stacked base, rather than introduced by this UI PR.
Central gap remains on main: Current main's eligibility predicate requires a movable local queue item; the shared queue-order predicate excludes inputs with a pending run identity. The latest release v2026.9.7 retains that same eligibility predicate.
Latest-release comparison: The supplied latest release commit still implements local-outbox eligibility without the Gateway-queued branch; this PR's central behavior is not already shipped there.
Findings None None.
Security None None.

How this fits together

The Control UI displays queued inputs supplied by Gateway chat history alongside the browser's local outbox. Steer asks the Gateway to promote an existing queued input into the active turn, while subsequent history determines whether its queue row remains.

flowchart TD
  A[Gateway queued inputs] --> B[Composer queue]
  C[Connection and send readiness] --> B
  B --> D[Steer original input]
  D --> E[Gateway queue owner]
  E --> F[Authoritative chat history]
  F --> B
  E --> G[Accepted input or visible refusal]
Loading

Before merge

  • Resolve merge risk (P1) - The UI calls a control operation supplied by its still-unmerged backend base; validation against the completed backend on main remains outstanding.
  • Complete next step (P2) - After the backend dependency lands, retarget this PR to main and validate the queued-input control against the completed Gateway owner.
Agent review details

Security

None.

PR surface

Source +149, Tests +793, Docs +2. Total +944 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 12 163 14 +149
Tests 4 793 0 +793
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 958 14 +944

Review metrics

Metric Value Why it matters
Production versus test growth production net +135 lines; tests +793 lines Production growth is justified by the scoped control lifecycle and history reconciliation; most added coverage protects identity, ordering, draft, and stale-response behavior.

Merge-risk options

Maintainer options:

  1. Complete backend-first integration (recommended)
    Land the backend dependency, retarget this UI slice to main, and verify accepted and refused steering through the completed Gateway contract.

Technical review

Best possible solution:

Keep promotion with the Gateway queue owner and use authoritative receipts to preserve input identity, attachments, draft state, and truthful refusal outcomes.

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

Yes, source provides a high-confidence path: display a Gateway-queued input during an active run, and current main excludes it from Steer eligibility. Supplied browser captures demonstrate the visible difference; this review did not execute target code.

Is this the best way to solve the issue?

Yes, routing the original queued identity through the Gateway owner is the maintainable approach, and the UI preserves existing history and composer ownership.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This restores a bounded chat control while ordinary queued delivery remains available.
  • merge-risk: 🚨 message-delivery: The new control relies on the pending backend's original-input promotion and receipt semantics, which still need validation after backend-first integration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after images show the changed composer control, and the captured Chromium interaction records original-identity chat.steer, no replacement sends, receipt-based removal, and draft preservation at the reviewed head. This is sufficient UI-boundary proof with a mocked Gateway; completed-backend integration remains separate. Added state is pane-local, with no stored-data contract change.

Evidence

What I checked:

  • Pinned introduction boundary: Reviewed the explicit backend-base-to-UI-head delta. The backend implementation is inherited from the stacked base, rather than introduced by this UI PR. (8f34d27ed7d5)
  • Central gap remains on main: Current main's eligibility predicate requires a movable local queue item; the shared queue-order predicate excludes inputs with a pending run identity. The latest release v2026.9.7 retains that same eligibility predicate. (ui/src/pages/chat/chat-queue.ts:35, 55fe1b488910)
  • Latest-release comparison: The supplied latest release commit still implements local-outbox eligibility without the Gateway-queued branch; this PR's central behavior is not already shipped there. (ui/src/pages/chat/chat-queue.ts:35, c074824a27c9)
  • Prior finding resolved: The shared composer supplies onQueueSteer only when connected, writable, and free of a submit-disabled reason. That gate prevents the previously reported enabled disconnected control in the actual rendered path. (ui/src/pages/chat/components/chat-composer-view.ts:105, 55fe1b488910)
  • Original identity and lifecycle ownership: The controller sends only session, agent, incarnation, and input-run identity to chat.steer. It scopes publication to the current pane, client, connection epoch, and subscription generation, and delegates queue reconciliation to history without replacing the input through chat.send. (ui/src/pages/chat/chat-pending-input-steer.ts:73, 8f34d27ed7d5)
  • Inspected browser proof: Inspected all four prepared images. The current before/after pair visibly shows Steer appearing on the same Gateway queue row while retaining the draft. The captured body and fix(ui): restore Steer for Gateway-queued inputs #160593 (comment) record actual Chromium UI interaction at this head: one original-identity control request, zero replacement sends, and removal following a consumed receipt. The Gateway was mocked; this establishes UI-boundary behavior, not backend or live-provider consumption. (8f34d27ed7d5)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Validate accepted and refused original-input steering against the completed backend after retargeting to main.

Rating scale

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

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

Workflow

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

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-28T17:54:17.812Z sha 9716679 :: blocked before merge. :: none
  • reviewed 2026-09-28T21:32:14.312Z sha 1b9059c :: blocked before merge. :: none
  • reviewed 2026-09-28T22:28:26.835Z sha 1b9059c :: blocked before merge. :: [P2] Disable Gateway-queued Steer while disconnected

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Sep 28, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/jev-queue-decision-missing-steer-option branch from f3947e2 to efef44c Compare October 1, 2026 03:35
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/queued-input-steer-ui branch from 1b9059c to 8f34d27 Compare October 1, 2026 03:35
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Rebased UI — October 1

Current main 00f3a206302 versus the rebased UI at 8f34d27ed7d. Actual Control UI source served by Vite, identical synthetic conversation data, dark theme, 1280×900; mocked Gateway, not a live provider.

Before

Before: server-queued message without Steer

After

After: Steer on the original server-queued message

The click check sent one chat.steer request containing only the original session/run identity, sent zero replacement chat messages, reconciled the consumed receipt, and preserved the draft.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 1, 2026
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/jev-queue-decision-missing-steer-option branch from efef44c to 3b8a4bb Compare November 2, 2026 15:13
Keep local outbox steering with its send owner. Use identity-only control for Gateway-held input, reconcile authoritative custody, and preserve the composer draft.

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

This branch has not been deployed

No deployments
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 merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. 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: 👀 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.

2 participants