You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(harness): soft interrupt — inject owner message into a running session without cancelling it #377
Allow the owner to steer a running session mid-turn WITHOUT cancelling it — no partial work lost. This complements the existing 3-face cancel (#184/#185). Adopted from jcode's soft-interrupt design (tier A).
Acceptance criteria
New injection channel: an injected message lands in a queue; the harness drains it at the safe point — after all tools of the current turn finish, before the next provider call.
urgent mode may skip the remaining tools, but MUST write stub tool_result entries first (API constraint: every tool_use must be immediately followed by a tool_result).
No tool call is dropped silently: every interrupted tool either completes or leaves a valid tool_result stub.
The injected message is visible in the resumed transcript, clearly attributed as an interrupt injection (not as a provider turn).
Works for both interactive sessions and serve/MCP-driven sessions.
Docs (harness docs) + CHANGELOG entry.
Testing
Unit tests: queue drain at safe point; urgent-mode stub insertion; attribution in persisted history.
Integration test: start a long multi-tool turn, inject normal + urgent, assert no orphan tool_use without tool_result on the wire and the transcript shows the injection.
Live E2E (fleet standard): run a real session, inject from a second client, verify steering takes effect at the safe point.
Verified SHIPPED against develop @ 3ec70f4: the feature exists in code (CHANGELOG entries + module/endpoint present — soft-interrupt queue in cancel.rs + POST /sessions/{id}/interrupt + MCP tool for #377, doctor-ledger.json for #378, per-turn usage_report for #379, sibling_watch for #380, tole_core::handoff + verify gate for #383). The acceptance checkboxes were never ticked even though the work shipped (known board-sync defect class). Closing with this evidence comment. Remaining gaps, if any, are tracked by follow-up issues instead.
Activity
feat(core): soft interrupts — steer a running turn without cancelling…
feat(cli): soft interrupt entry points — serve and MCP (#377, 2/2) (#393
ajianaz commentedon Nov 3, 2026
Verified SHIPPED against develop @ 3ec70f4: the feature exists in code (CHANGELOG entries + module/endpoint present — soft-interrupt queue in
cancel.rs+POST /sessions/{id}/interrupt+ MCP tool for #377,doctor-ledger.jsonfor #378, per-turnusage_reportfor #379,sibling_watchfor #380,tole_core::handoff+ verify gate for #383). The acceptance checkboxes were never ticked even though the work shipped (known board-sync defect class). Closing with this evidence comment. Remaining gaps, if any, are tracked by follow-up issues instead.