Files
plugins/packages/workbuddy/package.json
T
yetone d0d07168ef workbuddy 0.2.6: an empty tool_calls list is no call, so the filter's refusal is still caught (#540)
itspig (#540, 2026-10-31) ran magpie v0.1.2283 with workbuddy 0.2.5 on
the live account, through a [workbuddy, volcengine] group: the refusal
still reached the client and routing.jsonl had the workbuddy try
done/200 with firstText 3208, no try of volcengine.

The cause: copilot.tencent.com puts "tool_calls": [] on every delta, text
too (magpie f2c7536d7 recorded it for Qoder). unsaid let the reply
through at the first delta whose tool_calls was truthy, and [] is truthy
in JS, so the gate opened at the reasoning chunk and nothing was held or
taken out. itspig's paste had no tool_calls because it was read off
magpie after chatTidy dropped the empty list and Go re-wrote the chunk
with its keys sorted; 0.2.5's fixture was built from that paste.

unsaid now counts a tool_calls list only when it holds a call.

Run (on mote, mote-run):
- HOME=$(mktemp -d) bun test packages/workbuddy: 291 pass, 0 fail.
- bun scripts/check.mjs: exit 0.
- filtered.test.mjs: the paste's chunks with WorkBuddy's own framing
  ("tool_calls": [], "finish_reason": "" until the last, an empty
  reasoning_content beside the line) cut every 1, 7 and 1MiB bytes; the
  line split over deltas that each carry the empty list; a real call
  still lets the reply through as it came.
- End to end, in magpie's plugin host (a magpie worktree's gateway test,
  not committed there): this file loaded by the host behind a fetch
  shim pointing copilot.tencent.com at a fake vendor, signed in with an
  API key, in a group [workbuddy-plugin/deepseek-v4.1-flash, b/m], asked
  as a streamed chat, a one-body chat, Messages (Claude Code's ask) and
  Responses (Codex's ask). With 0.2.6, 8 of 8 hand on to b and say no
  "Sorry", for the paste and for the wire framing.

Broken by hand:
- 0.2.5 (b5cc782): the 4 new wire-framing tests go red; end to end the
  wire framing goes red on chat, Messages and Responses (b never asked,
  "Sorry" in the reply), the paste stays green, as itspig saw.

Not tried: a live WorkBuddy account; the trigger prompt was not run.
2026-10-31 08:36:42 +08:00

25 lines
611 B
JSON

{
"name": "@magpie-community/opencode-workbuddy-auth",
"version": "0.2.6",
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": [
"index.mjs",
"README.md"
],
"keywords": [
"opencode",
"opencode-plugin",
"workbuddy",
"codebuddy"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/workbuddy"
}
}