Skip to content

Cross-thread message delivery contract: hold until idle, attributed card, per-thread inbound policy #551

Closed

Description

@currentbits

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: refuse setting 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

  1. 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).
  2. 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.
  3. Per-thread inbound setting: accept (default) / queue-only / refuse, honored by thread_send and reported back to the caller.
  4. thread_send returns a real outcome: delivered, queued, refused, undeliverable — today a caller cannot tell these apart.
  5. 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).

Source: Claude Code desktop docs, cross-session messaging

Activity

  1. added
    enhancement
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 19, 2026
  2. currentbits commented on Aug 21, 2026

    @currentbits
    OwnerAuthor

    Implemented on coder/fork-cross-thread-message-delivery-contr-3c1a4e.

    thread_send now returns { outcome, threadId, reason? } with delivered | queued | refused | undeliverable:

    • Hold-until-idle — a send into a running thread is queued on the existing follow-up seam and delivered at the next idle boundary. queue-only also holds when the receiver is idle.
    • Attributed card — pass fromThreadId; the receiver sees a from-thread card with a link back, and the provider prompt is quoted as [from thread id ("title")].
    • Inbound policy — per-thread accept (default) / queue-only / refuse in the thread overflow menu. Consent is the receiver's.
    • Undeliverable — archived non-workers, and automation (unattended) senders or receivers. Archived orchWorker re-dispatch still unarchives.
    • Archive/stop of another thread — requires approved:true in every permission mode (fromThreadId !== target).

    Out of scope here: bounded 20-session visibility, notify_when_idle, and in-turn injection (#156).

  3. currentbits commented on Aug 22, 2026

    @currentbits
    OwnerAuthor

    Landed on main in the 2026-08-22 backlog merge (2d33d30..bf7c4dc, released as nightly nightly-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 build ok, core 38/38, renderer 1468/1468, memory 204/204, electron 1848/1848.

  4. added
    plan:done
    and removed
    plan:doing
    on Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions