Repository navigation
feat: steer an active conversation without starting another run - #201152
vincentkoc wants to merge 3 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: blocked before merge. What this changesAdds sessions.steerActive to send literal human text to one active run without starting or queuing another turn. Example: An authenticated person sends “Use the staging database” to session research-42, targeting run native-run-7.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this maintainer-authored PR adds a useful exact-run operation, but unsafe retry guidance and a diff-caused conformance failure need correction. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Gateway authenticates the person, applies session write policy, and passes the request through existing chat admission, native injection, and pending-input owners to return a retained delivery outcome. flowchart TD
A[Authenticated person] --> B[Gateway session write policy]
B --> C[Active steering RPC]
C --> D[Chat admission]
D --> E[Captured active backend]
D --> F[Pending input storage]
E --> G[Delivery outcome]
F --> G
Technical reviewBest possible solution: Keep the new operation on the existing admission, injection, and storage owners while correcting retry instructions and reconciling the source-read conformance contract. Do we have a high-confidence way to reproduce the issue? Source and the committed redaction scenario establish the unsafe retry-message path; exact-head CI independently establishes the source-read conformance failure, and no target code was executed during this review. Is this the best way to solve the issue? Reusing existing chat admission, opaque backend targeting, and retained-input custody is appropriate; a separate dispatcher or storage owner is unnecessary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e25ad96fb3d6. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +482, Tests +734, Docs +36. Total +1252 across 37 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 6:29 AM ET / 11:29 UTC. |
|
Closing as superseded by #202397. #202397 carries this change rebased onto current |
Related: #201073, #201074, #201075, #201076 (merged prerequisites).
What Problem This Solves
An authorized person needs to correct a running conversation without accidentally starting another turn or sending the correction to a replacement run. This adds a host-only operation that targets the exact active run and reports whether delivery was accepted, rejected, or uncertain.
User Impact
User impact: host integrations can submit literal human text to an existing run using current session write access. Idle, replaced, unsupported, or unauthorized targets do not start a run, queue a follow-up, or interrupt another run. A leading slash remains text, not a command.
This is host-only: it does not add a UI, remote-writer authentication, or write access for Session Share readers. No configuration change or migration is required. Live native/model delivery and remote-writer E2E have not been exercised; the evidence below is deterministic host-boundary and persistence proof, not live-provider proof.
Why This Change Was Made
sessions.steerActivereuses the existing chat admission, injection, and retained-input owners. It binds the authenticated person, physical session, target run, and request before delivery. A retry reconciles the original input and never injects a retained active-only input again, including after restart or uncertain acceptance.Message-hook redaction is preserved: original-text comparison uses the existing keyed fingerprint, not a retained raw-text copy or unkeyed digest. Without a fingerprint, reconciliation requires proof that retained text was unchanged and an exact match; otherwise it fails closed. Current authorization is checked again during reconciliation.
The payload is limited to this operation and its lifecycle, schema, documentation, and regression coverage. Reconciliation preserves upstream requester-device attribution and queue cancellation causes. Production code grows by 477 additions / 24 deletions; tests by 735 / 1. Generated validators account for most of the remaining diff and were regenerated from the combined schemas.
Evidence
On the exact submitted tree:
pnpm buildpassed. Build stamps identify the submitted head with clean inputs.Seven UI bundle-size warnings remain from the full build; they were not attributed to this change. A known nonblocking wording issue remains: generic retry errors can suggest a new message ID, but callers of this operation must reconcile the original key rather than resend uncertain delivery under a new one.
Exact source and validation boundaries
7212c852a580d89a38384c8587e7141ab345d1f54a04f24c7f46f74df16e66ccc7560a4822d40757e783f4de7f399133faf439bf358adb331eab8371