Skip to content

Conversation

@celia-oai
Copy link
Collaborator

@celia-oai celia-oai commented Jan 5, 2026

Currently we don't load config properly for app server conversations. see: https://linear.app/openai/issue/CODEX-3956/config-flags-not-respected-in-codex-app-server. This PR fixes that by respecting the config passed in.

Tested by running cargo build -p codex-cli && RUST_LOG=codex_app_server=debug CODEX_BIN=target/debug/codex cargo run -p codex-app-server-test-client -- \ --config model_providers.mock_provider.base_url=\"http://localhost:4010/v2\" \ --config model_provider=\"mock_provider\" \ --config model_providers.mock_provider.name="hello" \ send-message-v2 "hello"
and verified that the mock_provider is called instead of default provider.

#closes https://linear.app/openai/issue/CODEX-3956/config-flags-not-respected-in-codex-app-server

@celia-oai celia-oai changed the title tmp [app-server] fix config loading for conversations Jan 6, 2026
@celia-oai celia-oai requested review from jif-oai and owenlin0 January 6, 2026 00:33
@celia-oai celia-oai marked this pull request as ready for review January 6, 2026 00:33
Copy link
Contributor

@owenlin0 owenlin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving to get --config flags working for app-server, but +1 to unifying config code / making it easier to follow

Copy link
Contributor

@owenlin0 owenlin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw the fix ultimately was that we never read &self.cli_overrides from codex_message_processor? nice find!

@celia-oai celia-oai requested a review from bolinfest January 6, 2026 01:20
@celia-oai
Copy link
Collaborator Author

btw the fix ultimately was that we never read &self.cli_overrides from codex_message_processor? nice find!

yup yup! I agree it's confusing because cli_overrides is an overloaded term and easy to miss when we are not passing in all the overrides. will rename first to make it clearer

Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think some terminology needs to be tightened up here. The things that are currently called harness_overrides are not defined by the harness but a NewConversationParams, so I think some other name is in order.

@celia-oai celia-oai force-pushed the dev/cc/fix-config branch 2 times, most recently from 726dc32 to fa76165 Compare January 6, 2026 06:24
@celia-oai celia-oai requested a review from bolinfest January 6, 2026 06:25
@jif-oai
Copy link
Collaborator

jif-oai commented Jan 6, 2026

Lots of changes on this recently so I rely on @.bolinfest for this

@celia-oai celia-oai force-pushed the dev/cc/fix-config branch 2 times, most recently from 599d690 to 1d69d0d Compare January 6, 2026 19:26
Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let's go with the typesafe_overrides thing and this is good by me: thanks for fixing!

@celia-oai celia-oai enabled auto-merge (squash) January 6, 2026 21:50
@celia-oai celia-oai merged commit 11d4f3f into main Jan 6, 2026
26 checks passed
@celia-oai celia-oai deleted the dev/cc/fix-config branch January 6, 2026 22:02
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants