Skip to content

Reconnect gRPC code-mode sessions after host restarts - #38257

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/548e168fdcef7f7d54bd32262e614886bf7bdd32
Aug 12, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/548e168fdcef7f7d54bd32262e614886bf7bdd32

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Reconnect gRPC code-mode sessions after host restarts

What changed

  • Reopen a cached code-mode session when its gRPC host stops, while
    serializing concurrent reconnection attempts and coordinating shutdown.
  • Scope cell IDs to the new host generation so callbacks remain consistent
    and stale wait or terminate requests are rejected.
  • Accept both unix:// and unix: endpoints for gRPC hosts on Unix systems.

Testing

  • Cover host restart recovery, concurrent execution after reconnection,
    generation-aware callbacks and cell operations, stale cell rejection, and
    Unix socket execution.

## What changed

- Reopen a cached code-mode session when its gRPC host stops, while
  serializing concurrent reconnection attempts and coordinating shutdown.
- Scope cell IDs to the new host generation so callbacks remain consistent
  and stale `wait` or `terminate` requests are rejected.
- Accept both `unix://` and `unix:` endpoints for gRPC hosts on Unix systems.

## Testing

- Cover host restart recovery, concurrent execution after reconnection,
  generation-aware callbacks and cell operations, stale cell rejection, and
  Unix socket execution.

GitOrigin-RevId: 548e168fdcef7f7d54bd32262e614886bf7bdd32
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/548e168fdcef7f7d54bd32262e614886bf7bdd32 branch from 33ac3c0 to bde723a Compare August 12, 2026 22:01
@copyberry
copyberry Bot merged commit bde723a into main Aug 12, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/548e168fdcef7f7d54bd32262e614886bf7bdd32 branch August 12, 2026 22:02
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 12, 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.

1 participant