Skip to content

Prefer the Codex home socket for Unix IDE context#32302

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/560c827ad3d446a82ec503779995757096ac33e0
Jul 11, 2026
Merged

Prefer the Codex home socket for Unix IDE context#32302
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/560c827ad3d446a82ec503779995757096ac33e0

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 11, 2026

Copy link
Copy Markdown

Prefer the Codex home socket for Unix IDE context

What changed

  • Look for the Unix IDE context socket at CODEX_HOME/ipc/ipc.sock first.
  • Fall back to the existing per-user temp-directory socket paths, including both legacy paths for UID 0.
  • Apply one request deadline across all connection attempts, and stop fallback after a timeout or a protocol error on a connected socket.

Testing

  • Added coverage for socket path selection, primary preference, legacy fallbacks, and timeout and protocol-error behavior.

## What changed

- Look for the Unix IDE context socket at `CODEX_HOME/ipc/ipc.sock` first.
- Fall back to the existing per-user temp-directory socket paths, including both legacy paths for UID 0.
- Apply one request deadline across all connection attempts, and stop fallback after a timeout or a protocol error on a connected socket.

## Testing

- Added coverage for socket path selection, primary preference, legacy fallbacks, and timeout and protocol-error behavior.

GitOrigin-RevId: 560c827ad3d446a82ec503779995757096ac33e0
@copyberry copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/560c827ad3d446a82ec503779995757096ac33e0 branch from dd087ac to dfefd8a Compare July 11, 2026 01:17
@copyberry copyberry Bot merged commit dfefd8a into main Jul 11, 2026
14 of 32 checks passed
@copyberry copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/560c827ad3d446a82ec503779995757096ac33e0 branch July 11, 2026 01:18
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 11, 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.

3 participants