Skip to content

control: deliver own, so a message is always a prompt of its own - #383

Open
micmmakarov wants to merge 1 commit into
mainfrom
talk-act
Open

micmmakarov wants to merge 1 commit into
mainfrom
talk-act

Conversation

@micmmakarov

Copy link
Copy Markdown
Collaborator

Why

A Talk message sent from spacesheep to a Claude Code session that was mid-turn arrived as the Stop hook's block. The session read "merge the mergeable" there and declined: Claude Code tells its model that hook output, a background command's output and an inbox request do not carry the person's approval. Rewording the frame cannot change that, and should not.

What

A machine-level setting, made at the machine's own terminal like its mode:

sessionpipe control deliver own   # every message is a prompt of its own
sessionpipe control deliver any   # the default: the ladder as before

Set to own, a message for a Claude Code session that can be copied never takes turn, inbox, or a waiter that is not a channel. The ladder goes on to resume or fork, where the message is the prompt of a turn the daemon runs, in the machine's mode. sdk and a channel's waiter are unchanged. Where that would leave no delivery at all (the copy is itself held), the ladder applies as it stands.

No signed field, no hello field, nothing a receiver has to know: the command format and its vectors are untouched.

Cost, said to the person when they set it

A session open in a window answers in a copy, and its window is not told. Later messages go to that copy, as today.

Tests

  • ownTurnView in the routing tests (mid-turn, plain waiter, inbox, channel, sdk, no fork, Codex).
  • Daemon: a mid-turn session with deliver: own acks mode: fork, and its Stop is handed nothing.
  • control-daemon, control-cli and the usage tests pass; typecheck clean.

Not done: tried against a real open Claude Code window with the built daemon. Spec: spec/CONTROL.md §6.

🤖 Generated with Claude Code

…its own

A message handed to a live Claude Code session by its Stop hook, a plain
waiter or its inbox is not read as the person's prompt, and Claude Code
tells the model not to take it as their approval: a session asked that way
to merge pull requests declined. A machine set to `deliver own` passes
those rungs over for a Claude Code session it can copy, so the message is
the prompt of a turn the daemon runs (resume, or a copy of a held session).
The default, `any`, is the ladder as it was.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Miša Mаkaröv <info1117@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant