Repository navigation
Conversation
Workers are no longer told to send periodic heartbeats. A heartbeat that still arrives from an older worker or peer only records last_heartbeat_at: it is stored already handled, so it never lands in a coordinator inbox and never wakes a coordinator or a check --wait. Removes the stale-heartbeat warning and the heartbeat interval plumbing that only fed the preamble.
The Worker heartbeats switch and Heartbeat interval field only changed the worker preamble text, which no longer mentions heartbeats. Saved values are dropped on load as retired settings.
One rule at the runtime notification entry replaces per-call-site read checks, so mutation replay and federated control-mail import stay silent for heartbeats too.
[Medium impact] The PR appears safe to merge; heartbeat compatibility remains intact without delivering new heartbeats as coordinator mail. SummaryStops asking orchestration workers to send heartbeats while keeping older workers compatible.
No actionable issues were found. This review checked code paths and existing tests; it did not run the app or test suite. Jinwoo-H acknowledged that previously unread heartbeats can surface after upgrade. Cleanup was deferred to avoid a schema migration conflict and downgrade risk.
|
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
d1383e72-0c58-4492-a922-38a9a6e05b93
Files ignored due to path filters: 1-
src/main/runtime/orchestration/__snapshots__/preamble.test.ts.snapis excluded by!**/*.snap
Files selected for processing: 62-
config/flaky-test-pattern-baseline.txtdocs/site/content/docs/cli/orchestration.mdxskill-guides/orchestration.mdskill-guides/orchestration/references/messaging-and-gates.mdskill-guides/orchestration/references/worker-contract.mdsrc/cli/bundled-skill-guides.tssrc/main/persistence/applying-settings/persistence-settings-ui-defaults.test.tssrc/main/persistence/applying-settings/settings-update.tssrc/main/persistence/applying-settings/terminal-settings-migrations.tssrc/main/runtime/orchestration/agent-facing-parity.test.tssrc/main/runtime/orchestration/coordinator-dispatch-unobserved-prompt.test.tssrc/main/runtime/orchestration/coordinator-runtime-contract.tssrc/main/runtime/orchestration/coordinator-task-dispatch.tssrc/main/runtime/orchestration/coordinator.test.tssrc/main/runtime/orchestration/coordinator.tssrc/main/runtime/orchestration/db.test.tssrc/main/runtime/orchestration/db/dispatch-context/dispatch-completion.tssrc/main/runtime/orchestration/db/messages/message-insert.tssrc/main/runtime/orchestration/db/remaining-dispatch-statement-compilation.test.tssrc/main/runtime/orchestration/db/runs/legacy-coordinator-mail-takeover.tssrc/main/runtime/orchestration/lifecycle-reconciliation.test.tssrc/main/runtime/orchestration/lifecycle-reconciliation.tssrc/main/runtime/orchestration/orchestration-delivery-consumption.test.tssrc/main/runtime/orchestration/preamble.test.tssrc/main/runtime/orchestration/preamble.tssrc/main/runtime/rpc/methods/orchestration-structured-worker-retry.test.tssrc/main/runtime/rpc/methods/orchestration-structured-worker-start-deadline.test.tssrc/main/runtime/rpc/methods/orchestration-structured-worker-start-failure.test.tssrc/main/runtime/rpc/methods/orchestration/cli-runtime-boundary.test.tssrc/main/runtime/rpc/methods/orchestration/federation/federation-control-mail.test.tssrc/main/runtime/rpc/methods/orchestration/federation/federation.tssrc/main/runtime/rpc/methods/orchestration/messaging/check-direct.tssrc/main/runtime/rpc/methods/orchestration/messaging/check.test.tssrc/main/runtime/rpc/methods/orchestration/messaging/send.test.tssrc/main/runtime/rpc/methods/orchestration/runs/dispatch-methods.tssrc/main/runtime/rpc/methods/orchestration/worker/deliver-worker-dispatch-preamble.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-prompt-budget.test.tssrc/main/runtime/rpc/methods/orchestration/worker/worker-start-readiness-settlement.test.tssrc/main/runtime/runtime-store-contract.tssrc/main/runtime/terminal/lifecycle/floating-session-liveness.tssrc/main/runtime/workspaces/workspace-selectors.tssrc/renderer/src/components/settings/OrchestrationHeartbeatSetting.tsxsrc/renderer/src/components/settings/OrchestrationPane.test.tsxsrc/renderer/src/components/settings/OrchestrationPane.tsxsrc/renderer/src/components/settings/orchestration-heartbeat-copy.tssrc/renderer/src/components/settings/orchestration-search.tssrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/locales/de.jsonsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/pt.jsonsrc/renderer/src/i18n/locales/ru.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh-Hant.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/shared/default-global-settings.tssrc/shared/global-settings-base.tssrc/shared/orchestration-heartbeat.test.tssrc/shared/orchestration-heartbeat.ts
Files with no reviewable changes: 41-
- src/main/runtime/orchestration/lifecycle-reconciliation.test.ts
- config/flaky-test-pattern-baseline.txt
- src/main/runtime/rpc/methods/orchestration/messaging/check.test.ts
- src/main/runtime/rpc/methods/orchestration-structured-worker-retry.test.ts
- src/shared/orchestration-heartbeat.test.ts
- src/main/runtime/rpc/methods/orchestration/worker/deliver-worker-dispatch-preamble.ts
- skill-guides/orchestration/references/worker-contract.md
- src/main/runtime/rpc/methods/orchestration-structured-worker-start-deadline.test.ts
- src/main/runtime/orchestration/coordinator-dispatch-unobserved-prompt.test.ts
- src/main/runtime/workspaces/workspace-selectors.ts
- src/main/runtime/rpc/methods/orchestration/federation/federation.ts
- src/main/runtime/rpc/methods/orchestration-structured-worker-start-failure.test.ts
- src/shared/default-global-settings.ts
- src/main/runtime/orchestration/coordinator-runtime-contract.ts
- src/main/runtime/rpc/methods/orchestration/worker/worker-start-readiness-settlement.test.ts
- src/renderer/src/components/settings/OrchestrationHeartbeatSetting.tsx
- src/renderer/src/components/settings/orchestration-search.ts
- src/shared/global-settings-base.ts
- src/renderer/src/components/settings/OrchestrationPane.tsx
- src/main/runtime/orchestration/orchestration-delivery-consumption.test.ts
- src/main/runtime/orchestration/coordinator.test.ts
- src/main/runtime/orchestration/db/dispatch-context/dispatch-completion.ts
- src/main/persistence/applying-settings/settings-update.ts
- src/main/runtime/runtime-store-contract.ts
- src/main/runtime/orchestration/db.test.ts
- src/main/runtime/orchestration/coordinator-task-dispatch.ts
- src/main/runtime/orchestration/lifecycle-reconciliation.ts
- src/renderer/src/components/settings/orchestration-heartbeat-copy.ts
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/components/settings/OrchestrationPane.test.tsx
- src/renderer/src/i18n/locales/zh-Hant.json
- src/shared/orchestration-heartbeat.ts
- src/renderer/src/i18n/locales/zh.json
- src/renderer/src/i18n/locales/es.json
- src/renderer/src/i18n/locales/ru.json
- src/renderer/src/i18n/locales/pt.json
- src/renderer/src/i18n/locales/de.json
- src/renderer/src/i18n/locales/fr.json
- src/renderer/src/i18n/locales/tr.json
- src/renderer/src/i18n/locales/ko.json
- src/renderer/src/i18n/locales/ja.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
-
| - Default `check` is the bound Run's oldest unacked Delivery (FIFO). Replay until `--ack`. | ||
| - `--peek` / `--all` do not consume mail and return no `deliveryId`, so they do not drain a mailbox on their own. `--all` and a Run `--peek` show at most 100 rows. To drain, repeat plain `check --ack <previous deliveryId>` until `deliveryId` is `null`. | ||
| - Group addresses: `@all`, `@idle`, `@claude`, `@codex`, `@opencode`, `@gemini`, `@droid`, `@grok`, `@cursor`, `@worktree:<id>` — never for `worker_done` / heartbeat. | ||
| - Group addresses: `@all`, `@idle`, `@claude`, `@codex`, `@opencode`, `@gemini`, `@droid`, `@grok`, `@cursor`, `@worktree:<id>` — never for `worker_done`. |
There was a problem hiding this comment.
Keep the heartbeat group restriction.
Heartbeat sends to group addresses are still rejected. The rejects heartbeat group sends before inserting rows test covers this case. Restore heartbeat in this restriction so users do not attempt an invalid send. (raw.githubusercontent.com)
…ble) into integration; drop its heartbeat block per #35343
|
Superseded by #36137, which combines the orchestration v3 changes into one PR. |
What
Workers are no longer told to send heartbeats, and a heartbeat that still arrives no longer reaches a coordinator.
insertMessage). It still updateslast_heartbeat_at, whichworker-showshows aslastHeartbeatAt.notifyMessageArrivedreturns early for heartbeats, so no send, replay or federated import path wakes a coordinator, a waitingcheck --wait, or a mailbox pointer. Old CLIs get the same receipt as before, with no new errors.getStaleDispatchesgetOrchestrationHeartbeatMinutesand theheartbeatIntervalMinutespreamble parameter)worker_donearrivedae79e61bf32). Removes the Worker heartbeats switch, the Heartbeat interval field, their copy and translations, and the two saved fields. Saved values from older builds are dropped on load through the existing retired-settings path.Compatibility
last_heartbeat_atupdates. Verified in the real app below.--type heartbeatis still a valid type.Verification
Real app, dev build, background launch, same scratch profile for both runs. Each run dispatches a task to a real worker terminal, which then sends a heartbeat with the dev CLI.
40822e2c4e0)heartbeat: aliveworker-showlastHeartbeatAtcheck --waitwhile a heartbeat arrivesTests:
notifyMessageArrivedrule.pnpm check:changed --maxWorkers=2: everything passes except three unit-test files that touch no code this PR changes:runtime-failed-local-worktree-removalruntime-client-settings-wsl-host-hooks(real-home write guard)tests/e2e/helpers/persisted-profile-state.unitAll six of their failing tests fail the same way with every file this PR changes reverted to the base.