Repository navigation
fix: steering reaches active runs across agent harnesses - #119594
fuller-stack-dev merged 18 commits into
Conversation
|
Codex review: found issues before merge. Reviewed August 5, 2026, 11:16 AM ET / 15:16 UTC. ClawSweeper reviewWhat this changesThe PR changes Gateway admission, shared active-run delivery, Copilot steering receipt handling, and Control UI queue wording so active runs receive steering instructions. Merge readiness⛔ Blocked by patch quality or review findings - 8 items remain Keep open: the exact head still admits a stale steering turn when the active owner disappears between Gateway admission and harness injection, so the prior P1 remains unresolved. Priority: P1 Review scores
Verification
How this fits togetherA steering message travels from the chat composer through Gateway admission to the active agent harness, then becomes durable in the canonical transcript. The queue UI must remain pending until that durable receipt, while branch-leaf fencing prevents a stale composer from creating a new turn on a newer branch. flowchart LR
User[User steering] --> Gateway[Gateway admission]
Gateway --> Owner[Active run owner]
Owner --> Harness[Agent harness]
Harness --> Transcript[Canonical transcript]
Transcript --> Queue[Chat queue status]
Decision needed
Why: The protected maintainer PR has a concrete session-safety defect, but the canonical ownership mechanism—receipt versus pre-fallback revalidation—needs an owner-level choice. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +147, Tests +353. Total +500 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Carry an owner-bound receipt or the expected-leaf precondition through the owner handoff, and revalidate the leaf before admitting any no-owner fallback turn. Do we have a high-confidence way to reproduce the issue? Yes, by a focused owner-clear interleaving: admit a stale steer while the owner streams, advance the leaf, clear the owner before injection, and observe fallback dispatch on the newer branch; this read-only review did not execute it. Is this the best way to solve the issue? No: the shared owner boundary is the right repair layer, but the proposed instantaneous streaming check is not sufficient because it loses the stale-leaf precondition before fallback dispatch. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ce06e7924e88. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review The previous exact-head review run for |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Pre-merge accounting for the latest durable ClawSweeper rank-up moves on the corrected exact head
The fresh ClawSweeper exact-head run failed before review generation ( |
|
Merged via squash.
|
…cope * origin/main: perf(agents): isolate concurrency benchmark workers (openclaw#119749) fix(diagnostics): preserve OTEL startup failure (openclaw#119747) fix(agents): seed fresh session identity before transcript append (openclaw#119473) fix: steering reaches active runs across agent harnesses (openclaw#119594) fix(cli): report accurate filtered node totals (openclaw#119744) fix(skills): keep installed verdicts scoped to publisher (openclaw#119672) fix(diagnostics): honor signal-specific OTLP protocols (openclaw#119708)
…9594) * fix steering delivery across harnesses * fix steering across moving transcript leaves * test: align steering queue expectations * fix: harden active steering ownership * fix: retain steering fallback admission * fix: reject late copilot steering * fix: prevent replay of accepted steering * fix: bind acquired chat work admission * fix: bind steering to active transcript branch
What Problem This Solves
Fixes an issue where users steering an active agent run could have the message rejected as a stale branch before it reached the harness, or lose the message when the active runtime could not accept it immediately. GitHub Copilot runs also exposed steering in the shared UI without injecting the message into the active SDK session.
Why This Change Was Made
Explicit steering is admitted as run-owned input at the shared Gateway boundary. The shared reply operation carries the originating transcript leaf through owner handoff, and moving-leaf admission is allowed only when the exact active owner descends from that leaf. Rejected active-run turns remain queued through the shared auto-reply path.
The Copilot harness injects steering through its SDK session and acknowledges it only after the exact user message is committed to the canonical transcript. Built-in OpenClaw, Codex, and Copilot all consume the same shared admission/lifecycle invariant rather than receiving harness-specific Gateway exceptions.
User Impact
Users can steer active OpenClaw, Codex, and GitHub Copilot runs without a moving transcript leaf dropping the instruction or routing a stale steer into an unrelated run. The composer reports a truthful pending
Steeringstate until receipt.Evidence
active-leaf-changedbefore the fix.8218dd4ce9dc: 748 focused tests passed on Blacksmith Testboxtbx_01kz9xpj9xjypq3ksjtczsvhqmacross Gateway admission, exact-owner leaf binding, shared registry/admission, built-in agent runs, shared runner E2E, Control UI, Codex, and Copilot.pnpm build,pnpm check,git diff --check, changed-surface checks, and two fresh autoreviews passed with no actionable findings.origin/main7b8bba26c95on Testbox: all passed exceptextensions/file-transfer/src/node-host/file-write.test.ts, which failed identically on main and is outside this PR.turn/steerto active-turn pending input incodex-rs/app-server/src/request_processors/turn_processor.rs,codex-rs/core/src/session/mod.rs, andcodex-rs/core/src/tasks/mod.rs; the installed Copilot SDK returns the injected user-message identifier fromsession.send().STEER_ACCEPTED_GREEN, and continued rejecting an ordinary stale send withactive-leaf-changed. The exact landed squash SHA will be deployed and re-proven after merge.This change was implemented with AI assistance.