Repository navigation
fix(T677): keep silent open Codex turns active - #369
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex ee1e8ba (base 6617cfd). Owner-approved full rule for T677. CodexActivity now recognises an unmatched rollout turn start (task_started with no task_complete, end or abort for that turn_id) and refreshes lease activity on the existing 60 s MCP heartbeat even while the rollout mtime stays unchanged. A long silent Codex turn is no longer offered for idle takeover. Missing, unreadable, malformed, replaced or truncated rollouts drop the cached turn state and fall back to mtime. The lease token, thread, PID-birth and live-process fences are unchanged, and there's no new timer or process.
Trade-off: an abandoned unmatched start keeps the holder live while its process lives.
test/codex-activity.test.ts 25/25 (REQ-T677-ROLLOUT; includes a >10 min silent turn and completed-turn recovery; the new regression fails without the fix), project-mailbox 26/26, tsc and check-dist clean. CHANGELOG Unreleased only.
🤖 Generated with Claude Code