Files
magpie/docs
yetone c44698bdaa agent: a model given to one of Claude Code's tiers or its subagents stays theirs when the main model moves onto it and on again (#1050)
#1050's sonnet tier and subagents were given Sonnet 5.5 with the main
model on Opus 5.5. Moving the main model to Sonnet 5.5 made the two read
as following it, so its next move took them along: back on Opus 5.5,
ANTHROPIC_DEFAULT_SONNET_MODEL said Opus and CLAUDE_CODE_SUBAGENT_MODEL
was gone, the pick lost without a word. set now marks a tier or the
subagents whose own model the new main model is (ownKey, the mark a tier
already got when the main model was picked for it where it would follow
another), in magpie and through /model's Follow alike. While marked they
read as that model, not "same as model"; "same as model" picked for them
takes the mark away and they follow again.

TestReseatOff expected the sonnet tier given ds/gpt-5 to read empty
after the main model was reseated onto ds/gpt-5; it now keeps ds/gpt-5.
The #1050 drift tests leave the marks out, as a magpie before this left
the state.

TestClaudeOwnTierStaysThroughTheMainModel (magpie and /model) fails
without the change ("on the main model, the tier and subagents read as
their own": sonnet and subagent empty), as does TestReseatOff with the
old expectation flipped. go test -race ./internal/agent ./internal/profile
pass; -race -count=20 on the Claude, WSL and reseat tests passes.
2026-10-07 02:25:49 +08:00
..