Repository navigation
fix(provider): copy MCP and prompts into isolated Codex home - #90
Merged
Merged
Conversation
Provider launch points Codex at an empty CODEX_HOME under providers/<alias>/codex-home, so /mcp and custom prompts disappeared even though ~/.codex was never deleted. Overlay mcp_servers, developer_instructions, and skills from the user config, and copy AGENTS.md, prompts/, and skills/ on each launch. Leave auth.json and the user home untouched. Co-authored-by: lolitaupdate <[email protected]>
Today's third candidate: copy user MCP and prompts into the provider isolated Codex home. 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.
Summary
Provider
launchpoints Codex at$CODEX_SWITCH_HOME/providers/<alias>/codex-home. That tree was empty, so/mcpshowed “No MCP servers configured” and custom prompts/skills disappeared. The originals in~/.codexwere never deleted.Each launch now copies from the user’s
$CODEX_HOME:config.tomlkeys:mcp_servers,developer_instructions,skillsAGENTS.md,prompts/,skills/auth.jsonis not copied. The user home is not written. Leftover isolated keys (for example a previousmodel) stay.Test plan
cargo test --lib isolated_codex_homecargo test --allcargo clippy --all-targets -- -D warningsself-update --dev:codex-switch launch <provider>then/mcpshould list the same servers as a normalcodexsession