Files
yetone c95e20a352 doubao-work 0.1.10: lists 工作任务's real models from brief_list, with 推理强度
XingHeJin on X: 豆包工作 listed only 快速 and 专家, and 测试模型 failed,
while the app offers 自动, 豆包 2.1 Lite/Pro, DeepSeek V4.1 Flash, Kimi
K3.1 Pro (高速), Kimi K3, GLM 5.3 (Flash) and DeepSeek V4 Pro, each with a
推理强度 submenu.

Cause: discover read the model menu of whatever page was open. In 豆包 that
can be the 对话 page, whose menu is 快速/专家; that list was cached, and
pickModel("快速") then failed in the 工作任务 the request opened.

- The list now comes from the request the app's own page makes,
  alice/slot/action_bar_v3/brief_list (coco_deep_thinking, mode_id 3), with
  each model's model_item_key and 推理强度 levels. When it can't be read,
  the menu is read inside a new 工作任务, never the current page's.
- models.json carries a version; a 0.1.9 cache is read again.
- A model is found by id, by Doubao's key or by its name.
- Each model's 推理强度 levels are variants; reasoning_effort (or
  reasoning.effort) picks the nearest level (低 low, 中 medium, 高 high,
  极高 xhigh, 最高 max). With none asked, the model's own default level is
  set, not the one the last request left.
- A Radix menu left open in a background window (its close animation waits
  for a frame that is never drawn) is closed with a pointerdown before
  filling; the message is sent with the send button, Enter only without one.
- A model the list has and the menu doesn't reloads the page once.

Run:
- bun test packages/doubao-work under a temp HOME on mote: 56 pass, 0 fail.
- Broken by hand (cache version check removed, default effort removed, the
  send button skipped): the three tests about them went red, 53 pass 3 fail.
- Full bun test, HOME=$(mktemp -d), on mote at this tree on 14296209:
  8698 pass, 0 fail, 20 skip (606 files).
- Real requests through the plugin against the owner's Doubao account
  (豆包.app on macOS, sandboxed data dir), chat/completion bodies captured:
  deepseek-v4.1-flash xhigh -> person-deepseek-v4-1-flash-261017,
  reasoning_effort 6; glm-5.3 medium -> person-glm-5-3-261111, 5 (高, the
  nearest with a tie going higher); kimi-k3.1-pro-fast low ->
  person-kimi-k3-1-pro-highspeed-261111, 3; auto -> 9. All 200, ~5-7s.
  glm-5.3 with no effort, after a request left 低 -> 高 set, reasoning_effort
  5. provider.models() listed all 10 models with their variants.

Not tried: DoubaoWork.app itself (the same page, the 豆包 app was used),
Windows, the reporter's free plan, a Page.reload in real use, and the rates
read from a real menu.
2026-11-14 01:24:56 +08:00
..