Skip to content

Recover saved executor selections on cold resume - #13

Merged
friel-openai merged 1 commit into
mainfrom
frodex/optional-resume-executors
Nov 9, 2026
Merged

friel-openai merged 1 commit into
mainfrom
frodex/optional-resume-executors

Conversation

@friel-openai

Copy link
Copy Markdown
Owner

Why

Cold thread/resume must restore the thread's saved executor selection.
Reconstructing that selection from the current registry can contact executors
the thread did not choose. A stalled secondary can also delay project
instruction discovery.

Behavior

  • Restore the latest owned executor selection and reuse the project
    instructions found during bounded startup discovery.
  • Record whether a new saved selection came from registry defaults. An older
    checkpoint without that provenance does not authorize dropping an executor
    or its instructions.
  • Let an experimental client nominate unavailable registry secondaries for one
    cold resume with a local primary. The exception does not change the saved
    selection. A reviewed turn/start.environments on the user's next authorized
    turn can save a new selection so ordinary cold resumes work afterward.

thread/read still reads persisted messages without loading an executor.
An unavailable required executor still prevents loading the runtime. The
integration test covers ordinary RPCs, not a Desktop UI.

Compatibility

The public stable schemas and Python SDK are unchanged. The new internal
checkpoint field is optional; a missing field keeps the saved assignments
required. optionalEnvironmentIds requires experimental API opt-in.

Verification

  • Five isolated app-server cases passed. The new case checks readback
    without loading the thread, rejection of a turn before load, a reviewed
    recovery turn, and ordinary resume and continuation after normal unload.
    The excluded executors receive no requests during repair or continuation.
  • Four protocol freshness checks and both Python SDK freshness variants
    passed. The selector adds only the new app-server case.

Codex Task: codex://threads/01a029f4-9863-7523-be3e-864bebe4187a

@friel-openai friel-openai added the codex-app-server App server request handling and thread history label Nov 9, 2026
@friel-openai
friel-openai marked this pull request as ready for review November 9, 2026 12:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T12:06:09.188388Z 3cbe21a Draft marked ready
ℹ️ 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.

@friel-openai
friel-openai merged commit 02a915d into main Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex-app-server App server request handling and thread history

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant