Skip to content

Backfill completion items only for the active exec turn - #34226

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/46a41236ee6a39e4b341570ff4826a71fa02bb32
Jul 19, 2026
Merged

Backfill completion items only for the active exec turn#34226
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/46a41236ee6a39e4b341570ff4826a71fa02bb32

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 19, 2026

Copy link
Copy Markdown

Backfill completion items only for the active exec turn

Why

Multi-agent exec sessions can receive child turn/completed notifications on
the same event stream as the primary turn. Backfilling those unrelated
completions issues unnecessary thread/read requests.

What changed

Run completion-item backfill only after a notification has been matched to the
primary exec thread and turn.

Testing

Add an integration test that delivers a child completion before the primary
completion and verifies that only the primary completion triggers backfill.

## Why

Multi-agent exec sessions can receive child `turn/completed` notifications on
the same event stream as the primary turn. Backfilling those unrelated
completions issues unnecessary `thread/read` requests.

## What changed

Run completion-item backfill only after a notification has been matched to the
primary exec thread and turn.

## Testing

Add an integration test that delivers a child completion before the primary
completion and verifies that only the primary completion triggers backfill.

GitOrigin-RevId: 46a41236ee6a39e4b341570ff4826a71fa02bb32
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/46a41236ee6a39e4b341570ff4826a71fa02bb32 branch from 0abc055 to 7844386 Compare July 19, 2026 20:37
@copyberry
copyberry Bot merged commit 7844386 into main Jul 19, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/46a41236ee6a39e4b341570ff4826a71fa02bb32 branch July 19, 2026 20:38
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants