@@ -6,6 +6,87 @@
66 - Review our markdown renderer. Let's make it render the raw markdown, but syntax highlited
77 - add a spinner state showing the user when the undo snapshotting is happening
88 - Structuted output when a skill is auto loaded for the agent
9+- Kimi-k2.5 and other models that use the same sdk hang for long periods during turns.
10+- Kimi-k2.5, GLM-5 and other models that use the same sdk produce these errors:
11+
12+Error 1:
13+
14+```
15+"{\"error\":{\"object\":\"error\",\"type\":\"invalid_request_error\",\"code\":\"invalid_request_error\",\"message\":\"Invalid tool call in messages: tool_calls[].function.arguments for function 'read' must decode to a JSON object, got str\"}}",
16+```
17+
18+Error 2:
19+
20+```
21+2543 | text: responseBody,
22+2544 | schema: errorSchema
23+2545 | });
24+2546 | return {
25+2547 | responseHeaders,
26+2548 | value: new APICallError4({
27+ ^
28+AI_APICallError: Expected dict in tool call arguments, got <class 'str'>
29+ cause: undefined,
30+ url: "https://opencode.ai/zen/v1/chat/completions",
31+ requestBodyValues: {
32+ model: "glm-5",
33+ user: undefined,
34+ max_tokens: undefined,
35+ temperature: undefined,
36+ top_p: undefined,
37+ frequency_penalty: undefined,
38+ presence_penalty: undefined,
39+ response_format: undefined,
40+ stop: undefined,
41+ seed: undefined,
42+ reasoning_effort: undefined,
43+ verbosity: undefined,
44+ messages: [
45+ [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Objec …
46+ ],
47+ tools: [
48+ [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...]
49+ ],
50+ tool_choice: "auto",
51+ stream: true,
52+ stream_options: undefined,
53+},
54+ statusCode: 400,
55+ responseHeaders: {
56+ "cf-ray": "9dc2e9f38ed09063-BOS",
57+ connection: "keep-alive",
58+ "content-type": "application/json",
59+ date: "Sat, 14 Mar 2026 11:24:46 GMT",
60+ server: "cloudflare",
61+ "transfer-encoding": "chunked",
62+},
63+ responseBody: "{\n\t\"error\": {\n\t\t\"code\": 400,\n\t\t\"message\": \"Expected dict in tool call arguments, got \\u003cclass 'str'\\u003e\",\n\t\t\"type\": \"Bad Request\"\n\t}\n}\n",
64+ isRetryable: false,
65+ data: {
66+ error: [Object ...],
67+},
68+ vercel.ai.error: true,
69+ vercel.ai.error.AI_APICallError: true,
70+
71+ at /home/xonecas/src/mini-coder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2548:18
72+ at /home/xonecas/src/mini-coder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2391:34
73+ at processTicksAndRejections (native:7:39)
74+
75+✖ API error 400
76+ https://opencode.ai/zen/v1/chat/completions
77+```
78+
79+- Investigate db lock issues with spawning parallel subagents:
80+
81+```
82+ ⇢ — Audit scope: CLI/input/output/command behavior against mi…
83+ ⇢ — Audit scope: tools/core/session/provider/MCP behavior aga…
84+ ⇢ — Audit scope: repository docs and user-facing documentatio…
85+ ✖ Subagent subprocess produced no output (exit code 7) (diagnostics: 60 | cleanup(); | 61 | t)
86+ ✖ Subagent subprocess produced no output (exit code 7) (diagnostics: 60 | cleanup(); | 61 | t)
87+ ⇢ subagent done (882751in / 10514out tokens)
88+◆ Subagent parallelism hit a SQLite lock in the shared app DB, so I’m finishing the audit with direct reads and a smaller follow-up pass grounded in file references.
89+```
990
1091 ---
1192