yetone
6635dec7cd
agents: Show settings file in an agent row's menu (InkCoalW on X)
...
InkCoalW asked on X for agent config files (settings.json, config.yaml
and the like) to be managed as CC Switch does it. magpie already sets
what is managed in those files: providers, models, effort, MCP servers,
skills, hooks and the agent's own options. So the rest of the file gets
an entry point, not an editor. An agent row's menu has "Show settings
file", which shows the file magpie writes (agent.Path) in the file
manager. A file not written yet shows its folder. An in-app raw editor
would race magpie's own writes and the agent's live sessions, so there is
none.
POST /api/agents/reveal takes only the agent's id and looks the path up
in agent.Detected(). A path or an unknown id shows nothing. The page
served to a browser (magpie web) is refused, and the item isn't drawn
there or in the tray panel.
app.js and the core scripts' budgets are raised by 182: one item, packed
to the shortest form. openAgentMenu draws every agent's menu, so there is
no page to move it to. The route is named in the CLI parity list as the
window's own.
Run, on mote via mote-run, at this head rebased on eb1da1572 :
- go test -tags nogui -run 'TestAgentReveal|TestAgentOpen|TestCoreScriptBudget|TestEveryRouteIsNamedForTheCLI' ./internal/gui: ok
- the internal/gui package in full: the only reds are TestBuiltinsTranslated
(#7257 ) and TestSettingsSaveKeepsWhatItDoesNotSend (#7240 ), which fail
the same on a fresh origin/main eb1da1572 copy.
- go vet with GOOS=darwin, linux and windows on ./internal/gui: ok.
gofmt: empty.
- agent-open-terminal.test.cjs: 24/24 in Chromium and WebKit, in five
languages, at 980 and 420 wide. On the old app.js it is 20 of 24 red.
- i18n-keys: ok.
Broken by hand:
- the route at the old sessions.go: TestAgentRevealShowsOnlyItsFile red
- the isWeb check removed: red ("the browser's page showed a file: 204")
Not tried: a real Finder, Explorer or Linux file-manager reveal, and
Windows or Linux runs.
2026-11-20 15:53:23 +08:00
..
2026-11-09 18:19:02 +08:00
2026-11-01 07:39:08 +08:00
2026-10-12 20:40:22 +08:00
2026-11-14 14:02:49 +08:00
2026-10-12 20:40:22 +08:00
2026-10-31 11:03:35 +08:00
2026-10-12 20:40:22 +08:00
2026-10-31 18:18:37 +08:00
2026-10-12 20:40:22 +08:00
2026-11-04 06:39:37 +08:00
2026-11-14 18:40:09 +08:00
2026-10-12 20:40:22 +08:00
2026-11-11 04:07:09 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-11-01 14:59:44 +08:00
2026-11-19 10:38:25 +08:00
2026-10-12 20:40:22 +08:00
2026-11-10 13:46:13 +08:00
2026-11-10 13:46:13 +08:00
2026-11-08 19:09:21 +08:00
2026-10-20 02:29:39 +08:00
2026-11-19 12:20:02 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 16:19:13 +08:00
2026-10-24 14:52:13 +08:00
2026-10-27 18:22:01 +08:00
2026-11-15 14:30:16 +08:00
2026-11-13 16:02:12 +08:00
2026-11-13 16:02:12 +08:00
2026-11-06 17:31:04 +08:00
2026-11-06 17:31:04 +08:00
2026-11-06 17:31:04 +08:00
2026-11-11 16:13:19 +08:00
2026-10-27 12:08:16 +08:00
2026-10-17 20:52:13 +08:00
2026-11-11 12:00:19 +08:00
2026-10-14 08:32:41 +08:00
2026-11-11 12:00:19 +08:00
2026-11-11 12:00:19 +08:00
2026-10-15 03:34:59 +08:00
2026-10-13 05:34:13 +08:00
2026-11-07 00:42:21 +08:00
2026-11-15 02:31:56 +08:00
2026-11-15 02:31:56 +08:00
2026-11-15 02:31:56 +08:00
2026-10-29 05:19:28 +08:00
2026-11-12 17:47:11 +08:00
2026-11-01 05:39:02 +08:00
2026-10-30 14:33:01 +08:00
2026-11-15 03:50:46 +08:00
2026-11-12 01:01:32 +08:00
2026-11-19 02:31:18 +08:00
2026-10-13 15:25:06 +08:00
2026-10-24 21:33:06 +08:00
2026-11-11 12:00:19 +08:00
2026-11-10 08:38:12 +08:00
2026-11-19 17:34:30 +08:00
2026-11-19 17:34:30 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-11-06 10:44:24 +08:00
2026-10-12 20:40:22 +08:00
2026-11-10 17:56:42 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 18:18:02 +08:00
2026-11-10 18:48:13 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 13:10:30 +08:00
2026-10-31 14:45:22 +08:00
2026-11-09 22:33:31 +08:00
2026-11-18 23:06:38 +08:00
2026-11-19 10:38:25 +08:00
2026-11-11 12:00:19 +08:00
2026-10-17 12:04:53 +08:00
2026-11-11 12:00:19 +08:00
2026-11-10 23:05:47 +08:00
2026-11-17 17:33:23 +08:00
2026-11-10 23:05:47 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 16:31:24 +08:00
2026-11-20 11:39:44 +08:00
2026-11-14 16:34:10 +08:00
2026-11-14 16:34:10 +08:00
2026-11-20 14:59:04 +08:00
2026-10-29 15:52:42 +08:00
2026-10-31 02:49:08 +08:00
2026-11-10 10:23:53 +08:00
2026-11-11 17:01:36 +08:00
2026-11-20 12:06:44 +08:00
2026-11-20 12:06:44 +08:00
2026-11-20 12:06:44 +08:00
2026-11-20 05:05:17 +08:00
2026-11-20 05:46:18 +08:00
2026-11-20 05:46:18 +08:00
2026-10-25 19:34:55 +08:00
2026-10-23 01:58:00 +08:00
2026-11-20 14:59:04 +08:00
2026-10-31 14:45:22 +08:00
2026-10-31 14:45:22 +08:00
2026-11-19 10:38:25 +08:00
2026-11-19 17:34:30 +08:00
2026-10-24 02:48:50 +08:00
2026-11-05 11:05:38 +08:00
2026-11-14 14:02:49 +08:00
2026-10-15 23:08:03 +08:00
2026-11-20 12:03:55 +08:00
2026-11-12 23:01:29 +08:00
2026-11-11 11:07:57 +08:00
2026-11-13 16:10:47 +08:00
2026-10-31 15:04:44 +08:00
2026-11-14 14:02:49 +08:00
2026-10-13 18:16:03 +08:00
2026-10-12 20:40:22 +08:00
2026-10-24 05:31:59 +08:00
2026-11-13 16:10:47 +08:00
2026-11-10 18:57:16 +08:00
2026-11-14 14:02:49 +08:00
2026-11-10 14:27:21 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 05:43:48 +08:00
2026-10-27 02:26:27 +08:00
2026-10-27 10:01:46 +08:00
2026-10-12 20:40:22 +08:00
2026-11-19 10:38:25 +08:00
2026-10-12 20:40:22 +08:00
2026-10-25 13:19:52 +08:00
2026-10-15 22:36:59 +08:00
2026-10-31 16:46:14 +08:00
2026-10-15 22:36:59 +08:00
2026-10-13 18:01:20 +08:00
2026-11-15 14:52:48 +08:00
2026-10-28 09:29:44 +08:00
2026-10-31 18:18:37 +08:00
2026-11-02 18:37:25 +08:00
2026-10-31 00:53:27 +08:00
2026-10-14 16:40:24 +08:00
2026-10-30 04:48:17 +08:00
2026-11-08 18:37:41 +08:00
2026-10-12 20:40:22 +08:00
2026-11-13 16:39:09 +08:00
2026-11-19 17:34:30 +08:00
2026-10-15 23:08:05 +08:00
2026-11-10 18:58:03 +08:00
2026-11-19 17:34:30 +08:00
2026-11-02 21:41:56 +08:00
2026-10-31 04:21:21 +08:00
2026-11-17 15:39:12 +08:00
2026-10-21 19:00:33 +08:00
2026-10-12 20:40:22 +08:00
2026-11-07 17:44:31 +08:00
2026-11-11 03:54:21 +08:00
2026-11-01 21:19:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-14 15:02:15 +08:00
2026-10-14 15:02:15 +08:00
2026-11-01 04:51:55 +08:00
2026-11-07 06:39:39 +08:00
2026-10-12 22:42:46 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-10-13 14:41:10 +08:00
2026-11-15 04:52:55 +08:00
2026-10-12 20:40:22 +08:00
2026-10-30 14:45:56 +08:00
2026-11-07 21:21:48 +08:00
2026-11-10 16:47:33 +08:00
2026-10-12 20:40:22 +08:00
2026-11-19 13:04:38 +08:00
2026-11-19 13:04:38 +08:00
2026-11-11 13:01:11 +08:00
2026-11-11 13:01:11 +08:00
2026-11-08 03:13:15 +08:00
2026-11-04 23:55:14 +08:00
2026-11-08 03:13:15 +08:00
2026-11-03 11:16:02 +08:00
2026-11-12 09:46:34 +08:00
2026-11-04 16:25:02 +08:00
2026-11-19 10:38:25 +08:00
2026-11-10 16:28:04 +08:00
2026-11-17 17:33:23 +08:00
2026-10-29 23:56:05 +08:00
2026-10-13 13:02:09 +08:00
2026-11-17 17:33:23 +08:00
2026-11-17 17:33:23 +08:00
2026-11-10 11:17:07 +08:00
2026-11-01 15:57:43 +08:00
2026-11-20 15:53:23 +08:00
2026-11-18 23:06:38 +08:00
2026-11-19 13:04:38 +08:00
2026-11-18 23:06:38 +08:00
2026-11-18 23:06:38 +08:00
2026-10-12 20:40:22 +08:00
2026-10-12 20:40:22 +08:00
2026-11-19 13:04:38 +08:00
2026-11-12 21:16:10 +08:00
2026-10-12 20:40:22 +08:00
2026-11-18 20:22:30 +08:00
2026-11-03 15:30:44 +08:00
2026-11-03 15:30:44 +08:00
2026-11-15 17:16:57 +08:00
2026-11-11 16:13:19 +08:00
2026-11-11 16:13:19 +08:00
2026-11-11 16:13:19 +08:00
2026-11-11 12:00:19 +08:00
2026-11-04 06:39:37 +08:00
2026-11-19 00:44:40 +08:00
2026-11-19 00:44:40 +08:00
2026-11-19 00:44:40 +08:00
2026-10-26 22:22:27 +08:00
2026-10-14 13:36:03 +08:00
2026-11-10 23:05:47 +08:00
2026-10-29 22:16:56 +08:00
2026-11-13 12:29:04 +08:00
2026-11-13 12:29:04 +08:00
2026-11-05 12:52:46 +08:00
2026-11-05 12:52:46 +08:00
2026-11-09 22:33:31 +08:00
2026-11-18 21:44:37 +08:00
2026-10-15 23:08:03 +08:00
2026-11-15 13:10:18 +08:00
2026-11-19 10:26:23 +08:00
2026-11-19 10:26:23 +08:00
2026-11-11 13:01:11 +08:00
2026-11-11 13:01:11 +08:00
2026-10-12 20:40:22 +08:00
2026-10-31 17:28:37 +08:00
2026-11-11 13:01:11 +08:00
2026-10-16 20:11:34 +08:00
2026-11-13 22:46:00 +08:00
2026-10-14 15:26:28 +08:00
2026-10-31 14:45:22 +08:00
2026-11-02 05:38:10 +08:00
2026-11-02 05:38:10 +08:00
2026-10-27 18:58:16 +08:00
2026-11-19 13:04:38 +08:00
2026-11-13 21:09:44 +08:00
2026-11-17 14:08:48 +08:00
2026-10-12 22:55:22 +08:00