Skip to content

Preserve default environment bindings when the local workspace changes - #15

Merged
friel-openai merged 2 commits into
mainfrom
fix/preserve-turn-environment-bindings
Nov 9, 2026
Merged

friel-openai merged 2 commits into
mainfrom
fix/preserve-turn-environment-bindings

Conversation

@friel-openai

Copy link
Copy Markdown
Owner

Why

Thread.environments reports the selected IDs and workspaces but does not report
that an optional default secondary failed startup. A client can copy that list
back to turn/start without asking to change any remote binding. Treating the
echo as a new selection makes the first turn fail the owner-configuration check.

Change

Keep an exact ordered echo of the current local-primary selection unchanged.
When the client changes only the primary local cwd or roots, update only that
workspace after rechecking the secondary bindings under the thread settings
lock. A changed secondary cwd, roots, or selection still goes through the
existing owner check. A secondary that failed startup remains unavailable.

Verification

The isolated app-server test passed with separate first turns for the full
environment echo, cwd-only input, and the projectless composer request. It also
checked the saved workspace list and rejected changes to the unavailable
secondary. Three existing selection and cwd controls passed in the same run.
That run's separate rejoin test failed and is not included in this change.
Independent public replay matched the candidate tree; the existing required-CI
selection is unchanged.

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:55
@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:57:17.059075Z 8c7a998 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 force-pushed the fix/preserve-turn-environment-bindings branch from 8c7a998 to f40b57a Compare November 9, 2026 13:00
@friel-openai
friel-openai merged commit 910d713 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