Skip to content

Count interrupted goal continuations toward the no-activity limit - #52640

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4c34e3ed1ae612e97cf067c2aa76836b10c50ef5
Oct 9, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/4c34e3ed1ae612e97cf067c2aa76836b10c50ef5

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Count interrupted goal continuations toward the no-activity limit

Why

Interrupted automatic goal continuations reset the empty-response counter, allowing repeated interruptions without activity to keep a goal running indefinitely.

What changed

Count interrupted automatic continuations without activity toward the existing three-turn limit that marks a goal as blocked. Defer evaluation until the thread is idle and serialize it with turn-start accounting. Activity and user turns still reset the counter.

Testing

Extend accounting tests to cover interrupted and mixed empty continuations, including resets after tool activity or user turns. Add an app-server regression case where a PreCompact hook repeatedly interrupts automatic continuations and verify the thread/goal/updated notification reports blocked.

…2640)

## Why

Interrupted automatic goal continuations reset the empty-response counter, allowing repeated interruptions without activity to keep a goal running indefinitely.

## What changed

Count interrupted automatic continuations without activity toward the existing three-turn limit that marks a goal as `blocked`. Defer evaluation until the thread is idle and serialize it with turn-start accounting. Activity and user turns still reset the counter.

## Testing

Extend accounting tests to cover interrupted and mixed empty continuations, including resets after tool activity or user turns. Add an app-server regression case where a `PreCompact` hook repeatedly interrupts automatic continuations and verify the `thread/goal/updated` notification reports `blocked`.

GitOrigin-RevId: 4c34e3ed1ae612e97cf067c2aa76836b10c50ef5
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/4c34e3ed1ae612e97cf067c2aa76836b10c50ef5 branch from 1404c87 to 8ec80de Compare October 9, 2026 16:58
@copyberry
copyberry Bot merged commit 8ec80de into main Oct 9, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-09T16:58:37.051990Z 1404c87 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/4c34e3ed1ae612e97cf067c2aa76836b10c50ef5 branch October 9, 2026 16:58
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026
@cpereiraweb
cpereiraweb deployed to issue-triage October 9, 2026 17:02 — with Image GitHub Actions Active
@cpereiraweb
cpereiraweb deployed to issue-triage October 9, 2026 17:02 — with Image GitHub Actions Active
@cpereiraweb
cpereiraweb deployed to issue-triage October 9, 2026 17:02 — with Image GitHub Actions Active
@cpereiraweb
cpereiraweb deployed to issue-triage October 9, 2026 17:03 — with Image GitHub Actions Active
@VirgilMing
VirgilMing deployed to issue-triage October 9, 2026 17:04 — with Image GitHub Actions Active
@VirgilMing
VirgilMing deployed to issue-triage October 9, 2026 17:04 — with Image GitHub Actions Active
@VirgilMing
VirgilMing deployed to issue-triage October 9, 2026 17:04 — with Image GitHub Actions Active
@trmatthews
trmatthews deployed to issue-triage October 9, 2026 17:04 — with Image GitHub Actions Active
@trmatthews
trmatthews deployed to issue-triage October 9, 2026 17:04 — with Image GitHub Actions Active
@trmatthews
trmatthews deployed to issue-triage October 9, 2026 17:04 — with Image GitHub Actions Active
@nostitos
nostitos deployed to issue-triage October 9, 2026 17:07 — with Image GitHub Actions Active
@nostitos
nostitos deployed to issue-triage October 9, 2026 17:07 — with Image GitHub Actions Active
@nostitos
nostitos deployed to issue-triage October 9, 2026 17:07 — with Image GitHub Actions Active
@nostitos
nostitos deployed to issue-triage October 9, 2026 17:08 — with Image GitHub Actions Active
@KonnaCapital
KonnaCapital deployed to issue-triage October 9, 2026 17:09 — with Image GitHub Actions Active
@KonnaCapital
KonnaCapital deployed to issue-triage October 9, 2026 17:09 — with Image GitHub Actions Active
@KonnaCapital
KonnaCapital deployed to issue-triage October 9, 2026 17:09 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 8ec80de0 Deployed Oct 9, 2026 by orlcpkcolicoli-creator via Generate label suggestions #53810
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants