Preserve existing managed Claude model defaults - #444
Merged
lilly-luo merged 16 commits intoSep 2, 2026
Merged
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
Base automatically changed from
lilly-luo_data/stack/merge-anthropic-custom-headers
to
main
September 2, 2026 13:14
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
from
September 2, 2026 13:32
c401b5f to
320ec64
Compare
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
from
September 2, 2026 13:36
320ec64 to
915e1f0
Compare
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
from
September 2, 2026 14:07
020e2eb to
fe612cb
Compare
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
5 times, most recently
from
September 2, 2026 14:50
c9fd93f to
6ea5486
Compare
lilly-luo
force-pushed
the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
from
September 2, 2026 15:43
6ea5486 to
60a5a1a
Compare
david-siqi-liu
approved these changes
Sep 2, 2026
…ults' of https://github.com/databricks/ucode into stack/preserve-managed-claude-model-defaults
lilly-luo
enabled auto-merge (squash)
September 2, 2026 18:03
lilly-luo
disabled auto-merge
September 2, 2026 18:08
lilly-luo
enabled auto-merge (squash)
September 2, 2026 18:08
lilly-luo
disabled auto-merge
September 2, 2026 18:14
lilly-luo
deleted the
lilly-luo_data/stack/preserve-managed-claude-model-defaults
branch
September 2, 2026 18:14
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
Currently, we override managed settings with ucode model family defaults in Claude Code. Instead, the hierarchy should be:
1/ coding agent config model family default (highest pri)
2/ existing model family default in the managed setting file
3/ ucode default (lowest pri)
this PR forces that hierarchy. for fable: if fable is enabled, we follow the same hierarchy above. if fable is not enabled, drop fable from the managed config settings.
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):
manual testing - coding agent config
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 5manual testing of fable
fable NOT enabled, coding agent config has fable -> should not have fable in the managed settings
fable NOT enabled, existing fable model in managed settings -> should not have fable in the managed settings
fable NOT enabled, no fable model in managed settings -> should not have fable in the managed settings
fable enabled, coding agent config has fable -> should have coding agent config's fable version
fable enabled, existing fable model in managed settings -> should have preexisting fable version
fable enabled, no fable model in managed settings -> should have ucode's default fable version