Claude Desktop 3p config not picked up on MSIX install: `Claude-3p` is excluded from FS virtualization in 2.31226, but magpie writes to the package's LocalCache
Environment
- Windows 11 (10.0.26200)
- Claude Desktop 2.31226.0.0, installed as MSIX (package family
Claude_pzs8sxrjxfjjc) - magpie 0.1.1134
Symptom
Switching Claude Desktop's provider to magpie reports success, and magpie writes its files, but after a full restart of Claude Desktop nothing changes: the app stays in 1p mode, still showing the Anthropic sign-in / Free account, no gateway models.
Root cause
magpie's internal/desktopdir/desktopdir.go assumes a packaged Desktop reads its virtualized package folders first:
The packaged app reads its own copy before the real folder's, so a file another program writes into %APPDATA%\Claude is not seen once the app has one there.
So on an MSIX install magpie writes to:
%LOCALAPPDATA%\Packages\Claude_<publisher>\LocalCache\Local\Claude-3p\
However, Claude Desktop 2.31226's AppxManifest.xml explicitly excludes Claude-3p from file-system virtualization:
<virtualization:FileSystemWriteVirtualization>
<virtualization:ExcludedDirectories>
...
<!-- 3P userData lives in LocalAppData; exclude so devirtualizeMsixPath/showItemInFolder see the real path -->
<virtualization:ExcludedDirectory>$(KnownFolder:LocalAppData)\Claude-3p</virtualization:ExcludedDirectory>
...
</virtualization:ExcludedDirectories>
</virtualization:FileSystemWriteVirtualization>
As a result the packaged app reads only the real %LOCALAPPDATA%\Claude-3p, and never sees what magpie wrote into Packages\...\LocalCache\Local\Claude-3p. (%APPDATA%\Claude is still virtualized, so the assumption holds there — it breaks specifically for Claude-3p, plus Claude\logs and Claude-Data which are also excluded.)
Confirmed locally: the real %LOCALAPPDATA%\Claude-3p stayed empty while magpie's files sat in LocalCache; main.log showed normal 1p startup with no 3p/configLibrary activity.
Workaround (verified working)
Copy magpie's three written files from the package cache to the real path, then fully restart Desktop:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Local\Claude-3p\
→ %LOCALAPPDATA%\Claude-3p\
(claude_desktop_config.json, configLibrary\_meta.json, configLibrary\<entry>.json)
Desktop then boots into 3p mode: no sign-in, "Gateway" shown in the sidebar, models served by magpie.
Suggested fix
On Windows MSIX installs, write ThreeP (and possibly Mode) to the real %LOCALAPPDATA%\Claude-3p instead of the package's LocalCache, or probe both. The manifest exclusion means the real path is what the app reads for anything 3p.
Also note: after Desktop runs in 3p mode it populates the real Claude-3p with its userData (Local State etc.), which flips magpie's lastRun heuristic — and Desktop's own additions to claude_desktop_config.json then show up as "配置已变更 / 已不经过 magpie" drift. Writing to the real path from the start would avoid both.
Confirmed — and it is not something to fix in current builds: 0.1.1134 is the version before the change. Magpie now writes both paths.
Evidence (upstream main 9dd72f5b, checked 2026-10-17):
internal/desktopdir/desktopdir.go:26— the package no longer keeps%LOCALAPPDATA%to itself from 2.31226 on: "Desktop's 3p mode reads the real%LOCALAPPDATA%\Claude-3p… soSetsgives both: what Desktop must find goes into each."Sets()is:93. For an MSIX install on Windows it returns every set of Desktop's folders, not one:[]Dirs{classic, packaged}(:123) or[]Dirs{packaged, classic}(:125, whichever Desktop ran in last comes first). The wiring writes each of them —internal/agent/claudedesktop.go:159isfor _, p := range ps { if err := on(p); err != nil { … } }— soclaude_desktop_config.json,configLibrary\_meta.jsonand the profile go into%LOCALAPPDATA%\Claude-3pand into%LOCALAPPDATA%\Packages\Claude_<publisher>\LocalCache\Local\Claude-3p.- Your build had no
Setsat all:git diff v0.1.1134 HEAD -- internal/desktopdir/desktopdir.goshows v0.1.1134'sFind()returning a singleDirs. - First tag carrying the change:
v0.1.1156(a21a2b54, 2026-10-10 14:14 +0800).v0.1.1155does not have it. Bisect that gives that answer:
git tag | grep -E '^v0\.1\.[0-9]+$' | sort -V | while read t; do
git show "$t:internal/desktopdir/desktopdir.go" 2>/dev/null | grep -q "gives both" && { echo "$t"; break; }
done
# → v0.1.1156
Scope: this is the Claude-3p path your report is about, including the two side effects you named — writing the real path from the start is what stops Desktop's own additions to claude_desktop_config.json from reading as drift, since magpie's copy no longer lives only where Desktop does not look.
Not tried: I have no machine with a 2.31226 MSIX install, so this is the code path plus the tag where it changed, not an end-to-end reproduction — your own reproduction is the evidence for the old behaviour.
Action: please retry on v0.1.1156 or later, without the copy-by-hand workaround, and confirm Desktop comes up in 3p mode. If it still boots 1p there, that is a different problem and worth its own report with main.log.