Skip to content

ref(runtime): Continue paused work in the same worker - #1023

Merged
dcramer merged 1 commit into
mainfrom
codex/conversation-worker-active-resume
Jul 24, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/conversation-worker-active-resume

Conversation

@dcramer

@dcramer dcramer commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

When Junior receives another Slack message for paused work, it now saves the
message and continues the work in the same worker.

Previously, Junior saved the message, asked the queue to wake the conversation
again, and ended the current worker. That created an extra serverless request
before the work could continue.

This removes that extra hop without changing how Slack messages are saved or
how replies are delivered. Code outside the conversation worker keeps the old
queue fallback.

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 24, 2026 6:25pm

Request Review

@dcramer dcramer changed the title ref(runtime): Resume parked turns in conversation worker ref(runtime): Continue paused work in the same worker Jul 23, 2026
@dcramer
dcramer force-pushed the codex/conversation-worker-active-resume branch from cd2bbdb to ff7f7d0 Compare July 23, 2026 22:28
@dcramer
dcramer marked this pull request as ready for review July 23, 2026 22:38
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Jul 23, 2026
@dcramer
dcramer force-pushed the codex/conversation-worker-active-resume branch from ff7f7d0 to 39df72c Compare July 23, 2026 22:48
@dcramer

dcramer commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

Not sure this isn’t like a normal while (hasWork()) loop. Need to review.

@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 2 potential issues.

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 6420836. Configure here.

Reload durable state in a simple work loop so interrupts, parked continuations, and deferred messages run serially until the conversation is quiet or the worker must yield.

Refs #876
@dcramer
dcramer force-pushed the codex/conversation-worker-active-resume branch from 6420836 to bbf2c27 Compare July 24, 2026 18:24
@dcramer
dcramer merged commit 9f9bf2b into main Jul 24, 2026
37 of 40 checks passed
@dcramer
dcramer deleted the codex/conversation-worker-active-resume branch July 24, 2026 19:29

This branch was successfully deployed

1 active deployment
Preview – junior-docs — bbf2c275 Deployed Jul 24, 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