feat: add dispatch send intro#35
Merged
Merged
Conversation
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Context
Codex-to-Codex coordination through dispatch needs a small, non-spoofable-at-the-CLI reply hint. We wanted
dispatch send --introinstead of a user-supplied--from, with sender identity derived from the current Codex thread.What changed
SendInput.introand applies it acrosssend,steer,context,interject, and queued delivery.CODEX_THREAD_ID, resolving it against the managed dispatch registry before prepending the intro.caller_thread_idrequest field, because the daemon cannot read the caller process env.dispatch/dmskills to teach--intro.Validation
uv run pytest tests/core/test_handlers.py tests/surfaces/test_derive_cli.py tests/surfaces/test_derive_mcp.py tests/surfaces/test_parity.py tests/surfaces/test_mcp_routing.py tests/core/test_examples.py -q->84 passedjust check-> ruff, format, mypy, pytest196 passed / 9 deselected, build, and package content check passeduv run dispatch schema send | jq '.input.properties | has("intro"), has("caller_thread_id")'->true,falseDISPATCH_HOME:--no-sendCODEX_THREAD_ID=<sender-id> uv run dispatch send <target-ref> ... --intro --json[dispatch] From ... (<ref>). Use \dispatch send "..."` to reply.` prependedRisks
--introintentionally fails if the current Codex thread is not managed by dispatch. That is the right current behavior; unmanaged/self-registration can come later.caller_thread_idis hidden from public schemas and CLI help, but direct local control-socket callers remain trusted local peers.