Skip to content

fix: adopt codex-plugin-cc reliability guards#6

Merged
nillo merged 1 commit into
mainfrom
feat/codex-plugin-cc-reliability
May 13, 2026
Merged

fix: adopt codex-plugin-cc reliability guards#6
nillo merged 1 commit into
mainfrom
feat/codex-plugin-cc-reliability

Conversation

@nillo
Copy link
Copy Markdown
Contributor

@nillo nillo commented May 13, 2026

Summary

Adopts the verified ContextRelay-relevant reliability patterns from openai/codex-plugin-cc without porting its plugin architecture or UX. This bounds backup timeout cleanup, daemon shutdown cleanup, and long-running Codex turns.

Changes

  • Add backup-agent timeout escalation: SIGTERM first, then SIGKILL after CONTEXTRELAY_BACKUP_KILL_GRACE_MS, with backup_timeout ledger telemetry.
  • Add bounded daemon shutdown steps via runShutdownSteps, with daemon_shutdown runtime event telemetry and CONTEXTRELAY_DAEMON_SHUTDOWN_STEP_TIMEOUT_MS.
  • Add a per-turn wall-clock Codex watchdog via CONTEXTRELAY_TURN_MAX_MS, status/viewer exposure for the last watchdog fire, and turn_watchdog runtime events.
  • Document the new reliability guards and environment variables in the README.
  • Rebuild CLI/plugin bundles.

Upstream References

Testing

  • bun test src/unit-test/backup-runner.test.ts src/unit-test/shutdown.test.ts src/unit-test/codex-adapter.test.ts
  • bun run typecheck
  • bun run build:cli && bun run build:plugin
  • bun run check → 322 pass, 0 fail, 999 expect() calls; bundle sync, plugin version, and lockfile checks passed

@nillo nillo merged commit bf75a88 into main May 13, 2026
@nillo nillo deleted the feat/codex-plugin-cc-reliability branch May 13, 2026 01:01
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