Two gaps in the previous commit's replaceBuiltInOptions:
- writePicker leaves out the row of a model a tier is on at an effort
(#1616), since Claude Code shows it as that tier's row. With
replaceBuiltInOptions Claude Code drops the tier rows along with its
built-in lineup (2.1.316: only the Default row and the picker's own
stay), so such a model was in /model nowhere. While the switch hides
Claude Code's own models, every model keeps its row.
- SetOwnModelsHidden saved the setting without catalog.Touched, unlike
SetHiddenModels, so flipping the switch in the GUI left Claude Code's
settings.json as it was until some other change re-synced it.
Tests: TestClaudePickerLeavesOutATiersModelAtItsEffort gains the
replace case (Terra on Haiku at max is listed); TestOwnModelsSwitchTellsTheAgents
counts catalog.Changed per flip.
Reviewed and run by yetone at the batch head over cac655c14 (this commit,
the four others from ggbdpq's #4495/#4548/#4512/#3260 patches and the
#4548 follow-up), on mote:
- gofmt -l clean; go vet ./... for darwin, linux (-tags nogui), windows;
go build ./... for darwin and windows.
- go test -tags nogui -count=1 -timeout 45m ./...: every package ok but
internal/gui, with two filed reds: TestSettingsSaveKeepsWhatItDoesNotSend
(#4514), red alone at origin/main cac655c14 too, and TestColdTurnsTaken
(#4510), red only in the full run. Rebased afterwards onto e94fb18b8,
a usage-page change that touches none of these files.
- Windows (xiaomi-gpu): go test -run 'TestVSCode|TestClaudePicker'
./internal/agent ok. TestCopilotFolderFromAnIDEPluginIsNotTheCLI is red
there at cac655c14 too (#1827).
- Broken by hand: each half reverted alone -> TestClaudePickerLeavesOutATiersModelAtItsEffort and TestOwnModelsSwitchTellsTheAgents red.