Follow-up to fjrtdk's commit before this one, which this keeps: magpie never names
itself as Grok App's route.
- Set refused every own route (errGrokAppRoute) while Options still
offered them, so the picker showed choices that only errored. It also
broke Disconnect: when unwire leaves no route (Use set it to magpie,
nothing stashed), Disconnect sets connect.was's route back through Set,
got the error and stopped half done. An own route now takes magpie's
channel out and is written as [models] default, the way picking
another provider leaves magpie on other agents. That route can't be
magpie, so the App's sign-in is never touched.
- Sync ran rememberRoute/releaseRoute before checking for the channel,
so every user with Grok App installed but not connected got stash
entries. Now it returns before them unless the channel is there or
the route is still magpie (an older magpie's takeover to put back).
- Check again warns when the route is magpie and the channel is gone,
which that commit dropped.
- The notice uses the App's own labels (Settings › Account, Use; ja
「使う」, de Einstellungen › Konto / Verwenden, from grok-app 0.2.40's
settings.nav.account and prov.useThis) and says a chat can pick
magpie's models in its model picker (composer_prefs_set, which
doesn't move the route).
- Sibling: rtk init has no grok agent for Grok Build either (rtk 311ebcb
agents: claude codex copilot cursor droid gemini hermes opencode pi
trae vibe antigravity), so Grok Build is in rtkNoHook too.
Run: gofmt -l clean; go vet ./... on darwin, GOOS=linux -tags nogui and
GOOS=windows clean; go test ./internal/gateway ./internal/agent
./internal/library -count=1 pass; node --test i18n-keys and
agent-notice-lang pass. Broken by hand: that commit's grokapp.go fails
TestGrokAppOwnRouteStays, TestGrokAppDisconnectPutsTheRouteBack and
TestGrokAppSyncUnconnected; dropping the Check branch fails
TestGrokAppSyncUnconnected; dropping rtkNoHook["grok"] fails
TestRTKNoHookGrokBuild. Not tried: the Grok App GUI itself; the config
format and behaviour are from grok-app 0.2.40's source.
Co-authored-by: fjrtdk <fjrtdk@gmail.com>