Skip to content

fix(scheduler): Isolate scheduled dispatch context#454

Merged
dcramer merged 1 commit into
mainfrom
fix/scheduled-dispatch-context
May 31, 2026
Merged

fix(scheduler): Isolate scheduled dispatch context#454
dcramer merged 1 commit into
mainfrom
fix/scheduled-dispatch-context

Conversation

@dcramer
Copy link
Copy Markdown
Member

@dcramer dcramer commented May 31, 2026

Scheduled dispatches now keep their persisted conversation, Pi transcript, artifact, and sandbox state keyed by the dispatch record instead of the Slack destination. This prevents scheduled runs that post new Slack messages from inheriting prior channel-level context while preserving destination-level delivery locking.

Dispatch Isolation

The runner now separates the Slack destination lock from dispatch-scoped conversation state, so retries and timeout resumes still reuse the same dispatch context without bleeding in channel history.

Regression Coverage

The integration test seeds destination conversation memory and verifies a scheduled dispatch starts without inherited context and writes only to its dispatch-scoped state.

Fixes #451

Scope dispatched agent conversation state to the dispatch record instead of the Slack destination. This lets scheduled runs that post new Slack messages start with fresh context while preserving destination-level delivery locking.

Fixes GH-451

Co-Authored-By: GPT-5 Codex <noreply@openai.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment May 31, 2026 3:13pm

Request Review

@dcramer dcramer marked this pull request as ready for review May 31, 2026 15:19
@dcramer dcramer merged commit 29c47fd into main May 31, 2026
16 checks passed
@dcramer dcramer deleted the fix/scheduled-dispatch-context branch May 31, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scheduled tasks incorrectly inherit channel message history

1 participant