Skip to content

feat(chat): send pending steers now without stopping the run - #193665

Merged
steipete merged 5 commits into
mainfrom
steipete/perf-micro-steer-send-now-link-20260919
Nov 5, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/perf-micro-steer-send-now-link-20260919

Conversation

@steipete

@steipete steipete commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A message steered into an active run can wait behind a long-running tool even though chat.send acknowledged it immediately. Writers need an explicit way to deliver that correction sooner without stopping the run.

User Impact

Pending steers keep their normal user bubble, with a small Send now text link underneath. Clicking it interrupts supported running tools, records a user-interruption result for the model, and lets the existing steering queue continue the same run. The link disappears after injection. Repeated requests cannot interrupt later work or inject the message twice.

Tools that cannot safely stop show a quiet waiting explanation. Foreground local exec waits for process cleanup; interrupting process polling ends only the wait, preserving the independently managed background command. Code Mode aggregate tools, native/remote runtimes, and node/durable/background execution do not offer tool-only interruption. Cancellation does not undo completed side effects. No configuration or database migration is required.

Why This Change Was Made

The pending input retains its captured execution owner and exact queue identity. The writer-authorized chat.steerNow RPC uses that owner to interrupt only admitted tool calls; the run-level abort signal stays untouched. History projects capability through the existing physical session-store matcher, and the UI consumes that projection. No extra store scan or cache is introduced.

Interruption stays blocked while hooks prepare a tool call. The existing execution owner evaluates the final hook-rewritten arguments before making its per-call signal available for user cancellation. This fixes the hosted review finding where local exec could be rerouted to an unsafe remote invocation after the original capability decision.

Handwritten production code is net +679 lines, excluding generated validators, tests, and measurement tooling. The growth implements the new typed action, per-call interruption lifetime, and UI behavior. Pending RPC execution loads on demand while synchronous admission stays with the existing owner; redundant collections, shared rewind completion, and text-action styling were removed.

Release-note context: Control UI writers can send a pending steer immediately by interrupting supported tools while keeping the active run alive; unavailable interruption is explained in place.

Evidence

The final repair passes 128 focused core/exec/process/hook/prefix tests, including a real Agent-to-exec hook regression that fails on the previous code. It verifies that rewritten remote execution blocks cancellation while a safe parallel sibling continues. Earlier feature proof passed 84 focused Gateway/tool tests covering writer authorization, exact input identity, idempotency, FIFO, physical cleanup, model-visible interruption and continued execution.

Final real Gateway/Control UI proof passed in 35.15 seconds using isolated state, owned ports, a real local exec process and deterministic loopback inference. It verified the visible click, physical tool cleanup before the next model request, one steer consumption, continued original-run output and removal of the link. This is not external live-provider inference evidence. Full synthetic before/after images were inspected and are embedded below. The final UI repair also passes 36 focused UI tests and the original owner-picker E2E at desktop and compact widths. Types, lint, formatting, protocol generation and native contract checks passed. Final isolated Codex autoreview is clean through P2, including the test-only consolidation.

The final pnpm check:changed run passed all selected candidate gates except a new controller-rule finding that was repaired and passed its canonical targeted replay. Its separate inherited release-attribution failure remains recorded: the generic guard does not consume the release candidate's accepted 2026.11.1 tag exception. Exact introducing parent f07f46a passes; de04fbe (#193427), the task base, and the earlier exact CI main parent reproduce it. This is an unresolved main regression for its owner, not noise or a green check. No release record or guard exception was changed; no timeout or budget ceiling was increased.

The first CI attempt exposed incomplete shared Agent fixtures and UI-only capability metadata entering the model-facing history schema. The repaired fixture owners pass all 61 previously failing cases across eight files; the tool schema excludes the new writer-only control while preserving its previous public fields and compact hint. The independent E2E inventory includes the real-Gateway scenario. The browser reproduction also caught a logical-versus-physical store-locator mismatch, now covered through registered chat.history.

