Skip to content

ref(chat): use one Conversation Turn worker - #1727

Merged
dcramer merged 1 commit into
mainfrom
codex/1563-conversation-turn-runtime
Aug 28, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/1563-conversation-turn-runtime

Conversation

@dcramer

@dcramer dcramer commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Web input and resource events now start baseline Conversation Turns through one mailbox worker under chat/task-execution. Conversation storage, web input, web authorization, and stop behavior live under chat/conversations. Slack remains a provider layer that adds Slack input and Delivery. HTTP Conversation routes only check access and shape requests and responses.

The app selects mailbox Turns, Agent invocations, dispatches, or provider work in one direct flow. The unused app-scoped cancellation service and nested worker wrappers are gone. Existing Redis markers and field names remain only where deployment compatibility requires them, with removal TODOs beside each use. Review chat/app/conversation-work.ts first, then chat/task-execution/conversation-turn.ts and chat/conversations/web-input.ts.

Refs #1563

@vercel

vercel Bot commented Aug 28, 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 Aug 28, 2026 9:40pm

Request Review

@dcramer
dcramer force-pushed the codex/1563-conversation-turn-runtime branch from 57bd760 to 274d13c Compare August 28, 2026 21:39
@dcramer dcramer changed the title ref(chat): remove the separate API Turn worker ref(chat): use one Conversation Turn worker Aug 28, 2026
@dcramer
dcramer marked this pull request as ready for review August 28, 2026 21:55
@dcramer
dcramer merged commit 8e51eb7 into main Aug 28, 2026
37 of 39 checks passed
@dcramer
dcramer deleted the codex/1563-conversation-turn-runtime branch August 28, 2026 21:55
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 28, 2026
sentry-junior Bot added a commit that referenced this pull request Aug 29, 2026
#1727 made createConversationWork the single Conversation work path.
Stop reimplementing mailbox/invocation/dispatch routing in the eval
harness. Extend createConversationWork with sendPluginTask and
wrapRuntime so evals can keep TestThread Delivery and in-process plugin
tasks while using the production run selector.

Co-Authored-By: David Cramer <[email protected]>
dcramer added a commit that referenced this pull request Aug 29, 2026
…rk (#1731)

#1727 removed `createAgentDispatchWorkRouter` and moved
mailbox/invocation/dispatch/destination selection into
`createConversationWork`. The behavior harness still imported the old
router, so `packages/junior-evals` typecheck failed on main.

Point the eval drain path at the same selection order, keep the eval
Slack runtime wrapper for TestThread delivery, and use
`getDispatchConversationId` for dispatch resume.

<!-- junior-request-attribution:start -->
Requested by **David Cramer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1787959889.120419 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1787959889.120419)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1787959889.120419/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 274d13cd Deployed Aug 28, 2026 by vercel[bot]
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