IanLi592 picked a non-DeepSeek model for DeepSeek Harness in magpie, went
on in a workspace's session made earlier, and it still went to DeepSeek on
their DeepSeek key. That is dsh's design: magpie writes
agent-default-model in the profile's cordis.patch.yml, which dsh reads for
new sessions only; a session keeps the provider/model in its own log
(dsh-agent-default-model README: "An existing session whose request log
already names a selection keeps that selection"; dsh-client-ui-model-
selection: switch with /model or the composer's model control). Read in
dsh 0.2.0-rc.2's installed packages.
magpie told them so only while dsh was running (Running gate in dsh's
Notice), and said "one already open", while a closed session reopened later
keeps its model too. For dsh 0.1.5+ (a profile patch exists) the notice is
now given after every pick, and says a session made before keeps its
model, open now or reopened later, until /model or the model button by its
message box picks another. Before 0.1.5 the restart advice stays as it was,
given while dsh runs. Session logs are dsh's and stay untouched. Strings in
zh, zh-TW, ja, de and NOTICES.
Tested: TestDshPickSaysOldSessionsKeepTheirModel (sandbox home with a web
profile, Running stubbed false). With dsh.go and i18n.js put back it fails:
"a pick says nothing of the sessions dsh already has: \"dsh's web search
goes through magpie, ...\"". go test -run 'TestDsh|TestEveryNoticeIsTranslated'
./internal/agent ok; agent-notice-lang and i18n-keys GUI tests pass in
Chromium and WebKit (14/14 each); gofmt clean; vet darwin/linux/windows on
internal/agent ok. Not tried in the real dsh app (the notice is magpie's
text; dsh's behaviour is from its own package docs).
Rebased onto 370eaba97: dsh's Notice keeps the base's first branch (a
desktop app never opened says noticeDsh5 alone, #2279), then this
commit's profile-before-Running order; the zh/zh-TW/ja/de NOTICES
entries keep the new noticeDsh5 string beside the reworded noticeDsh1.
TestDsh and TestEveryNoticeIsTranslated: ok.
Full suite: SUITE_LINE