Preserve existing managed Claude model defaults - #444
Open
lilly-luo wants to merge 1 commit into
Open
Conversation
lilly-luo
force-pushed
the
lilly-luo_data/stack/merge-anthropic-custom-headers
branch
from
September 2, 2026 00:56
0c887b6 to
ff95258
Compare
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
3 times, most recently
from
September 2, 2026 01:10
76f46a2 to
3e2a13c
Compare
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
from
September 2, 2026 01:17
3e2a13c to
cd039a4
Compare
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
Stack
Testing
pytest tests/test_agent_claude.py tests/test_managed_resolve.py -q(196 passed)Ruff checks passed for all changed files
manual testing - no coding agent config
start with the following in my /etc/claude-code/managed-settings.json (no coding agent config)
run
uv run ucode claude --refresh(confirmeducode claude --refreshresets my sonnet to sonnet 5)confirming the models are preserved (desired behavior, sonnet not reset to sonnet 5):
1/ set sonnet 5 as my coding agent config sonnet version
2/ updated my /etc/claude-code/managed-settings.json to have sonnet-4-6
3/ confirmed my
ANTHROPIC_DEFAULT_SONNET_MODELgets overwritten to sonnet 5