The final local release-mode UI comparison against tested main parent d4e2ec8 passes: chat boot is 1,294,446 bytes gzip against the inherited 1,294,735-byte ceiling, versus 1,293,929 bytes on the tested main parent (+517 bytes), with 20 requests unchanged. The initial head exceeded its ceiling; pending-input RPC work now loads on demand while admission and optimistic feedback stay synchronous. Canonical typed enums remove redundant generated status checks without changing accepted values. The final test-line delta and allocation are both 931 lines. The local replay of the exact CI merge plus the final test-only delta passes with 15 lines spare. A test-only follow-up reuses existing Responses and request-body helpers, preserving every assertion while removing reliance on spare baseline capacity; the allocation was lowered, not raised.

Owner-picker regression found by CI

Both CI attempts exposed an existing large-directory menu timeout. Profiling established that decorative avatar mutations caused repeated full menu-spacing classification. The exact defective owner was introduced in 34e6076 (#183800); the final deterministic regression fails on that original owner. The repair keeps the original owned traversal and ignores mutations that cannot alter row boundaries. It adds no cache or timer and preserves structural/class updates.

The acceptance rule was recorded before the formal comparison: use the existing 1,000-person renamed-owner desktop scenario with unchanged clicks/timeouts, preserve directory refresh/search/Escape/keyboard assignment, reduce irrelevant classification work, and retain the UI boot budget. Five interleaved samples per arm produced:

Instrumented owner-picker fixture Original Repaired
Completed without timeout 2/5 5/5
Median interval until click or timeout 10,769 ms 1,304 ms
Median spacing-owner self CPU 6,210 ms 21 ms
Median sampled JS allocation 3.14 GB 171 MB

Three baseline intervals are timeout-censored, so their median is not successful-action latency. This is a synthetic browser fixture with identical profiling overhead, not a production latency estimate. The final uninstrumented desktop and compact scenarios both pass. No force-click, timeout increase or replay-only claim of repair was used.

Steering measurements and scale qualification

The completed 33-process A/A and interleaved owner comparison measures production commit 5ce254f. The later commits only consolidate the test fixture, lower its allocation, and update one existing steering expectation; production and benchmark sources are identical. The workload uses 4,096 resident input identities, four A/A controls, five ordinary base/candidate pairs, five same-head wait/action pairs, and separate CPU/allocation profiles.

Ordinary steering owner lifecycle Original Final production
Consumption median / p95 52.065 / 52.368 ms 51.932 / 52.377 ms
Aggregate CPU per input 2.801 ms 2.912 ms
Sampled allocation per input 572,241 B 575,114 B

Ordinary-path CPU was +3.96% in aggregate (paired median +3.29%), and sampled allocation +0.50%. All five CPU pairs were positive; A/A CPU ranged 279.571–312.081 ms per 100 inputs, so small differences still have attribution limits. This is an observed cost, not zero overhead. On the same final candidate, cancelling the deliberate 50 ms synthetic wait changed consumption median/p95 from 51.915/52.354 ms to 0.033/0.054 ms. It is not a production latency estimate. All 3,300 inputs were consumed and continued; all 800 interrupting inputs produced the expected model-visible result, with source hashes unchanged.

This microbenchmark includes the real Agent and controller lifecycle but no durable database, physical workspace, transport authorization or Gateway status subscriber. Downstream notification behavior is covered by the real Gateway/UI proof. Separate scale qualification follows.

Separate public-RPC qualification passed against a real synthetic 35.001 GiB database with 5,000 populated sessions and 62,000 workspace files totaling 1.116 GB. It verified persisted interruption results, physical process cleanup before inference, single steer delivery, successful completion of the original run and idempotent repeat action. This was APFS qualification, not btrfs evidence; the observed RPC acknowledgement was 3.699 ms in one functional sample, not an aggregate benchmark. No Team data or runtime was accessed.

Four inherited dead exports were reproduced on the exact base and removed without behavior changes. The auth/restart-test exports came from 56753f7 (#193098); e0466ff removed the workflow helpers' last external consumers.

Before: a pending steer waits in its normal bubble

After: a quiet Send now link beneath the same normal bubble

CI and final test repair

Run 42109752869 tested merge b06579e434c8 (main parent 64ca09fbdde3, previous head 1d7060fc7369). UI browser/E2E checks, security, performance and baseline ratchets passed. The run completed after the runner queue drained: 78 jobs passed,22 skipped, and two test jobs failed (plus the aggregate). The additional candidate failure was an exact-call expectation missing the new queueIdentity. Commit de78b72193ef adds that single string expectation, preserving every prior assertion. All 59 tests in the affected sessions_send file pass (67.29s wrapper, 38.42s Vitest); canonical type-aware lint, formatting and budget checks pass, and final Codex review13 is clean through P2. The helper is excluded by the test-line owner, so the allocation remains 931. Current-head CI is run 42116874475.

The Bun restart-resume E2E failed during its managed-restart cycle: five retained sessions were skipped with AgentDatabaseAdmissionError before native write preparation completed. The affected test and recovery/admission owners are unchanged from the exact main parent. The original focused parent E2E replay passed; a deterministic owner-level regression on unchanged parent production source reproduced the same admission error, persisted marker, zero continuations and permanent suppression on a second recovery call. It uses real SQLite and admission owners with the discovery/admission schedule controlled.

The lifetime memoized recovery operation introduced in #187822 (9bf3231d2535) records a skipped marker batch as completed; its parent reread retained markers on subsequent invocations. This is causal attribution of the permanent retry-suppression defect, not a claim about the stochastic E2E's first failing run. The publication retry delay added in #193049 plausibly exposes the window. A separate physical-store write-preparation join passes the regression and existing siblings (12/12); that main repair is reported separately and is not part of this PR. Fresh CI outcomes remain required and are not waived.

The current run's baseline job exposes 89 lines of inherited main test-budget debt. Its tested merge 33889625b06a has exact main parent 41932f3e5cb4. The literal parent fails the real ratchet at 6,508,483 lines against a 6,508,394 ceiling. #191554 (35702b4bec67) introduced the debt: its immediate parent passes with 15 lines spare, then the commit adds 104 test lines without allocation and fails by 89. Later changes preserve the same net debt. This PR adds 931 counted test lines with 931 allocation, so the tested merge remains exactly 89 over; no baseline or allowance was raised to cover unrelated work. The debt-owning test, ratchet, helper and baseline scalar are unchanged in the tested merge. This new main regression is recorded for separate repair. The current restart-resume shard passed.

Current-head CI completed with 79 successful jobs, 22 skipped jobs, and only the baseline-ratchet job plus its aggregate failing. UI browser/E2E, UI performance, all selected Node shards and independent security-fast passed. The automated report labels the ratchet new against older scheduled main run 42112538916; the literal tested-parent reproduction and introducing-commit proof above establish inheritedness independently. Landing uses the authorized pinned-head exception for this debt only; failed CI is not relabeled green.

Keep pending steers in normal user bubbles with a quiet Send now link. Interrupt supported tool calls through call-scoped abort signals, preserve cleanup and recorded user-interruption results, and let the existing steering owner continue the run. Bind the action to the captured input and current session writer authority.\n\nInclude core, RPC, exec/process and Control UI boundary proof, steering docs, and synthetic owner measurements. Unsupported tool-only interruption is explained in place.
@clawsweeper

clawsweeper Bot commented Nov 5, 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 gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL labels Nov 5, 2026
@steipete
steipete marked this pull request as ready for review November 5, 2026 18:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T21:10:57.681246Z 1d7060f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: de78b72193efb76dbb22ab4808ada505d92c4065
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/exec-tool-target-pinning.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/methods/core-descriptors.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/session-method-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/shared/session-method-scopes-base.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2ac8e2f401

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds a Send now action that interrupts supported tools so a pending correction can reach the model without stopping its run.

Example: A local exec is running when the user sends “Focus on the startup error first.”

  • Before: The correction waits for the running tool.
  • After: Send now requests tool cancellation, waits for cleanup, records the interruption, and continues the same run with the correction.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful owner-directed feature with inspected visual evidence, but a verified interruption-safety defect, branch-caused validation failures, and incomplete authority proof prevent approval.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: An acknowledged correction can remain waiting behind a long-running tool, forcing the writer to wait or stop the whole run.
Reason: Maintainer authorship establishes direction, and the explicit action preserves ordinary steering while giving writers useful control without adding a product setting; new flags and the proof environment variable are measurement-only.

Merge readiness

⛔ Blocked before merge - 8 items remain

Keep open: this maintainer-directed feature addresses a real steering delay, but final-argument interruption safety and PR-caused validation failures need repair.

Priority: P2
Reviewed head: 2ac8e2f401686ef7cea7070da4049d014ffde090

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise chat.steerNow through its registered authorization path against an interruptible local process, showing permitted cancellation and rejection after writer or queued-source authority revocation before the cancellation effect. Inspected screenshots prove the visible link; the body reports real Gateway cleanup and continuation with synthetic inference, and the added harness covers static rejection cases, but neither supplies the retained-authority revocation scenario. Provide redacted logs or terminal/browser evidence with credentials and non-public endpoints removed. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Evaluate interruption safety after execution arguments are finalized (P2) - The registration evaluates interruptible against prepared.args before the internal preparer runs. A supported before_tool_call hook can rewrite a gateway exec to host=node, as covered by bash-tools.exec.resolve-env-hook.test.ts. The call retains its local interruptible classification after remote dispatch; Send now then aborts the node.invoke wait without owning remote-process cleanup, allowing continuation while the remote command can still run. Update the classification from the preparer's final arguments before implementation launch, and keep preparation from advertising unqualified safety.
  • Update the shared Agent fixtures for the new subscription contract (P2) - prepareStream now unconditionally calls subscribeToolInterruptionStatus, but createSubscribedCodeModeHarness still supplies { hasQueuedMessages: () => false } when no Agent is passed. Exact-head CI consequently throws before the host-denial, TTS, command-lifecycle, and tool-result-ordering scenarios run, with cleanup failures following. Update that shared fixture and other affected Agent consumers to provide the real contract rather than weakening the production requirement.
  • Register the new E2E file in the independent ownership inventory (P2) - The new file is added to the real-Gateway and private-server lists, but test/vitest-ui-e2e-config.test.ts does not include it in serialGatewayFiles. Exact-head CI therefore rejects both the complete inventory and real-Gateway skip partition, as well as prebuilt admission inventories. Add the new file to the independent serial inventory and preserve the existing ownership assertions.
  • Reduce the added chat payload below the enforced boot ceiling (P2) - The new chat feature's emitted payload exceeds the unchanged chat boot limit: the PR records 1,294,679 gzip bytes against 1,294,292, and exact-head control-ui-performance fails on that budget. The author confirms this is candidate-caused. Reduce the feature's boot dependency or implementation footprint and rerun the existing budget check without raising its ceiling.
  • Resolve security concern: Qualify revocation at the cancellation effect - The new RPC can cancel work through a captured pending input. Source checks current caller and source authority synchronously, but supplied proof does not show a revoked writer or revoked queued source being rejected before cancellation of an interruptible process; no concrete authorization bypass was established.
  • Resolve merge risk - The author must qualify retained interruption authority after session-write revocation or queued-source authority loss, before it can cancel a live process.
  • Resolve merge risk - A maintainer must attribute the remaining sessions-history output-contract failure and session-owner-assignment browser timeout; available evidence does not establish whether this PR caused them.

Findings

  • [P2] Evaluate interruption safety after execution arguments are finalized — packages/agent-core/src/agent-loop-tool-execution.ts:98-104
  • [P2] Update the shared Agent fixtures for the new subscription contract — src/agents/embedded-agent-runner/run/attempt-stream-prepare.ts:398-399
  • [P2] Register the new E2E file in the independent ownership inventory — test/vitest/vitest.ui-paths.mjs:178
  • [medium] Qualify revocation at the cancellation effect — src/gateway/server-methods/chat-steer-now-handler.ts:47

Tests

  • Missing end-to-end proof: Supply a recorded registered-RPC scenario with a genuinely interruptible process proving allowed cancellation, forbidden-writer rejection, and revocation after queue acceptance before cancellation; the supplied screenshots stop before activation.
Agent review details

How this fits together

The Control UI sends a session-authorized RPC to the existing steering controller, which resolves the captured pending input and requests call-scoped cancellation from the active Agent.

flowchart LR
  A[Pending correction] --> B[Control UI Send now]
  B --> C[Session write authorization]
  C --> D[Captured steering owner]
  D --> E[Call scoped cancellation]
  E --> F[Tool cleanup and result]
  F --> G[Same run continues]
Loading

Technical review

Best possible solution:

Retain the existing steering owner, classify interruption from final execution arguments, repair affected test consumers, and reduce the emitted chat payload within its existing budget.

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

Current main waits at the existing tool boundary; source also establishes the hook-rewrite defect, while exact-head CI independently records the fixture, inventory, and asset-budget failures.

Is this the best way to solve the issue?

Call-scoped cancellation attached to the existing Agent and steering controller is appropriate; the smallest complete implementation must evaluate the execution owner's final arguments and retain cleanup settlement before continuation.

Full review comments:

  • [P2] Evaluate interruption safety after execution arguments are finalized — packages/agent-core/src/agent-loop-tool-execution.ts:98-104
    The registration evaluates interruptible against prepared.args before the internal preparer runs. A supported before_tool_call hook can rewrite a gateway exec to host=node, as covered by bash-tools.exec.resolve-env-hook.test.ts. The call retains its local interruptible classification after remote dispatch; Send now then aborts the node.invoke wait without owning remote-process cleanup, allowing continuation while the remote command can still run. Update the classification from the preparer's final arguments before implementation launch, and keep preparation from advertising unqualified safety.
    Confidence: 0.98
  • [P2] Update the shared Agent fixtures for the new subscription contract — src/agents/embedded-agent-runner/run/attempt-stream-prepare.ts:398-399
    prepareStream now unconditionally calls subscribeToolInterruptionStatus, but createSubscribedCodeModeHarness still supplies { hasQueuedMessages: () => false } when no Agent is passed. Exact-head CI consequently throws before the host-denial, TTS, command-lifecycle, and tool-result-ordering scenarios run, with cleanup failures following. Update that shared fixture and other affected Agent consumers to provide the real contract rather than weakening the production requirement.
    Confidence: 1
  • [P2] Register the new E2E file in the independent ownership inventory — test/vitest/vitest.ui-paths.mjs:178
    The new file is added to the real-Gateway and private-server lists, but test/vitest-ui-e2e-config.test.ts does not include it in serialGatewayFiles. Exact-head CI therefore rejects both the complete inventory and real-Gateway skip partition, as well as prebuilt admission inventories. Add the new file to the independent serial inventory and preserve the existing ownership assertions.
    Confidence: 1
  • [P2] Reduce the added chat payload below the enforced boot ceiling — ui/src/pages/chat/components/chat-message-send-status-view.tsx:107-111
    The new chat feature's emitted payload exceeds the unchanged chat boot limit: the PR records 1,294,679 gzip bytes against 1,294,292, and exact-head control-ui-performance fails on that budget. The author confirms this is candidate-caused. Reduce the feature's boot dependency or implementation footprint and rerun the existing budget check without raising its ceiling.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Qualify cancellation authority (recommended)
    The author should exercise an interruptible local process through the registered RPC and prove that a forbidden writer and revoked queued authority cannot cancel it.
  2. Attribute the remaining CI failures
    A maintainer should compare the sessions-history contract failure and owner-assignment timeout against the base before assigning additional repairs.

Provenance checked

  • Steering custody and outcome settlement keeps the original intent (36adaa8: Recover proven withdrawn inputs in FIFO order without replaying ambiguous acceptance; the PR retains that authoritative outcome rule.)
  • Tool abort settlement changes intended behavior with a stated reason (unknown: Existing abort wrappers detach tool settlement when a run ends; this PR explains why tool-only interruption instead waits for cleanup while the run continues. Local blame cannot recover older missing blobs.)
  • Pending-message presentation and reconciliation keeps the original intent (11cb698: Keep pending sends reconciled through their original identities and avoid duplicate dispatch or bubbles; the new action retains the bubble and uses the captured pending input.)

Testing

Proof path: shipped entry point.

Security

Needs attention: Current authorization guards are present, but retained cancellation authority needs revocation proof before merge.

Evidence

Security concerns:

  • [medium] Qualify revocation at the cancellation effect — src/gateway/server-methods/chat-steer-now-handler.ts:47
    The new RPC can cancel work through a captured pending input. Source checks current caller and source authority synchronously, but supplied proof does not show a revoked writer or revoked queued source being rejected before cancellation of an interruptible process; no concrete authorization bypass was established.
    Confidence: 0.95

What I checked:

PR surface

Source +651, Tests +891, Docs +50, Other +360. Total +1952 across 75 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 52 7136 6485 +651
Tests 17 902 11 +891
Docs 4 52 2 +50
Config 0 0 0 0
Generated 0 0 0 0
Other 2 489 129 +360
Total 75 8579 6627 +1952

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: This is a useful, bounded interaction improvement with actionable implementation and validation defects.
  • add merge-risk: 🚨 compatibility: The patch adds an optional interruption contract to the publicly re-exported AgentTool API.
  • add merge-risk: 🚨 security-boundary: The new session-authorized action reaches process cancellation through retained queued-input authority whose revocation behavior lacks final-effect proof.
  • add merge-risk: 🚨 automation: The changed E2E registration disagrees with the independent inventory and breaks automated inventory and skip-routing checks.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: This is a useful, bounded interaction improvement with actionable implementation and validation defects.
  • merge-risk: 🚨 compatibility: The patch adds an optional interruption contract to the publicly re-exported AgentTool API.
  • merge-risk: 🚨 security-boundary: The new session-authorized action reaches process cancellation through retained queued-input authority whose revocation behavior lacks final-effect proof.
  • merge-risk: 🚨 automation: The changed E2E registration disagrees with the independent inventory and breaks automated inventory and skip-routing checks.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • 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 5, 2026, 2:05 PM ET / 19:05 UTC.

Load pending-input RPC work on demand while retaining synchronous request
admission and optimistic dismissal. Remove redundant collection copies and
skip per-message steer lookups when no steer capability exists.

Keep writer-only interruption metadata out of the model-facing history
schema. Update shared Agent fixtures and the real-Gateway test inventory
for the new interruption contract.

Validation: exact release-mode bundle cap, 80 UI/browser tests, 61 repaired
CI cases, history contracts, prompt-prefix stability, real Gateway click
and continuation proof, and independent Codex review.
Decide tool-only interruption from the final hook-rewritten execution
arguments. Preparation stays blocked, and the same per-call signal and
cleanup owner continue into execution. The actual exec hook regression
covers remote rerouting and a concurrent safe sibling.

Skip decorative avatar mutations when classifying menu row spacing. This
repairs the large-directory owner-picker regression from #183800 without
changing its clicks, timeouts, or structural update behavior.

Validation: red/green owner regressions; 128 affected tool tests; 36 UI
contracts and desktop/compact owner-picker E2E; unchanged UI bundle gate;
Codex review clean through P2. The inherited release-attribution guard
from #193427 remains recorded separately in the PR evidence.
Use the existing Responses tool-call fixture and Node's request-body
consumer instead of duplicating their implementation. Preserve every
Send now assertion and reduce the test-line allocation to the actual
931-line delta, without relying on spare main-branch capacity.

The consolidated real Gateway scenario, focused types/lint and Codex
review pass. The exact CI merge now passes its unchanged ratchet with
15 test lines spare. Production and measured runtime sources are unchanged.
@steipete
steipete merged commit a956ef1 into main Nov 5, 2026
183 of 186 checks passed
@steipete
steipete deleted the steipete/perf-micro-steer-send-now-link-20260919 branch November 5, 2026 22:34
@steipete

steipete commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…w#193665)

* feat(chat): send pending steers now without stopping the run

Keep pending steers in normal user bubbles with a quiet Send now link. Interrupt supported tool calls through call-scoped abort signals, preserve cleanup and recorded user-interruption results, and let the existing steering owner continue the run. Bind the action to the captured input and current session writer authority.\n\nInclude core, RPC, exec/process and Control UI boundary proof, steering docs, and synthetic owner measurements. Unsupported tool-only interruption is explained in place.

* fix(chat): keep pending steer actions within the UI boot budget

Load pending-input RPC work on demand while retaining synchronous request
admission and optimistic dismissal. Remove redundant collection copies and
skip per-message steer lookups when no steer capability exists.

Keep writer-only interruption metadata out of the model-facing history
schema. Update shared Agent fixtures and the real-Gateway test inventory
for the new interruption contract.

Validation: exact release-mode bundle cap, 80 UI/browser tests, 61 repaired
CI cases, history contracts, prompt-prefix stability, real Gateway click
and continuation proof, and independent Codex review.

* fix(chat): finalize tool safety and skip decorative menu scans

Decide tool-only interruption from the final hook-rewritten execution
arguments. Preparation stays blocked, and the same per-call signal and
cleanup owner continue into execution. The actual exec hook regression
covers remote rerouting and a concurrent safe sibling.

Skip decorative avatar mutations when classifying menu row spacing. This
repairs the large-directory owner-picker regression from openclaw#183800 without
changing its clicks, timeouts, or structural update behavior.

Validation: red/green owner regressions; 128 affected tool tests; 36 UI
contracts and desktop/compact owner-picker E2E; unchanged UI bundle gate;
Codex review clean through P2. The inherited release-attribution guard
from openclaw#193427 remains recorded separately in the PR evidence.

* test(chat): reuse the real Gateway response fixture

Use the existing Responses tool-call fixture and Node's request-body
consumer instead of duplicating their implementation. Preserve every
Send now assertion and reduce the test-line allocation to the actual
931-line delta, without relying on spare main-branch capacity.

The consolidated real Gateway scenario, focused types/lint and Codex
review pass. The exact CI merge now passes its unchanged ratchet with
15 test lines spare. Production and measured runtime sources are unchanged.

* test(sessions): expect controller-owned steering identity
wangmiao0668000666 pushed a commit to wangmiao0668000666/openclaw that referenced this pull request Nov 6, 2026
…w#193665)

* feat(chat): send pending steers now without stopping the run

Keep pending steers in normal user bubbles with a quiet Send now link. Interrupt supported tool calls through call-scoped abort signals, preserve cleanup and recorded user-interruption results, and let the existing steering owner continue the run. Bind the action to the captured input and current session writer authority.\n\nInclude core, RPC, exec/process and Control UI boundary proof, steering docs, and synthetic owner measurements. Unsupported tool-only interruption is explained in place.

* fix(chat): keep pending steer actions within the UI boot budget

Load pending-input RPC work on demand while retaining synchronous request
admission and optimistic dismissal. Remove redundant collection copies and
skip per-message steer lookups when no steer capability exists.

Keep writer-only interruption metadata out of the model-facing history
schema. Update shared Agent fixtures and the real-Gateway test inventory
for the new interruption contract.

Validation: exact release-mode bundle cap, 80 UI/browser tests, 61 repaired
CI cases, history contracts, prompt-prefix stability, real Gateway click
and continuation proof, and independent Codex review.

* fix(chat): finalize tool safety and skip decorative menu scans

Decide tool-only interruption from the final hook-rewritten execution
arguments. Preparation stays blocked, and the same per-call signal and
cleanup owner continue into execution. The actual exec hook regression
covers remote rerouting and a concurrent safe sibling.

Skip decorative avatar mutations when classifying menu row spacing. This
repairs the large-directory owner-picker regression from openclaw#183800 without
changing its clicks, timeouts, or structural update behavior.

Validation: red/green owner regressions; 128 affected tool tests; 36 UI
contracts and desktop/compact owner-picker E2E; unchanged UI bundle gate;
Codex review clean through P2. The inherited release-attribution guard
from openclaw#193427 remains recorded separately in the PR evidence.

* test(chat): reuse the real Gateway response fixture

Use the existing Responses tool-call fixture and Node's request-body
consumer instead of duplicating their implementation. Preserve every
Send now assertion and reduce the test-line allocation to the actual
931-line delta, without relying on spare main-branch capacity.

The consolidated real Gateway scenario, focused types/lint and Codex
review pass. The exact CI merge now passes its unchanged ratchet with
15 test lines spare. Production and measured runtime sources are unchanged.

* test(sessions): expect controller-owned steering identity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 security-sensitive-changed 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.

1 participant