yetone
fa5e86cf2b
agents: Kimi Code and Kimi Code Desktop requests show their own name and icon, not the raw id and the cube (jiabubu)
...
jiabubu on Discord (magpie 0.1.2245, Windows, Kimi Code 2.4.1, Kimi Code
Desktop 1.2.1.0): the Routing page's request list drew Kimi Code's
requests as the grey cube and "kimi-code-cli", and Kimi Code Desktop's as
the cube and "kimi-code-desktop".
The request list, Usage and Sessions already take a client's name and
icon from one table, /api/state's clients (agent.Clients). The drift was
in usage.AgentOf: Kimi Code 2.x sends "kimi-code-cli/…", which matched
neither the kimi agent's "kimicli" prefix nor its "kimi-code" alias, and
Kimi Code Desktop ("kimi-code-desktop/…", its bundle's clientName) had
no entry at all, so both kept their raw product names.
- kimi's UA list takes kimi-code-cli.
- Kimi Code Desktop is a client of its own (agents.go's others). It runs
Kimi Code's engine on ~/.kimi-code, so it is set up through Kimi
Code's row. Its icon is the app's own: the 128px entry of build/icon.ico
in KimiCode-1.2.1-win-x64.exe, the installer winget's
MoonshotAI.KimiCodeDesktop 1.2.1 points to on code.kimi.com (sha256
75111cb6…c312, as the manifest says). Nothing was drawn by hand.
- app.js's pngIcons names it (comment shortened, app.js 5 bytes smaller,
budget untouched); app.css's tile rule names it, as icon-tile measures
it solid to its edges.
- Old records re-resolve through AgentOf, so earlier kimi-code-cli
requests read as Kimi Code too.
Guard: TestEveryClientHasNameAndIcon checks that every client has a
name and an icon file app.js's icon() really loads (a PNG only if
pngIcons names it), and that the ids the gateway records by more than a
User-Agent (claude-desktop, claude-science, cursor-local, codex, magpie)
and kimi / kimi-code-desktop are all clients. The cube is allowed only
for the six clients with no logo yet (ante, pencil, openpencil, newmax,
kirocrew, raft), filed as #4487 . routing-client-icons.test.cjs draws the
request list from a history fixture and checks names, data-icon, and that
the desktop PNG loads.
Run (mote unless said):
- Red on the old code: TestAgentOf (got "kimi-code-cli" want "kimi"),
TestEveryClientHasNameAndIcon (kimi-code-desktop not among the
clients); routing-client-icons in Chromium on the old app.js
(0/2, the desktop row is the cube).
- Broken by hand: pngIcons without the entry makes the guard fail ("a PNG
app.js's pngIcons doesn't name, so it is drawn as the cube").
- go test ./internal/agent ./internal/usage ./internal/usageapi: ok.
./internal/gui: ok except the ten real-window AppKit tests killed at
their deadline on mote (#4125 , #2645 ). ok with those skipped, after
the rebase.
- go vet (darwin), GOOS=linux -tags nogui and GOOS=windows vet of
internal/agent and internal/gui: ok. gofmt -l: nothing.
- routing-client-icons: Chromium 2/2 on mote, WebKit 2/2 on Linux
(wsl-run; WebKit launch hangs on mote, #4125 ).
- routing-*, i18n-keys, icon-tile, mono-icon-redraw and
models-add-and-icons in Chromium on mote and WebKit on Linux: i18n-keys
green. icon-tile caught the missing tile entry (fixed here). The other
Routing reds are still being compared against a fresh origin/main copy
in both engines (running at push time). Any that turns out to be ours
gets a follow-up commit.
Not tried: a real Kimi Code 2.4.1 or Kimi Code Desktop 1.2.1 against
magpie (the UA strings come from their bundles: appName kimi-code-cli,
clientName kimi-code-desktop). Only the Windows installer's icon was
read; the macOS app's wasn't compared. Full Go suite to follow the tag.
2026-10-31 04:12:17 +08:00
..
2026-10-27 01:38:45 +08:00
2026-10-30 14:25:38 +08:00
2026-10-29 09:24:31 +08:00
2026-10-31 04:12:17 +08:00
2026-10-27 07:30:16 +08:00
2026-10-27 09:24:43 +08:00
2026-10-25 16:49:29 +08:00
2026-10-25 16:49:29 +08:00
2026-10-16 00:46:28 +08:00
2026-10-30 14:25:38 +08:00
2026-10-08 20:11:05 +08:00
2026-10-12 00:44:47 +08:00
2026-10-10 18:31:31 +08:00
2026-10-20 00:18:51 +08:00
2026-10-15 09:36:26 +08:00
2026-10-30 15:53:22 +08:00
2026-10-30 15:53:22 +08:00
2026-10-29 09:24:31 +08:00
2026-10-29 09:24:31 +08:00
2026-10-29 09:24:31 +08:00
2026-10-29 09:24:31 +08:00
2026-10-29 09:24:31 +08:00
2026-10-29 22:25:36 +08:00
2026-10-29 22:25:36 +08:00
2026-10-29 22:25:36 +08:00
2026-10-29 22:25:36 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-13 04:27:40 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-29 15:50:37 +08:00
2026-10-13 05:48:39 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-11 00:41:09 +08:00
2026-10-13 14:06:24 +08:00
2026-10-30 14:25:38 +08:00
2026-10-30 03:09:29 +08:00
2026-10-30 03:09:29 +08:00
2026-10-25 16:49:29 +08:00
2026-10-25 16:49:29 +08:00
2026-10-14 15:34:16 +08:00
2026-10-14 15:34:16 +08:00
2026-10-19 18:12:45 +08:00
2026-10-21 03:40:26 +08:00
2026-10-21 03:40:26 +08:00
2026-10-14 20:51:01 +08:00
2026-10-24 19:47:12 +08:00
2026-10-15 07:41:30 +08:00
2026-10-28 13:52:08 +08:00
2026-10-11 08:18:27 +08:00
2026-10-19 04:09:16 +08:00
2026-10-21 03:40:26 +08:00
2026-10-11 08:18:27 +08:00
2026-10-30 15:53:22 +08:00
2026-10-12 23:18:32 +08:00
2026-10-30 15:53:22 +08:00
2026-10-15 06:07:43 +08:00
2026-10-08 05:00:55 +08:00
2026-10-29 12:42:52 +08:00
2026-10-29 12:22:05 +08:00
2026-10-06 15:28:27 +08:00
2026-10-30 15:53:22 +08:00
2026-10-20 00:18:51 +08:00
2026-10-13 16:26:10 +08:00
2026-10-11 21:55:31 +08:00
2026-10-14 05:29:56 +08:00
2026-10-22 18:19:00 +08:00
2026-10-23 03:44:55 +08:00
2026-10-17 16:12:14 +08:00
2026-10-22 10:52:04 +08:00
2026-10-23 03:44:55 +08:00
2026-10-30 15:53:22 +08:00
2026-10-11 08:18:27 +08:00
2026-10-30 19:59:07 +08:00
2026-10-30 19:59:07 +08:00
2026-10-14 22:24:11 +08:00
2026-10-14 22:24:11 +08:00
2026-10-11 06:03:05 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 09:21:18 +08:00
2026-10-11 05:33:23 +08:00
2026-10-14 16:31:08 +08:00
2026-10-11 12:45:31 +08:00
2026-10-12 22:55:22 +08:00
2026-10-19 00:57:10 +08:00
2026-10-09 13:44:50 +08:00
2026-10-31 01:22:28 +08:00
2026-10-28 22:48:07 +08:00
agent: CodeBuddy Code (Tencent's CLI, codebuddy/cbc, the China edition too) is an agent that uses magpie's models ( #980 , yujianbinm) — the CLI (npm @tencent-ai/codebuddy-code 2.161.4, one package for codebuddy.ai and codebuddy.cn, CODEBUDDY_INTERNET_ENVIRONMENT=internal) takes models of one's own from ~/.codebuddy/models.json ($CODEBUDDY_CONFIG_DIR), the format WorkBuddy reads, hot-reloaded, and starts a session on settings.json's "model". magpie now writes its models there as WorkBuddy's are written (vendor magpie, key magpie-codebuddy, url the gateway's /v1/chat/completions), keeping the user's own entries, their order, a model turned off and availableModels (magpie's ids added when the list is there), and sets "model" to the pick, the user's other settings kept; one of CodeBuddy's own models, or default, takes magpie's models out again. A new models.json is {"models":[…]} as CodeBuddy's docs give it. workbuddyWrite becomes buddyWrite(agent), the same writer for both. CODEBUDDY_CONFIG_DIR joins agentenv.Vars; cliupdate knows the npm package. TestCodeBuddyCode (user's model, availableModels and settings kept; magpie pick; sync; back to own; default) and TestCodeBuddyCodeNewFile fail without the agent ("no codebuddy agent") and pass; -race -count=5 on the CodeBuddy/WorkBuddy tests. End to end, the real CLI 2.161.4 under a temp HOME with CODEBUDDY_INTERNET_ENVIRONMENT=internal and no CodeBuddy sign-in: magpie codebuddy magpie/mock/pro against a sandbox gateway on 3462, then codebuddy -p with no --model, answered through the gateway from a mock upstream, and magpie's usage counted it under CodeBuddy Code (the CLI sends "CLI/2.161.4 CodeBuddy/2.161.4", so it is told by its key); magpie codebuddy default took it out. A bare-list models.json is read by the CLI too. Not tried with a real CodeBuddy account or a real model vendor. go test ./internal/agent/ ./internal/agentenv/ ./internal/usage/ ., go vet, darwin, linux (nogui) and windows builds pass.
2026-10-06 15:32:23 +08:00
2026-10-28 22:48:07 +08:00
2026-10-11 20:09:15 +08:00
2026-10-13 12:11:23 +08:00
2026-10-29 01:18:59 +08:00
2026-10-27 18:22:29 +08:00
2026-10-30 13:42:48 +08:00
2026-10-30 13:42:48 +08:00
2026-10-24 22:02:49 +08:00
2026-10-24 22:02:49 +08:00
2026-10-14 18:44:45 +08:00
2026-10-30 03:47:58 +08:00
2026-10-22 20:14:54 +08:00
2026-10-10 09:07:44 +08:00
2026-10-11 04:10:30 +08:00
2026-10-16 00:16:43 +08:00
2026-10-12 23:16:54 +08:00
2026-10-16 00:26:29 +08:00
2026-10-11 02:34:30 +08:00
2026-10-26 11:48:48 +08:00
2026-10-26 11:48:48 +08:00
2026-10-30 21:47:07 +08:00
2026-10-27 18:38:27 +08:00
2026-10-12 23:18:32 +08:00
2026-10-15 00:53:58 +08:00
2026-10-09 14:10:13 +08:00
2026-10-30 00:19:43 +08:00
2026-10-20 00:18:51 +08:00
2026-10-27 17:02:55 +08:00
2026-10-09 13:50:53 +08:00
2026-10-27 23:30:37 +08:00
2026-10-29 18:20:50 +08:00
2026-10-28 13:52:08 +08:00
2026-10-29 01:18:59 +08:00
2026-10-15 23:08:04 +08:00
2026-10-30 21:01:09 +08:00
2026-10-30 18:02:42 +08:00
2026-10-21 03:05:24 +08:00
2026-10-15 08:03:20 +08:00
2026-10-08 17:06:48 +08:00
2026-10-29 17:13:05 +08:00
2026-10-17 05:35:45 +08:00
2026-10-30 15:53:22 +08:00
2026-10-29 07:32:05 +08:00
2026-10-24 23:40:44 +08:00
2026-10-28 16:16:02 +08:00
2026-10-30 01:40:48 +08:00
2026-10-25 01:49:13 +08:00
2026-10-13 14:35:08 +08:00
2026-10-13 16:34:23 +08:00
2026-10-26 22:02:03 +08:00
2026-10-24 02:58:50 +08:00
2026-10-26 22:38:57 +08:00
2026-10-30 21:47:07 +08:00
2026-10-28 03:36:13 +08:00
2026-10-30 18:02:42 +08:00
2026-10-30 14:25:38 +08:00
2026-10-14 05:43:48 +08:00
2026-10-14 20:01:06 +08:00
2026-10-31 00:00:11 +08:00
2026-10-31 00:00:11 +08:00
2026-10-08 18:12:10 +08:00
2026-10-14 15:23:05 +08:00
2026-10-16 05:10:43 +08:00
2026-10-16 05:10:43 +08:00
2026-10-16 05:10:43 +08:00
2026-10-10 17:52:30 +08:00
2026-10-10 17:52:30 +08:00
2026-10-10 17:52:30 +08:00
2026-10-13 14:06:24 +08:00
2026-10-15 03:34:59 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:01 +08:00
2026-10-15 23:08:02 +08:00
2026-10-28 22:48:07 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-13 10:57:32 +08:00
2026-10-11 02:34:30 +08:00
2026-10-10 19:17:53 +08:00
2026-10-19 18:12:45 +08:00
2026-10-11 15:32:45 +08:00
2026-10-30 19:34:45 +08:00
2026-10-30 19:34:45 +08:00
2026-10-23 01:20:37 +08:00
2026-10-17 00:39:36 +08:00
2026-10-30 14:45:56 +08:00
2026-10-15 23:56:05 +08:00
2026-10-28 04:34:45 +08:00
2026-10-17 18:51:53 +08:00
2026-10-14 15:30:43 +08:00
2026-10-09 22:26:00 +08:00
2026-10-24 23:27:25 +08:00
2026-10-23 22:26:33 +08:00
2026-10-11 04:52:26 +08:00
2026-10-20 20:32:05 +08:00
2026-10-23 22:26:33 +08:00
2026-10-12 22:08:57 +08:00
2026-10-12 22:08:57 +08:00
2026-10-23 02:17:01 +08:00
2026-10-29 17:42:35 +08:00
2026-10-13 10:57:32 +08:00
2026-10-13 14:06:24 +08:00
2026-10-11 22:04:46 +08:00
2026-10-14 09:21:18 +08:00
2026-10-30 14:25:38 +08:00
2026-10-29 05:06:50 +08:00
2026-10-25 12:42:20 +08:00
2026-10-07 03:00:47 +08:00
2026-10-13 14:06:24 +08:00
2026-10-27 18:15:16 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 09:21:18 +08:00
2026-10-21 04:16:24 +08:00
2026-10-29 04:43:22 +08:00
2026-10-29 04:43:22 +08:00
2026-10-13 05:09:18 +08:00
2026-10-13 05:09:18 +08:00
2026-10-30 13:25:55 +08:00
2026-10-07 00:17:38 +08:00
2026-10-12 00:44:47 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-28 07:06:27 +08:00
2026-10-14 18:21:44 +08:00
2026-10-20 00:18:51 +08:00
2026-10-27 18:15:16 +08:00
2026-10-16 05:10:43 +08:00
2026-10-27 01:38:45 +08:00
2026-10-20 00:18:51 +08:00
2026-10-12 00:22:49 +08:00
2026-10-21 04:16:26 +08:00
2026-10-12 00:44:47 +08:00
2026-10-30 14:25:38 +08:00
2026-10-09 14:08:07 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:02 +08:00
2026-10-31 03:27:34 +08:00
2026-10-09 12:51:30 +08:00
2026-10-14 09:21:18 +08:00
2026-10-31 04:12:17 +08:00
2026-10-26 16:31:14 +08:00
2026-10-26 16:31:14 +08:00
2026-10-15 23:08:02 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-27 11:03:41 +08:00
2026-10-25 14:13:38 +08:00
2026-10-25 14:13:38 +08:00
2026-10-25 00:30:31 +08:00
2026-10-29 17:42:35 +08:00
2026-10-29 17:42:35 +08:00
2026-10-09 14:08:07 +08:00
2026-10-30 14:25:38 +08:00
2026-10-07 03:34:05 +08:00
2026-10-30 14:45:56 +08:00
2026-10-13 14:06:24 +08:00
2026-10-15 23:08:03 +08:00
2026-10-30 14:25:38 +08:00
2026-10-11 02:34:30 +08:00
2026-10-12 19:52:37 +08:00
2026-10-12 23:18:32 +08:00
2026-10-27 11:03:41 +08:00
2026-10-27 11:03:41 +08:00
2026-10-11 02:34:30 +08:00
2026-10-11 02:34:30 +08:00
2026-10-14 05:22:47 +08:00
2026-10-30 20:01:38 +08:00
2026-10-14 18:17:38 +08:00
2026-10-08 19:22:14 +08:00
2026-10-11 00:28:27 +08:00
2026-10-13 13:03:26 +08:00
2026-10-13 13:03:26 +08:00
2026-10-30 14:45:56 +08:00
2026-10-07 07:08:16 +08:00
2026-10-30 20:01:38 +08:00
2026-10-30 14:25:38 +08:00
2026-10-29 05:06:50 +08:00
2026-10-30 14:25:38 +08:00
2026-10-15 23:08:04 +08:00
2026-10-15 23:08:04 +08:00
2026-10-16 11:43:51 +08:00
2026-10-16 11:43:51 +08:00
2026-10-14 15:23:05 +08:00
agent: DeepSeek Harness's own models say they go straight to DeepSeek ( #955 ) — #834 had every agent's own models say which way they go, Codex's, Grok Build's and Antigravity CLI's custom ones; dsh's three (DeepSeek-V41-Flash, V4-Pro, V4-Flash) still said nothing (EZN7L2C3: DeepSeek Harness 未看到同样的直连入口). Since dsh 0.1.5 magpie is a custom provider beside dsh's own llm-deepseek row, which is left to dsh, so its own models go to DeepSeek on its own key: they now say direct, DeepSeek. Before 0.1.5 magpie took that row over, so nothing is said there. TestOwnModelsSayTheirPath fails without it. go vet, go test ./internal/agent ./internal/gui, GOOS=windows build pass; agent-own-path, agent-path-same and claude-picker-fold pass in Chromium and WebKit, en and zh (no GUI code changed).
2026-10-06 10:44:33 +08:00
2026-10-30 14:25:38 +08:00
2026-10-27 15:17:26 +08:00
2026-10-27 01:38:45 +08:00
2026-10-30 14:25:38 +08:00
2026-10-30 18:44:23 +08:00
2026-10-08 07:31:15 +08:00
2026-10-30 17:30:23 +08:00
2026-10-14 15:30:43 +08:00
2026-10-14 13:33:28 +08:00
2026-10-13 16:57:58 +08:00
2026-10-30 17:30:23 +08:00
2026-10-25 03:39:50 +08:00
2026-10-15 23:08:05 +08:00
2026-10-30 14:45:56 +08:00
2026-10-27 10:01:46 +08:00
2026-10-13 10:55:45 +08:00
2026-10-10 18:39:47 +08:00
2026-10-30 15:42:29 +08:00
2026-10-15 23:08:04 +08:00
2026-10-28 18:21:38 +08:00
2026-10-28 18:21:38 +08:00
2026-10-11 05:43:45 +08:00
2026-10-11 03:11:33 +08:00
2026-10-15 08:33:54 +08:00
2026-10-30 15:53:22 +08:00
2026-10-14 09:21:18 +08:00
2026-10-14 18:21:44 +08:00
2026-10-13 14:06:23 +08:00
2026-10-30 14:25:38 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:02 +08:00
2026-10-18 07:13:11 +08:00
2026-10-30 15:53:22 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-12 23:56:20 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-30 15:53:21 +08:00
2026-10-06 16:14:35 +08:00
2026-10-16 20:08:01 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-12 22:55:22 +08:00
2026-10-20 00:18:51 +08:00
2026-10-31 00:57:21 +08:00
2026-10-11 00:41:09 +08:00
2026-10-14 22:24:11 +08:00
2026-10-31 03:27:34 +08:00
2026-10-20 20:23:51 +08:00
2026-10-20 20:23:51 +08:00
2026-10-20 20:23:51 +08:00
2026-10-14 13:33:28 +08:00
2026-10-14 13:33:28 +08:00
2026-10-11 01:13:52 +08:00
2026-10-13 05:48:39 +08:00
2026-10-11 15:56:06 +08:00
2026-10-13 14:06:24 +08:00
2026-10-15 23:08:04 +08:00
2026-10-30 14:45:56 +08:00
2026-10-13 09:38:25 +08:00
2026-10-15 09:36:26 +08:00
2026-10-15 09:36:26 +08:00
2026-10-14 13:33:28 +08:00
2026-10-30 17:30:23 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-27 17:26:30 +08:00
2026-10-30 14:45:56 +08:00
2026-10-31 00:11:10 +08:00
2026-10-14 05:28:39 +08:00
2026-10-31 00:11:10 +08:00
2026-10-15 23:08:04 +08:00
2026-10-28 13:52:08 +08:00
2026-10-28 13:52:08 +08:00
2026-10-31 04:12:17 +08:00
2026-10-13 17:02:05 +08:00
2026-10-29 23:03:29 +08:00
2026-10-08 11:52:20 +08:00
2026-10-23 01:58:00 +08:00
2026-10-29 23:03:29 +08:00
2026-10-30 03:47:58 +08:00
2026-10-15 14:52:51 +08:00
2026-10-28 09:30:24 +08:00
2026-10-28 09:30:24 +08:00
2026-10-11 05:33:23 +08:00
2026-10-11 05:33:23 +08:00
2026-10-27 09:24:43 +08:00
2026-10-13 09:56:06 +08:00
2026-10-28 00:47:44 +08:00
2026-10-27 23:52:55 +08:00
2026-10-11 04:00:27 +08:00
2026-10-29 18:34:44 +08:00
2026-10-27 01:38:45 +08:00
2026-10-25 12:42:20 +08:00
2026-10-08 09:54:11 +08:00
2026-10-11 06:41:06 +08:00
2026-10-08 16:57:39 +08:00
2026-10-11 01:21:21 +08:00
2026-10-28 00:36:15 +08:00
2026-10-15 23:08:01 +08:00
2026-10-29 15:31:36 +08:00
2026-10-08 07:31:15 +08:00
2026-10-30 15:53:22 +08:00
2026-10-22 04:32:46 +08:00
2026-10-20 00:45:12 +08:00
2026-10-22 04:32:46 +08:00
2026-10-07 03:00:47 +08:00
2026-10-12 23:56:20 +08:00
2026-10-12 00:44:47 +08:00
2026-10-06 11:26:38 +08:00
2026-10-13 05:48:39 +08:00
2026-10-11 02:34:30 +08:00
2026-10-21 18:43:06 +08:00
2026-10-21 18:43:06 +08:00