DeepSeek Harness Desktop 0.2.1-rc.5's picker listed only "DeepSeek 账号".
The app reads $DSH_HOME/profiles/desktop (apps/desktop/src/paths.ts) and
makes it from an empty template on its first start. dshFillNewProfiles
gave such a profile magpie's routes only when a wired profile started on
one of magpie's models; with the web profile wired but started on one of
dsh's own, it returned early and the desktop profile stayed bare. Now a
bare profile gets the routes alone in that case (no start written, the
user's pick stays theirs), and nothing is filled when no profile is wired.
Run:
- go test ./internal/agent -run TestDshFillNewProfiles on mote at
ed5872d18: the new TestDshFillNewProfilesWhenTheStartIsTheUsers red on
the old code (desktop profile left as the template), green after.
- go vet ./internal/agent (darwin, GOOS=linux, GOOS=windows) and
go test -count=1 -timeout 45m ./internal/agent on mote: ok (183s).
- Real DeepSeek Harness Desktop 0.2.1-rc.5 (official zip, sha512 checked
against nightly-mac.yml) on mote, sandbox DSH_HOME, not signed in:
first start wrote profiles/desktop/cordis.patch.yml as the empty
template; with a route-only patch (no agent-default-model), as this
change writes, the picker listed the Magpie group (35 models).
Broken by hand: the no-profile-wired guard taken out, the test's last
check goes red (web and desktop templates filled).
Not tried: the reporter's own patch (not sent yet); a signed-in DeepSeek
account in the desktop app; the full go test ./... suite; Windows.
At the pushed head (rebased on e84870f17): go test -count=1 -run Dsh
./internal/agent on mote ok, gofmt -l clean.