Skip to content

ref(queue): Use conversation IDs in callbacks - #1019

Merged
dcramer merged 1 commit into
mainfrom
codex/conversation-queue-v2-reader
Jul 23, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/conversation-queue-v2-reader

Conversation

@dcramer

@dcramer dcramer commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Conversation queue messages previously repeated the conversation destination.
That destination is already stored with the conversation, so this PR changes
queue producers, signatures, callbacks, and workers to pass only
conversationId.

The queue message is now only a wake-up hint:

{ conversationId }

After signature verification, the worker loads destination and routing from
persisted conversation work. Queue callbacks can no longer provide or override
that routing data.

The writer and reader switch together in this PR. Vercel push queues are
partitioned by deployment and deliver messages to the same deployment that
published them, so the new payload does not need a cross-deployment
compatibility reader. Old deployments continue processing their own queued
messages with their existing code.

This PR does not change turn execution, Slack behavior, or subagent behavior.
Review should start with task-execution/queue.ts and
task-execution/queue-signing.ts, followed by the producer change in
task-execution/store.ts and the worker routing change. Tests cover signature
tampering, the real callback path, persisted routing, steering, and heartbeat
recovery.

Refs #876

@vercel

vercel Bot commented Jul 23, 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 23, 2026 7:11pm

Request Review

@dcramer dcramer changed the title ref(queue): Accept conversation-only work wakes ref(queue): Prepare callbacks to use conversation IDs Jul 23, 2026
@dcramer
dcramer force-pushed the codex/conversation-queue-v2-reader branch from 9809294 to 4ce45d7 Compare July 23, 2026 18:19

@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.

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 4ce45d7. Configure here.

@dcramer dcramer changed the title ref(queue): Prepare callbacks to use conversation IDs ref(queue): Use conversation IDs in callbacks Jul 23, 2026
@dcramer
dcramer marked this pull request as ready for review July 23, 2026 18:23
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 23, 2026
@dcramer
dcramer force-pushed the codex/conversation-queue-v2-reader branch from 4ce45d7 to 0e617c2 Compare July 23, 2026 18:33
Remove destination from conversation queue messages and load routing from persisted conversation work. Vercel Queue isolates messages by deployment, so readers and writers can move to the ID-only contract together.

Refs #876
@dcramer
dcramer force-pushed the codex/conversation-queue-v2-reader branch from 0e617c2 to 175cebc Compare July 23, 2026 19:10
@dcramer
dcramer merged commit b94cfb4 into main Jul 23, 2026
36 of 40 checks passed
@dcramer
dcramer deleted the codex/conversation-queue-v2-reader branch July 23, 2026 19:38

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 175cebca Deployed Jul 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant