Skip to content

ref(dispatch): route dispatches through conversation work#1059

Merged
dcramer merged 8 commits into
mainfrom
codex/dispatch-conversation-work
Jul 27, 2026
Merged

ref(dispatch): route dispatches through conversation work#1059
dcramer merged 8 commits into
mainfrom
codex/dispatch-conversation-work

Conversation

@dcramer

@dcramer dcramer commented Jul 26, 2026

Copy link
Copy Markdown
Member

Scheduled and plugin dispatches now enter the same per-conversation mailbox and lease flow as interactive turns. The dispatch-specific execution loop is removed; start and resume both use the shared turn runtime while dispatch identity, execution authority, destination, source, and delivery state remain durable across serverless invocations.

The rollout keeps signed legacy callbacks enqueue-only and repairs pre-cutover records through bounded heartbeat recovery. Terminal session state now commits the semantic dispatch outcome and accepted provider message ID together, preventing retries from rerunning or misprojecting delivered work. Regression coverage exercises production routing, yield and resume, local-origin sources, delivery fencing, and legacy callback validation and recovery.

Refs #883.

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Jul 27, 2026 1:02am

Request Review

Comment thread packages/junior/src/chat/agent-dispatch/work.ts
Comment thread packages/junior/src/chat/agent-dispatch/work.ts
Comment thread packages/junior/src/chat/runtime/agent-continue-runner.ts Outdated
Comment thread packages/junior/src/chat/agent-dispatch/work.ts Outdated
Comment thread packages/junior/src/chat/runtime/reply-executor.ts
Comment thread packages/junior/src/chat/agent-dispatch/store.ts
Comment thread packages/junior/src/chat/runtime/agent-continue-runner.ts
Comment thread packages/junior/src/handlers/agent-dispatch.ts Outdated
Comment thread packages/junior/src/chat/runtime/reply-executor.ts
Comment thread packages/junior/src/chat/agent-dispatch/work.ts
Comment thread packages/junior/src/chat/runtime/reply-executor.ts
Comment thread packages/junior/src/chat/runtime/agent-continue-runner.ts
Comment thread packages/junior/src/chat/agent-dispatch/work.ts
Comment thread packages/junior/src/chat/agent-dispatch/work.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit c1b747f. Configure here.

Comment thread packages/junior/src/chat/runtime/reply-executor.ts
@dcramer
dcramer marked this pull request as ready for review July 27, 2026 01:08
@github-actions github-actions Bot added the risk: high PR risk score: high label Jul 27, 2026
@dcramer
dcramer merged commit 42bacee into main Jul 27, 2026
33 checks passed
@dcramer
dcramer deleted the codex/dispatch-conversation-work branch July 27, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant