Repository navigation
fix(provider): concurrent launch homes with symlink and merge - #91
Merged
Merged
Conversation
Do not rewrite the user config.toml while Codex runs: overlapping launches would restore over each other. Each launch gets its own run directory, links prompts/skills/AGENTS.md to the user home, and three-way-merges non-model keys (MCP) back on exit. Co-authored-by: lolitaupdate <[email protected]>
Supersede the untagged 20260828.4.0 shared-home restore that races when two provider launches overlap. Co-authored-by: lolitaupdate <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each provider
launchnow uses its own Codex home so overlapping models cannot rewrite ChatGPT keys in the userconfig.toml.Why: Sharing and stripping/restoring the user
config.tomlis a race when two (or more) sessions run at once. The later restore wins and can drop the other session’s MCP edits or put the wrong model keys back.What changed:
$CODEX_SWITCH_HOME/providers/<alias>/runs/{pid}-{nanos}-{seq}/as the child’sCODEX_HOMEprompts/,skills/, andAGENTS.mdare symlinked to the user home (Windows copy fallback if symlink fails)config.tomlkeeps MCP and other non-model keys; omitsmodel/model_provider/model_reasoning_effort/model_catalog_json/model_providers/web_searchcodex-config.lockthree-way-merges those non-model keys back (disjoint MCP servers from overlapping sessions are all kept)model/model_reasoning_effortare never rewritten for the sessionauth.jsonis not copied or swappedModel and endpoint still come only from
codex -c.Version:
20260828.5.0. Rollingdevtag waits on three-platform CI.