Skip to content

automations: dispatch scheduled heartbeats - #28618

Closed
eternal-openai wants to merge 1 commit into
codex/automations-09-worker-loopfrom
codex/automations-10-heartbeat-dispatch
Closed

eternal-openai wants to merge 1 commit into
codex/automations-09-worker-loopfrom
codex/automations-10-heartbeat-dispatch

Conversation

@eternal-openai

@eternal-openai eternal-openai commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Stack

  1. #28609 automations: add service groundwork and overview
  2. #28610 automations: add durable state store
  3. #28611 automations: add state CRUD and scheduling
  4. #28612 automations: add dispatch claims and leases
  5. #28613 automations: add app-server protocol
  6. #28614 automations: add app-server CRUD handlers
  7. #28615 automations: add agent automation_update tool
  8. #28616 automations: dispatch runNow requests
  9. #28617 automations: add background worker loop
  10. This PR: automations: dispatch scheduled heartbeats
  11. #28619 automations: add dispatch integration coverage
  12. #28620 automations: defer heartbeats for cooldown

Why

Scheduled heartbeats differ from cron runs because they target existing threads and must avoid interrupting active user/approval flows. They also need a cold-resume path so a dormant thread can receive the heartbeat without an attached client.

What Changed

  • Adds scheduled heartbeat dispatch behavior for loaded and cold-resumed threads.
  • Starts/resumes the listener path before submitting heartbeat prompts.
  • Defers scheduled heartbeats instead of failing when the target thread is busy.
  • Adds cold-claim delay and loaded-thread preference behavior for heartbeat workers.
  • Adds state support and tests for deferred scheduled heartbeat retries.

Verification

  • codex-state deferred heartbeat tests passed in the focused non-app-server run.
  • App-server dispatch paths are covered by the automation integration tests in this stack.

@eternal-openai
eternal-openai force-pushed the codex/automations-09-worker-loop branch from f837b2f to 59e23dc Compare June 17, 2026 00:14
@eternal-openai
eternal-openai force-pushed the codex/automations-10-heartbeat-dispatch branch from b3363fb to 4cb797b Compare June 17, 2026 00:14
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

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.

1 participant