ac4af582301a4e8a29245dbba767eba31334ddf9
19
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
61394481c7 |
agent: DeepSeek Harness Desktop is found on Linux (AUR, .deb, AppImage entry)
xianhongtao (magpie 0.1.3232, Arch Linux) has DeepSeek Harness Desktop
from the AUR (deepseek-harness-desktop 0.2.2rc.1-1) and no dsh CLI.
magpie knew the app on macOS and Windows only, so it said "DeepSeek
Harness CLI not found ~/.dsh/profiles/web/cordis.patch.yml".
HasApp for dsh now also finds the Linux app (linuxApp, desktopapp_xdg.go):
- a folder holding the Electron executable deepseek-harness with
resources/app.asar beside it: /usr/lib/deepseek-harness-desktop (the
AUR's) or /opt/DeepSeek Harness (electron-builder's .deb/.rpm);
- or the app's desktop entry in the XDG data dirs (XDG_DATA_HOME first,
then XDG_DATA_DIRS, the first file of a name wins, Hidden=true hides
it): Name=DeepSeek Harness, Type Application, MimeType holding
x-scheme-handler/dsh, and its Exec program there (on PATH, or an
absolute executable file: an AppImage anywhere). Scans of a folder are
kept by its mtime, trusted only when read over a second after it
changed and for a minute at most.
Linux only; macOS and Windows keep their own checks.
Siblings: everything reading HasApp for dsh follows: the profile a fresh
~/.dsh gets (profiles/desktop), the desktop lead and notices, cliHeld and
CLIMissing (so the GUI's and the CLI's "CLI not found" go away). The
"running" check for noticeDsh2 also knows deepseek-harness, the app's
Linux executable. With both profiles present (the reporter's case) Path
stays profiles/web as on macOS; the desktop lead picks the model shown.
Run (mote, through mote-run):
- go test -count=1 -race -run 'TestDshLinux|TestDshDesktop|TestCodexLinux|Lody' ./internal/agent/: ok
- go test -count=1 ./internal/agent/ ./internal/gui/ ./internal/cli/: ok
- gofmt -l clean; go vet ./...; GOOS=linux go vet -tags nogui ./...;
GOOS=windows go vet ./...; GOOS=linux/windows go build: ok
Run (wsl-run, magpie-desktop, Ubuntu 24.04): the TestDshLinux tests
-count=3: ok. The first WSL run caught a stale scan of a folder made
again within the same mtime tick; the 1s rule fixes it.
Broken by hand (mote), each red, then restored:
- installed() without onLinux: all three new tests red ("the AUR's app:
app false, CLI missing true", "the AUR's entry, its program on PATH,
not found", the profile = profiles/web, want profiles/desktop);
- no scheme check: "another app's entry taken for DeepSeek Harness's";
- no Hidden check: "an entry the user hid still counts".
Not tried: a real AUR, .deb or AppImage install of DeepSeek Harness
Desktop (the fixtures are the AUR PKGBUILD's entry and layout as the
reporter gave them, and AppImageLauncher's entry shape); the GUI suite
(no GUI file changed). The full suite runs after the push.
Reported-by: xianhongtao (Discord)
|
||
|
|
49f207c784 |
agents: DS Bot, wired in the DSH home it runs on
DS Bot (github.com/Fei2411/DS-Bot, Apache-2.0, dsbot.app) is a DSH plugin and an Electron app built on it. The app ships its own DSH (0.2.2-rc.1 in 0.3.0) and runs it with DSH_HOME at a data folder of its own, booting the profile ds-bot, and never reads ~/.dsh: magpie's dsh row didn't reach it. It is a row of its own now, ds-bot (dsbot.go), wired by dsh's code on its folder (dshOn, split out of dshAt): magpie's routes and start in profiles/ds-bot/cordis.patch.yml, the key in that folder's .env and .credentials.yaml. The folder is $DS_BOT_HOME, else locations.json's dataDir in the app's userData ($DS_BOT_SHELL_DATA, else <config>/DS Bot, or the legacy DeepSeek Bot), else ~/.ds-bot, as the app's first-run.mjs and legacy.mjs choose it. A locations.json that can't be read or names no folder is unknown: nothing is read or written. The routes there list the models shown for DS Bot on the Agents page (dshListFor), and the serving round fills a profile the app makes there as it does ~/.dsh's (dshHomesRounds). Found by DS Bot.app (io.github.fei2411.dsbot) or its Windows per-user install (guid from its electron-builder.yml). Three notices, translated into zh, zh-TW, ja and de. DS_BOT_HOME and DS_BOT_SHELL_DATA are in agentenv's sandbox list. Run: - go test ./internal/agent/ ./internal/agentenv/ ./internal/gui/ ./internal/cli/ ./internal/appdir/ on mote: ok but internal/gui TestMainWindowCorners/macOS_26_SDK, red on mote's macOS 27 whatever the change (#3949). - go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... on mote: ok. gofmt -l: clean. - node --test i18n-keys, i18n-en-no-cjk, agent-notice-lang (chromium), and agent-notice-lang in webkit: all pass but i18n-keys "a plugin's words are its own", red on main for three plugin words (#5332, #5426, #5482). - Real DS Bot 0.3.0 (DS-Bot-0.3.0-mac-arm64.zip) on mote, all in a sandbox HOME with DS_BOT_HOME, DS_BOT_SHELL_DATA and DS_BOT_WORKSPACE under it: a magpie built from this tree (nogui), MAGPIE_ADDR 127.0.0.1:3572, a fake OpenAI upstream on 3571 added as a provider. `magpie ds-bot magpie/fake/m1` before the app was ever opened wrote the profile; the app's first start kept it (agent-default-model still magpie's) and added its own files beside it. Its Chief Bot offered "Magpie: m1 · fake, m2 · fake"; picking m1 and sending "ping" over CDP went through magpie to the fake (POST /v1/chat/completions model m1, stream) and "pong from fake" showed. `magpie ds-bot default` then took every magpie entry out and the .env with it. Only my own pids (app, serve, fake) were stopped. Broken by hand, each red, then put back: - dsbot's desktopApps entry out: TestDsBotWired (not detected). - dshListFor always "dsh": TestDsBotOwnModels. - dshHomesRounds without DS Bot's home: TestDsBotProfileMadeWhileServing. - a bad locations.json taken for ~/.ds-bot: TestDsBotDataFolder. On the old code the tests don't build (no ds-bot row at all). Not tried: the Windows app (install path and registry guid read from its electron-builder.yml, not from an installed copy); Linux (its AppImage and deb aren't looked for; the data folder its first start makes finds it); a real vendor behind magpie; a default Bot model set in DS Bot (the notice says it wins, per its models.js). Not done: usage gives DS Bot no User-Agent of its own (its DSH's requests likely count as dsh's), and the Sessions page doesn't read its data folder's sessions. Reported-by: rnhung |
||
|
|
225d521cde |
minimax: Desktop keeps its own model pick, so magpie says to pick once in its menu
教父 on Discord (MiniMax Code 3.1.10, magpie v0.1.2629 and v0.1.2679):
MiniMax Code turned on in magpie's Agents page with a model picked, and
MiniMax Code went on with the user's own MiniMax-M3.1-Flash; Sessions
showed nothing.
3.1.10 is MiniMax Code Desktop (Electron, MiniMax Code.app). It runs the
mcode runtime on the same ~/.minimax/config.yaml magpie writes, and that
write is right: defaultModel is custom_provider:magpie/<model>. But
Desktop's window keeps the global model last picked in it in Chromium
localStorage ("mavis:model-selection", read from 3.1.10's renderer chunk
56321) and, when the model list loads, marks that one selected while it
is still in the runtime's list, ignoring the runtime's own default.
Only a session.model_updated from the runtime's own select API moves it,
and the runtime reads config.yaml at start-up and doesn't watch it. A
release build has no local HTTP API (local-runtime's server listens only
with the diagnostic sidecar env set), so magpie can't move the pick, and
writing the app's leveldb would risk the user's app data. Nothing changed
here between v0.1.2629 and main (only 35c47f762's dsh YAML speed-up).
What changed:
- desktopApps knows MiniMax Code Desktop: MiniMax Code.app with bundle id
com.minimax.agent.cn (filecdn.minimax.chat) or com.minimax.agent
(file.cdn.minimax.io), and on Windows electron-builder's per-user
default %LOCALAPPDATA%\Programs\MiniMax Code\MiniMax Code.exe. So its
version shows beside the CLI's, and ~/.minimax isn't a leftover there.
- With the app installed, MiniMax Code's notice says to restart the app
and pick a magpie model once in its model menu (under magpie); mcode
sessions still need a restart. Translated in zh, zh-TW, ja and de.
- agent-wiring.md says why.
Run (on mote) at the first base
|
||
|
|
7c712847b7 |
agent: Antigravity's desktop app is a row, wired through its gateway setting (ryougi_hachi on X)
Antigravity (Google's desktop app, 2.15 and later; not Antigravity IDE)
takes a gateway from ~/.antigravity/settings.json: Google's Antigravity
Enterprise Gateway, documented at
docs.cloud.google.com/gemini/enterprise/docs/ai-developer-tools/connect-enterprise-gateway.
magpie writes gateway {enabled, url: magpie's, apiKey: magpie-antigravity,
wireProtocol: openai} and models.defaultModelId, and takes out models.list
(it would narrow the picker). The user's gateway, default model and list
are stashed and put back on disconnect or when a model of their own is
picked; caCertPath and the rest of the file are untouched. Sync keeps what
the user added to magpie's block, and so does a set again (a moved port,
Reconnect). Check speaks when admin_settings.json or AGY_LLM_GATEWAY_URL
wins over the file, and when the block's url or key is no longer magpie's
(wiringOff), so drift and a port move see it. AGY_LLM_GATEWAY_URL joins
agentenv.Vars, cleared in every sandbox. Found by its bundle
(com.google.antigravity, 2.15+) or the file its backend writes
(~/.gemini/antigravity/agyhub_summaries_proto.pb); ~/.antigravity alone is
the IDE's and agy's too. The notices are translated (zh, zh-TW, ja, de).
`magpie antigravity` now names the app; agy stays `magpie agy` /
`antigravity-cli`.
Run (worktree base
|
||
|
|
ffc18a850d |
agent: an app folder is listed and an Info.plist read again only when it changed
The Agents page asks every desktop app whether it is installed, and its version, on each poll. Each ask listed /Applications and ~/Applications whole (os.ReadDir, for the one-level-down folders of #2325) and read every candidate bundle's Info.plist. With real accounts, 40 window polls spent 38.6 MB of allocations in Agent.Detected, 14.5 MB of it ReadDir. folderSubs keeps a folder's non-bundle subfolders while its modification time stays (adding, removing or renaming an entry changes it), and bundleInfo keeps what an Info.plist said while its size and modification time stay. A time under 2s old is never trusted, as git treats a racily clean index. macBundle and desktopApp.version read through bundleInfo; what each reports is unchanged. Run on mote (macOS), at this tree: - gofmt clean; go vet ./internal/agent for darwin, windows and linux ok. - TestAppFoldersReadAgainOnlyWhenChanged alone 3/3 ok. - Broken by hand: never trusting the kept list and plist -> "an unchanged app folder and Info.plist cost 1268 allocations a look"; trusting them whatever changed -> "Moved.app in a folder added since isn't found" and "Kept.app's Info.plist says another id now". - go test ./internal/agent ./internal/tui ./internal/cli: ok. - go test ./internal/gui (with the next commit's providers.go too): red only on TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and TestMainWindowCorners (#3949), as before. - Real-account sandbox, 40 window polls against v0.1.2504's tree: total allocations 509.9 -> 427.6 MB, Agent.Detected 38.6 -> 21.5 MB, os.ReadDir 14.5 -> 4.0 MB; /api/state and drift output byte-identical. phys_footprint_peak 139 MB (136 before; within run noise). Not run: the whole ./... suite; the Linux and Windows app paths (they don't reach these readers). |
||
|
|
41357f3935 |
codex: the ChatGPT desktop app on Linux is found, and a switch reaches it
pota on Discord: magpie switches the ChatGPT (Codex) desktop app's account on macOS and Windows but not on Linux. OpenAI ships the app for Linux since 08-11 (preview; learn.chatgpt.com/docs/linux/linux-app): a deb, an rpm and an Arch package, which install /usr/lib/chatgpt. Its app-server is /usr/lib/chatgpt/resources/codex ... app-server, run with the user's HOME and no CODEX_HOME, so it reads ~/.codex like the CLI. isCodexAppServer took only .app/Contents/ and Windows paths, so on Linux nothing found the app: no "still signed in as" notice after a switch, no restart of its app-server, and no version on the Agents row. - provider: linuxCodexApp takes an absolute .../chatgpt/resources/codex as the app's own app-server (findCodexApp, CodexAppStale, the switch's restart all read it). - agent: restartOnLinux; codexAppOpen knows on Linux whether the app is open (any /usr/lib/chatgpt/ChatGPT process, not its codex alone or another program's ChatGPT). desktopApps["codex"].linux reads the version from resources/linux-package-metadata.json, HasApp/AppVersion see it, and codexReaders counts the bundled codex's --version as a reader of Codex's config. version() no longer stops at an empty store read before the other sources. Real run, WSL magpie-desktop (Ubuntu 24.04), OpenAI's chatgpt_amd64.deb 26.1027.30824 (bundled codex-cli 0.166.0-alpha.5.1) under Xvfb, sandbox HOME, fake unsigned JWT accounts alice/bob (no real credentials), magpie web on 127.0.0.1:3591: - POST /api/login/switch alice: 200, auth.json alice; /api/providers then says codexApp "bob@example.com" (the stale notice). - POST /api/codex/daemon/restart-app: 200 in ~3s; the old app-server ended (app log "Codex CLI process exited classifiedAsExpected=true code=0"), a new one started with the sandbox HOME, the notice cleared. - /api/agents/cli: "codex":{"app":"26.1027.30824"}. - The same run with linuxCodexApp reverted: no notice, restart-app 400, the app-server untouched (pota's case). Run at |
||
|
|
6ecc65b6db |
agent: the CodeBuddy IDE is CodeBuddy too, found with no CLI
bjzhangwn on X: magpie supported CodeBuddy only as its CLI, not the IDE. The CodeBuddy IDE (4.12.2, codebuddy.ai's CodeBuddy.app, com.tencent.codebuddy, and codebuddy.cn's CodeBuddy CN.app, com.tencent.codebuddycn) reads the file magpie already writes for the CLI: its genie extension's CustomModelsProductProvider loads ~/.codebuddy/models.json's "models" (a string id and url each) and "availableModels", and lists them in its own picker. So one row, renamed CodeBuddy, stands for both. desktopApps gets a "codebuddy" entry, with a "more" list for the second build's bundle id. A `sign` lists the row with only the IDE installed. That row shows the IDE's version, is never "CLI not found", and the CLI isn't offered for install. Tests: TestCodeBuddyIDEIsCodeBuddy uses the real Info.plist bytes of both builds, cut to their first keys. TestCodeBuddyIDEReadsMagpieModels reads the written models.json the way the IDE's loader does. Run (mote, macOS 27): - gofmt -l: clean. - GOOS=linux and GOOS=windows go vet of ./internal/agent/... and ./internal/sessions/..., plus GOOS=windows -tags nogui ./internal/gui: ok. - go test -timeout 45m -count=1 ./... at |
||
|
|
2f00fa6420 |
agent: PenguinHarness's desktop app is detected without its CLI (rankyurky_80676)
rankyurky_80676 on Discord (macOS): PenguinHarness's desktop app
installed, and magpie didn't detect it. The app runs its own server on
the CLI's root, ~/.penguin/data, and needs no penguin command: it links
/usr/local/bin/penguin only if the user lets it (cli-install.ts). So
~/.penguin with no CLI was taken for an uninstall's leftover (cliHeld),
and an app never opened had no ~/.penguin at all.
Now "penguin" is in desktopApps, read from Prism-Shadow/penguin-harness
main (packages/desktop/electron-builder.yml, desktop 0.2.17): bundle id
com.prismshadow.penguinharness, PenguinHarness.app in /Applications or
~/Applications (or a folder one level down, or where Spotlight has it);
on Windows PenguinHarness\PenguinHarness.exe under
%LOCALAPPDATA%\Programs, or the folder registered under
8bb9acb7-2bdc-596b-9669-7b014ab1c47f: electron-builder's UUID v5 of the
appId, the same derivation giving dsh's known 1bf39983-… from
com.deepseek.dsh. penguin.go's sign is HasApp, as dsh's is, so the app
alone is detected before its first start, its version shown and no CLI
install offered. Connect then writes default_project's
.project_config.toml, which the app's server adopts without overwriting
(project-service.ts provisionInitialProject; app-identity.ts: the
release profile shares the CLI's root). Linux's deb links
/usr/bin/penguin, found as the CLI; an AppImage is anywhere and is not
looked for. A WSL twin never has the app.
Tests: TestPenguinDesktopAppDetected (app only, opened, another bundle
id, ~/Applications, the Windows exe, WSL), TestPenguinDesktopAppRegistered,
TestPenguinDesktopOnlyConnects. The Agents page is unchanged (it already
shows an app's version for dsh), so no GUI test.
Run at this head (rebased on origin/main
|
||
|
|
0c679c6404 |
agent: DeepSeek Hermes, dsh's web UI in a window, is found and wired as dsh
WuSix on Discord: magpie's Agents page didn't find the "DeepSeek Hermes"
desktop app, so its models were added in the app by hand.
DeepSeek Hermes is motongv/deepseek-hermes-desktop 1.0.0, an Electron
window around `dsh web` (not Nous Research's Hermes Agent). Read from its
real release files: the macOS zip's Info.plist (bundle id
com.deepseek.hermes.desktop, 1.0.0) and the Windows NSIS installer's
header (InstallLocation under HKCU/HKLM Software\df9f5892-ad1c-5623-a260-
30fb0acc7e55, default %LOCALAPPDATA%\Programs\DeepSeek Hermes\DeepSeek
Hermes.exe). Both bundle @deepseek-ai/dsh 0.1.0-rc.6, which boots the
`web` profile in ~/.dsh (DSH_HOME). There is no Linux build.
Before: with no dsh CLI the dsh row was 未找到 CLI with its settings
hidden, an unopened app wasn't found at all, and a pick would have made
DeepSeek Harness Desktop's profiles/desktop, which Hermes never reads.
Now:
- desktopapp: installed() also takes the Windows exe under the app folders
or the registered InstallLocation; HasApp uses it.
- dsh: DeepSeek Hermes counts as dsh's app. With it (and no Harness
Desktop) magpie writes profiles/web/cordis.patch.yml and the key in .env
only. rc.6's dsh-credentials-local reads only the flat store and refuses
to start on the version 1 .credentials.yaml magpie writes for Harness
Desktop ("the value for "version" ... must be a string"), so that store is
not written, and one magpie wrote before (nothing but its key) is
removed. A store with the user's own keys is left alone. With Harness
Desktop also installed, its profile and store are used as before.
- noticeDsh6 for an unopened Hermes, in zh, zh-TW, ja and de.
Run:
- Real rc.6 in a sandbox HOME (npm --before=2026-08-17), never the live ~/.dsh:
- `dsh -p headless` with magpie's route and the key in .env only against
a fake gateway: POST /v1/chat/completions, model deepseek/deepseek-chat,
Bearer key, answered.
- With magpie's v1 store: `dsh web` exits on the error above; without it,
it boots.
- A web profile holding only magpie's cordis.patch.yml, `dsh web
--dump-config`: rc=0, dsh added package.json, cordis.yml and
pnpm-workspace.yaml, the patch was byte-identical after, and the
composed config has the magpie route, agent-default-model and
web-search-deepseek.
- New tests TestDshHermesFound/Windows/Wired. On the old code (
|
||
|
|
e26d26ab5b |
agent: a Mac app in a folder of /Applications' own, or wherever Spotlight has its bundle id, is found: DeepSeek Harness Desktop in /Applications/AI no longer reads as 未找到 CLI (#2325, sungoku)
sungoku (macOS 15.8.1, magpie 0.1.1253) keeps DeepSeek Harness.app in
/Applications/AI and has no dsh CLI. magpie looked for the bundle in
/Applications and ~/Applications only, so the app wasn't found and dsh's
row said 未找到 CLI (the same gone rule as cjyrainbow's Windows case,
#2177).
macBundles is now the one place a Mac app's bundle is looked for, by
AppVersion/HasApp (dsh, Codex) and macBundle (WorkBuddy): its names in
each app folder, then in each folder one level down that is no bundle
itself (an .app inside another app's bundle doesn't count), then wherever
Spotlight has its bundle id (`mdfind kMDItemCFBundleIdentifier == '<id>'`,
as zedAppPath already finds Zed.app). The bundle's Info.plist must still
carry the app's id. Spotlight's answer is kept 5 minutes per id, because
the Agents page asks on every read and a missing app would otherwise run
mdfind each time. It is never asked in a test binary testenv isolated
(MAGPIE_TEST_SANDBOX), so no package's tests see the developer's own apps
(#1823). The agent TestMain stubs it too. appHere (Claude.app, OpenCode,
Goose: whether their folders are gone) also looks one folder down,
through the same inAppFolders.
Not changed: pencil, t3code, reasonix, claudescience and cursorlocal read
macAppFolders with their own names and still look only at the top level.
Test: TestDshDesktopAppInASubfolder covers no app; an app inside
Other.app (not taken); another bundle id in /Applications/AI (not taken);
sungoku's /Applications/AI/DeepSeek Harness.app (found, 0.2.0-rc.2); and
DSH.app on another folder, found only once Spotlight names it. Broken by
hand three ways, red each time: no subfolder scan, no Spotlight, bundles
inside bundles allowed.
Real mdfind query tried read-only on this Mac: com.apple.Safari ->
/Applications/Safari.app, com.openai.codex -> /Applications/ChatGPT.app.
DeepSeek Harness isn't installed here, so not tried with the real app.
Run in this worktree (origin/main
|
||
|
|
2494517696 |
agent: DeepSeek Harness Desktop installed to a folder of the user's own on Windows is found when it was installed for all users too, or registered only in its Uninstall entry (#2325, cjyrainbow, Andrew0767)
On top of #2279's commit (041e99063), which reads the folder DeepSeek
Harness Desktop's installer registers under HKCU\Software\<guid>.
cjyrainbow installed it to D:\tools\dsh; magpie 0.1.1248 showed
"未找到 CLI" with no switch. Since
|
||
|
|
2a1637f4f6 |
agent: DeepSeek Harness Desktop is wired when installed but never opened, and found in any folder it was installed to on Windows (#2279, liangjinyuan-sihan)
DeepSeek Harness Desktop already reads magpie's route: its lib/main.js
(0.2.0-rc.2, the latest on its update feed, read from download.deepseek.com's
dmg and Windows installer) resolves $DSH_HOME, else ~/.dsh, and runs on
profiles/desktop, so the CLI's wiring applies. Three gaps remained:
- Installed but never opened, there is no ~/.dsh: the row wasn't listed,
and connecting wrote the legacy config.yaml the app never reads. magpie
now writes profiles/desktop/cordis.patch.yml from dsh's own template
(PROFILE_PATCH_TEMPLATE) with its routes; the app's initProfile writes
only missing files, so its first start keeps them. The notice says it
starts on this when first opened (noticeDsh5, in all 5 languages).
Disconnect before that first start removes what magpie made, when
nothing else is there; afterwards only magpie's entries go.
- On Windows the installer lets the user pick the folder and registers it
under HKCU\Software\1bf39983-50d0-5fe0-9ef4-cece76f67c5e InstallLocation
(read from the NSIS script of dsh-latest-windows-x64.exe). magpie reads
that, so a custom folder is found, and the Uninstall entry's
DisplayVersion gives the version shown.
Tests: TestDshDesktopNeverOpened (pick on a never-opened app writes the
desktop profile, a user's key in .credentials.yaml and the user's own start
survive Disconnect, the app's first start is told apart),
TestDshDesktopRegisteredFolder (registry stubbed; exe must be there; WSL
twin has none).
Run on this tree, rebased onto
|
||
|
|
8820646f7c |
library, agent: the gone-agent tests pass on Windows, with or without the Codex app installed, and no package's tests read the machine's Store apps (#2254, ggbdpq)
ggbdpq found TestTargetsLeaveGoneAgentsOut and TestGoneAgentKeepsWhatItHas
(from
|
||
|
|
03eb0633af |
library: an agent not installed is on no row but those of what it still has (@jiahao_jayden on X)
Library → Skills showed a chip for WorkBuddy on every row though it
wasn't installed ("一排有点密恐了"). WorkBuddy has no CLI and no detect
rule, so it counted as installed whenever ~/.workbuddy (or its
models.json) existed; that folder stays after the app is trashed, and
magpie itself writes models.json, mcp.json and skills/ there.
- agent: on a Mac WorkBuddy and WorkBuddy AI are detected by their apps,
each by its own bundle id (com.tencent.workbuddy.mac,
com.workbuddy.workbuddy-ai) in /Applications or ~/Applications
(macBundle). Off a Mac the folder still counts, as before.
- library: an agent that isn't a target but still has skills, servers or
hooks magpie gave it is held (Target.Gone). A sync takes edits from its
copies and then only takes things out of it; Read lists it with
gone: true while it has any, and not once it has none.
- GUI: a gone agent's chip is only on the rows of what it has, lit; a
click takes it away. All, the How-per-agent sheet and the pickers leave
it out; By agent lists it as "Not installed here" with Turn all on off.
No layout change. New strings in zh, zh-TW, ja, de.
Run at this tree (macOS, sandbox HOME, Go caches pinned):
- gofmt -l: nothing. go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: clean. go build, GOOS=linux go build -tags
nogui, GOOS=windows go build: ok.
- go test -tags nogui -timeout 30m ./...: all ok (59 packages);
internal/gui rerun after the last string rename: ok.
- GUI: the 74 test files that open the Library, chromium and webkit:
563/563 each. library-gone-agents.test.cjs (new; 1100px and 390px, en,
zh, zh-TW, ja, de): 11/11 in both; i18n-keys.test.cjs: 3/3.
Broken by hand, each went red, then restored and green:
- old client.js: library-gone-agents fails "a chip for an agent not
installed on a row it has nothing on".
- workbuddyHere's Mac branch falling back to the folder:
TestWorkBuddyOnMacIsItsApp "no app, only the folders: WorkBuddy true,
WorkBuddy AI true".
- syncSkills' Gone guard off: TestGoneAgentListedToTakeOut "a sync gave
the gone hermes a skill again".
- held() returning nil: "hermes, holding a skill and a server, isn't
listed as gone".
- the gone sync steps skipped: "hermes, holding nothing, is still listed".
Not verified: the reporter's machine; WorkBuddy detection on Windows and
Linux (unchanged, still by folder); other agents detected by folder alone
(zcode, alma, grok-app, air, hanako, morph, grok) are unchanged. WorkBuddy
AI.app is installed on the owner's Mac without ~/.workbuddy-ai, so it now
shows as detected there.
|
||
|
|
55213c1b4d |
agent: the Windows Codex app's version comes from its main Store package only, and agent tests never read the machine's AppX registry (#1334)
Review follow-up to 46e4107 (AwadYoo). What: - storeAppVersion counts only the main package (empty resource id). The Windows box's AppX registry key keeps a resource package that Get-AppxPackage no longer lists (Clipchamp.Clipchamp_4.6.10420.0_neutral_split.scale-125_… beside the installed 4.7.10020.0_x64__…). A stale entry like that is no sign the app is installed, and a newer-numbered one would win "newest". - internal/agent's TestMain stubs windowsStorePackages, as it already does for nodeModulesOf and the other machine readers (#1823's rule): on a Windows box with the Codex app installed, tests read nothing of it. - the doc comment for storeAppVersion had a blank line in the middle of it. It is joined, and windowsStorePackages has its own comment. Run (go1.26.8, sandbox HOME, private GOCACHE): - Windows box (Win 11 x64): installed the real Store app (winget 9PLM9XGG6VKS, "ChatGPT", OpenAI.Codex_26.1007.2314.0_x64__2p2nqsd0c76g0). A probe built from origin/main printed AppVersion="" HasApp=false; built from this series: AppVersion="26.1007.2314.0" HasApp=true, and CLI() ok=true App="26.1007.2314.0" with no codex CLI on PATH. - break checks: the resource-id filter put back to len(fields) < 3 -> TestCodexWindowsStoreAppVersion FAIL `Codex Store app: "27.0.0.0"`; AppVersion without the Store read -> FAIL `Codex Store app: ""`. Restored: pass on darwin and on the Windows box (test binary built with GOOS=windows GOARCH=amd64, run there with the real app installed). |
||
|
|
4697ff2324 |
agent: the Agents page shows the Windows Codex app's version, read from the Microsoft Store package registered for the user (#1334, laacmilan)
On Windows the Codex app is the Store package OpenAI.Codex
(C:\Program Files\WindowsApps\OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0
in the report), which magpie didn't read: only %LOCALAPPDATA%\Programs was
looked in. The version now comes from the package full names under the
current user's AppX repository key (HKCU\...\AppModel\Repository\Packages),
which needs no access to the protected WindowsApps folder and starts no
PowerShell. The newest OpenAI.Codex package with publisher id 2p2nqsd0c76g0
wins.
Test: TestCodexWindowsStoreAppVersion (picks the newest, skips a bad
version and another publisher, and a WSL twin shows none).
[Message rewritten at review to say what and why; the code is AwadYoo's. The
conflict with
|
||
|
|
2221b63f93 |
agent, provider: tests no longer read the machine's /Applications or Program Files, so a Mac with DeepSeek Harness.app installed keeps TestAsideOfflineDisconnectRestoresWithoutDaemon green (#1823)
What: every place magpie looks for installed apps outside the home folder now goes through proc.SystemDirs, which in a test binary testenv isolated puts the path under the test's home (as it already does for Homebrew's bin, #1525): - agent: a new macAppFolders(home) (/Applications via SystemDirs, plus ~/Applications) is used by appFolders (desktop apps: Codex, dsh), pencilApp, t3App and reasonixDetected; - cursorLocalRoots: macOS through macAppFolders, Windows' ProgramFiles and Linux's /opt, /usr/share, /usr/lib through SystemDirs; - zedAppPath's /Applications/Zed*.app, npmGlobalPrefix's ProgramFiles npm fallback, and provider's /Applications/ZCode.app builtin config. Production behaviour is unchanged: SystemDirs returns paths as they are outside a sandboxed test. Why: HasApp/AppVersion read the real /Applications, so on a Mac with DeepSeek Harness.app the dsh fixture's CLI was never "missing" and the test failed every time; CI has no such app, so nobody else saw it. The same shape was in five other readers. Test: TestAppFoldersStayInTheTestHome checks every app folder lies under testenv's home (all OSes), and on macOS that an app installed in the sandbox's /Applications is the one found. Run (go1.26.8, sandbox HOME, private GOCACHE): - repro on old code: appFolders pointed at a temp folder holding a fake "DeepSeek Harness.app/Contents/Info.plist" (com.deepseek.dsh) -> TestAsideOfflineDisconnectRestoresWithoutDaemon FAIL "native fixture must report missing CLI". - break check: macAppFolders put back to the literal /Applications -> TestAppFoldersStayInTheTestHome FAIL (appFolders, macAppFolders, cursorLocalRoots look in /Applications; sandbox app not found). Restored: pass. - gofmt -l clean; go vet ./... (darwin), GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./...: clean. - go test -tags nogui ./internal/agent ./internal/proc ./internal/provider: ok. - -race -count=5 on the touched agent tests: ok. Not run: the full go test ./...; Windows and Linux test runs (vet only); reasonix's Windows registry lookup and Zed's mdfind fallback still ask the machine (not folder paths) and are left as they are. Reported-by: mdwsk88 |
||
|
|
ee3f83b59d |
agents: DeepSeek Harness Desktop installed is no missing dsh CLI — its version shows instead of 未找到 CLI (star on Discord)
star on Discord: "DeepSeek Harness 就是现在已经有桌面版了,但是他还是非要找CLI". With DeepSeek Harness Desktop in use and no dsh on PATH, the Agents page said 未找到 CLI and Install another agent offered npm's dsh: CLIMissing (#843) took ~/.dsh without a CLI for an uninstall. The desktop app (DeepSeek Harness.app, com.deepseek.dsh, 0.2.0-rc.2 from download.deepseek.com) keeps the same ~/.dsh — its own profile, profiles/desktop/cordis.patch.yml, and .credentials.yaml — and needs no CLI; its terminal command (Manage dsh Command…) is optional. - desktopapp.go: dsh's app is known by its bundle id on macOS and by %LOCALAPPDATA%\Programs\DeepSeek Harness\DeepSeek Harness.exe on Windows (electron-builder per-user NSIS, productName DeepSeek Harness, getWindowsInstallationDirName); HasApp says either is installed. - install.go: CLIMissing is false with the agent's desktop app installed, so the GUI row, Install another agent and /api all follow; the app's version shows through the existing CLI().App path. - dsh.go: the restart notice also sees DeepSeek Harness.app running. The red "已不经过 magpie" line in the report is a separate dshCheck finding, not caused by the missing CLI: a desktop-only ~/.dsh shaped from the app's real new-profile template wires cleanly (Check "", no Drift; TestDshDesktopOnlyWired). The reporter's exact detail is cut off in the screenshot and is not reproduced. Run: TestDshDesktopAppIsNoMissingCLI fails on the old code ("with the desktop app: missing true, offered true"; with the Windows path removed, "with the Windows app: missing true, offered true"), passes with the fix. go test -tags nogui ./internal/agent ./internal/gui under a temp HOME with pinned caches: ok. gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows on both packages; go build darwin, GOOS=linux -tags nogui, GOOS=windows: ok. Not tried: the real desktop app running live (not installed here; its userData isn't redirected by a sandbox HOME), a real Windows install. |
||
|
|
ae24bcfcfb |
agent, gui: Codex's row on the Agents page shows its desktop app's version beside its CLI's ("CLI 0.130.0", "App 26.930.31730"), and the app's alone where no CLI is on PATH (#1334, laacmilan)
The app's version is read from /Applications or ~/Applications
ChatGPT.app (or Codex.app) Contents/Info.plist, taken only when its bundle
id is com.openai.codex, so the ChatGPT chat app (com.openai.chat) isn't
taken for it. macOS only: the Windows Store package isn't read yet. The
app chip's tooltip says it reads the same settings as the CLI, so
connecting Codex connects both. At narrow widths the chip ellipsizes, and
below 250px it gives way so the name keeps its room.
Verified: TestCodexAppVersion fails without the CLI() change ("the app
alone, no CLI"); agent-app-version.test.cjs fails 12/16 without the app.js
change and passes 16/16 with it, Chromium and WebKit, en/zh/ja/de, at 980,
560 and 440px. agent-cli-missing, agent-connect, agent-field-names,
agent-layout, agent-update-all, cli-update, click-scroll, gui-ja, gui-de,
i18n-keys pass in both engines. internal/agent passes in Linux Docker
(non-root); full ./... on macOS; vet darwin/linux/windows. Read
26.930.51102 from the real /Applications/ChatGPT.app on this Mac. Not
tried on the reporter's machine.
|