xMopf7RF asked for Claude Magpie to be a full clone, like an Android
app twin: making it from magpie must not wire their own Claude Desktop
or touch its config. In a sandbox HOME on mote with the real Claude.app
(`launcher add`, then `claude-desktop magpie`, as "Use Claude Magpie"
does), origin/main f798b4eb7 left Claude's and Claude-3p's files
byte-identical, but:
- ~/.claude/settings.json got Desktop's Explore flag (and, with models
on magpie, Desktop's windows and caps): the twin's Code tab ran on the
user's own Claude Code folder, since its own folder (#6459) was
opt-in;
- `launcher remove` then put the user's own Desktop on magpie
(deploymentMode 3p in Claude/claude_desktop_config.json, Claude-3p's
configLibrary): turning the Separate app off always moved the wiring
back to the usual folders, even when it never came from them.
Decided (product calls are delegated):
- A Claude Magpie made new gets ~/.claude-magpie-desktop
(desktopIsoClaudeDefault in SetDesktopIsolated). Made new is the app
off and no Claude-Magpie-3p folder yet, and the user never set the
option: settings.DesktopIsolatedClaudeChosen, set by the Advanced fold
and `launcher claude-dir`. A clone made before (chats in
Claude-Magpie-3p, Code tab on ~/.claude) and a user's off are kept.
The option itself stays where it was; no new UI.
- Off moves the wiring back only when it came from the user's own
Desktop (stash claude-desktop.isolated-from-own, set when the on path
moves it). A twin made beside a Desktop not on magpie leaves that
Desktop off magpie. A Separate app turned on before this mark (since
11-09) also leaves it off when turned off; connecting it again is one
click, while wiring a signed-in Desktop the user didn't ask for is the
harm reported.
Run (mote, at this change on f798b4eb7; after the rebase onto 7af7a3aba,
which changed internal/agent, agent and settingsapi tests and vet ran
again: ok):
- Sandbox HOME, real Claude.app, the same three steps as above: Claude,
Claude-3p, ~/.claude and ~/.claude.json byte-identical after add and
connect and after remove; the twin's app script exports
CLAUDE_CONFIG_DIR=~/.claude-magpie-desktop and Desktop's Explore flag
went into that folder. Second sandbox: own Desktop wired, `claude-dir
off`, `launcher add` moved it into the clone (Code tab on ~/.claude,
as chosen), `launcher remove` moved it back. Sandboxes removed.
- go test -tags nogui agent, cli, settings, settingsapi, desktopiso,
desktopdir: all ok. gui TestSettingsSaveKeeps*, TestCoreScriptBudget
ok.
- gofmt -l clean; go vet ./... (darwin), GOOS=linux -tags nogui and
GOOS=windows go vet ./..., linux and windows builds: ok.
- GUI, Chromium and WebKit: desktop-twin, desktop-isolated-claude,
desktop-isolated, i18n-keys: 72 of 72 (no GUI file changed).
Broken by hand:
- Off always moving back (no mark check): TestClaudeMagpieTwinLeaves
TheOriginal red ("the user's own on magpie true").
- No desktopIsoClaudeDefault call: the same test red ("its own folder
false").
- The default not asking whether the user chose: TestClaudeMagpieOwn
FolderKeepsWhatWasSet/chosen_off red ("its own folder turned on").
Not run at push: the full go test -tags nogui ./... (on the
f798b4eb7-based tree) was queued on mica behind another session's
suite (mote and mica both over their core count), not finished. Not tried:
a Code-tab session in the real twin's UI (#6459 saw one write into the
folder).