Repository navigation
Closed
Labels
Description
The known Solenta failure
thread_send into a thread that is mid-run does not steer it — the message either bounces or is silently ignored, so the only reliable place to put guardrails is the original fork prompt. That is a real limitation of the orchestration story: a supervising thread can spawn workers but cannot correct one that is already wrong.
What Anthropic shipped as the answer
Claude Code Desktop's work across sessions is a full delivery contract, not just an API:
- Hold-until-idle: "If the receiving session is mid-task, Claude Code holds the message and Claude reads it once the current work finishes." No dropped message, no mid-turn injection.
- Attributed card: the message renders in the receiving thread "as a card labeled with the sending session's title and a link back, so you can always tell where a message came from." The receiver's agent sees it quoted and attributed, not as a bare user turn.
- Per-thread inbound policy: a
crossSessionInbound: refusesetting on the receiving side drops messages. Consent is the receiver's, not the sender's. - No unattended senders: a thread nobody is watching (a scheduled run) can neither send nor receive through this surface.
- Undeliverable is reported: archived target ⇒ the sender is told the message did not go through, rather than a silent success.
- Destructive asks survive bypass: archiving another session prompts the human "in every permission mode, including Auto and Bypass permissions."
- Bounded visibility: 20 most-recently-active sessions, archived excluded, never the asking session itself.
Scope suggestion for Solenta
- Queue an inbound message on a running thread; deliver it at the next idle boundary (the same seam the queued-follow-up path already uses — see Combine queued follow-ups into one turn #468, Queued follow-up messages live only in renderer memory; lost on reload, invisible from other threads #137).
- Render it as a distinct from thread → link back card in the transcript, and pass it to the provider quoted and attributed rather than as a plain user message.
- Per-thread inbound setting:
accept(default) /queue-only/refuse, honored bythread_sendand reported back to the caller. thread_sendreturns a real outcome:delivered,queued,refused,undeliverable— today a caller cannot tell these apart.- Cross-thread archive/stop stays human-gated regardless of trust dial (Non-bypassable destructive-action gate outside the trust dials #322).
Related
#261 (thread graph / @-mentions — this is the delivery half), #137 + #468 (queued follow-ups: same queue), #156 (steering a live turn: the harder in-turn version), #491 (attention when another thread needs you), #322 (non-bypassable gates).
Activity
currentbits commentedon Aug 21, 2026
Implemented on
coder/fork-cross-thread-message-delivery-contr-3c1a4e.thread_sendnow returns{ outcome, threadId, reason? }withdelivered|queued|refused|undeliverable:queue-onlyalso holds when the receiver is idle.fromThreadId; the receiver sees a from-thread card with a link back, and the provider prompt is quoted as[from thread id ("title")].accept(default) /queue-only/refusein the thread overflow menu. Consent is the receiver's.orchWorkerre-dispatch still unarchives.approved:truein every permission mode (fromThreadId!== target).Out of scope here: bounded 20-session visibility,
notify_when_idle, and in-turn injection (#156).currentbits commentedon Aug 22, 2026
Landed on
mainin the 2026-08-22 backlog merge (2d33d30..bf7c4dc, released as nightlynightly-202608220926-bf7c4dc).Evidence on main: electron/orchServer.js + crossThreadInbound on the thread record
The branch had been finished for a while but was never merged; verification after landing: typecheck clean,
vite buildok, core 38/38, renderer 1468/1468, memory 204/204, electron 1848/1848.