WorkBuddy's backend counts a user send as one request by X-Conversation-Request-ID. The China build was sent no conversation headers at all, and the international build a new pair on every request, so one send that takes several steps — a tool result sent back, a retry, another account answering — was counted as a request of its own: one conversation showed up in the usage detail as many requests. The ids are now made as workbuddy2api's fix makes them: the turn's from the body's last user message (its place and its signature, a tool result's part left out), the conversation's from the session magpie or OpenCode names — the chat.headers hook now carries it — else from the chat's first user message; nothing is made up when neither names one. The message and request ids stay each request's own, and both builds carry the ids now. Co-authored-by: tearslee <16331052+tearslee@users.noreply.github.com>
13 lines
566 B
JSON
13 lines
566 B
JSON
{
|
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
"version": "0.1.11",
|
|
"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" }
|
|
}
|