Skip to content

Keep external agent detection from blocking config requests - #37528

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d2764dcdb0e96d810c790c570c48fa45690a3dc1
Aug 8, 2026
Merged

Keep external agent detection from blocking config requests#37528
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d2764dcdb0e96d810c790c570c48fa45690a3dc1

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 8, 2026

Copy link
Copy Markdown

Keep external agent detection from blocking config requests

Why

External agent detection can spend time reading session transcripts. Sharing the
configuration serialization queue causes unrelated configuration requests to
wait for detection to finish.

What changed

  • Give externalAgentConfig/detect its own global serialization queue.
  • Keep configuration reads, requirements reads, writes, and external agent
    imports responsive while detection is still running.

Testing

Add a Unix app-server test that blocks transcript detection on a FIFO and
verifies the unrelated requests complete before detection is released.

## Why

External agent detection can spend time reading session transcripts. Sharing the
configuration serialization queue causes unrelated configuration requests to
wait for detection to finish.

## What changed

- Give `externalAgentConfig/detect` its own global serialization queue.
- Keep configuration reads, requirements reads, writes, and external agent
  imports responsive while detection is still running.

## Testing

Add a Unix app-server test that blocks transcript detection on a FIFO and
verifies the unrelated requests complete before detection is released.

GitOrigin-RevId: d2764dcdb0e96d810c790c570c48fa45690a3dc1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d2764dcdb0e96d810c790c570c48fa45690a3dc1 branch from 9887be4 to f65ea99 Compare August 8, 2026 03:53
@copyberry
copyberry Bot merged commit f65ea99 into main Aug 8, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d2764dcdb0e96d810c790c570c48fa45690a3dc1 branch August 8, 2026 03:54
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 8, 2026
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.

2 participants