Add --ignore-user-config option#280
Open
joshavant wants to merge 1 commit into
Open
Conversation
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
Add a
--ignore-user-configoption tocodex-acpthat starts the adapter without loading$CODEX_HOME/config.toml, while continuing to useCODEX_HOMEfor authentication and other Codex state.This mirrors the
codex exec --ignore-user-configflag added upstream in OpenAI Codex in openai/codex#18646 (be4fe9f9b21a3e3909c641c9c74e08cbaf355cc8). The option is useful for ACP clients that want to provide their own session configuration and avoid user-level hooks or MCP servers, while still using the user's existing Codex login.The existing
-c/--configoverrides continue to apply when user config is ignored. The README notes that callers can pass settings such as-c cli_auth_credentials_store=autoexplicitly if those settings normally come fromconfig.toml.Verification
cargo fmt --all -- --checkcargo testcargo clippy --all-targets --all-features -- -D warningscargo run -- --helpgit diff --check