Skip to content

Recover stale Slack active turns#70

Draft
zzj3720 wants to merge 1 commit into
mainfrom
codex/active-turn-watchdog
Draft

Recover stale Slack active turns#70
zzj3720 wants to merge 1 commit into
mainfrom
codex/active-turn-watchdog

Conversation

@zzj3720
Copy link
Copy Markdown
Collaborator

@zzj3720 zzj3720 commented May 27, 2026

Summary

  • Add a configurable SLACK_STALE_ACTIVE_TURN_AFTER_MS watchdog for long-silent active turns.
  • Reset stale inProgress/unknown turns by interrupting the runtime when possible, moving the inflight batch back to pending, and clearing the broker activeTurnId.
  • Add the approved proposal doc plus config/reconciler regression tests.

Validation

  • pnpm exec vitest run test/slack-turn-reconciler.test.ts test/config.test.ts
  • pnpm build
  • pnpm test
  • Manual smoke: ran a pnpm exec tsx snippet that simulated a stale in-progress turn and verified the reconciler called interrupt, reset-to-pending, and cleared the active turn.

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.

2 participants