Skip to content

Fix model settings not switching during temp launch#117

Open
yuanzidev wants to merge 1 commit intoSaladDay:mainfrom
yuanzidev:fix/temp-launch-model-settings
Open

Fix model settings not switching during temp launch#117
yuanzidev wants to merge 1 commit intoSaladDay:mainfrom
yuanzidev:fix/temp-launch-model-settings

Conversation

@yuanzidev
Copy link
Copy Markdown

The start claude command only extracted the env sub-object from settings_config when building the temporary settings file. This meant model overrides (e.g. ANTHROPIC_DEFAULT_SONNET_MODEL) and other top-level fields were missing from the temp file, causing stale model names from the global ~/.claude/settings.json to bleed through when Claude CLI merged --settings with its default config.

Now prepare_launch_with writes the full settings_config (cloned and model-normalized via normalize_claude_models_in_value), matching the behavior of the provider switch path.

The `start claude` command only extracted the `env` sub-object from
`settings_config` when building the temporary settings file. This meant
model overrides (e.g. `ANTHROPIC_DEFAULT_SONNET_MODEL`) and other
top-level fields were missing from the temp file, causing stale model
names from the global `~/.claude/settings.json` to bleed through when
Claude CLI merged `--settings` with its default config.

Now `prepare_launch_with` writes the full `settings_config` (cloned and
model-normalized via `normalize_claude_models_in_value`), matching the
behavior of the `provider switch` path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant