xonecas.io
64875
Mc

mini-coder / commit 5a42081

chore: adds more context to todo item

xonecas2026-03-14 5a42081e0bc7d6e51207dbbb1eb232eefcf1f5fd parent 12a627c

1 file changed

TODO.md+3−59
@@ -1,8 +1,9 @@
11 # TODO
22
3-- Models in general struggle with our read/write tools, use the db to investigate their behaviour with out tools and let's refactor them with the goal of reducintg errors.
43 - Strange output mid session:
54
5+There are several sessions in the db where this issue happened.
6+
67 A fix was made to suppress commentary from gpt to avoid this, but now there is no reasoning output from gpt mdels.
78 Update: reasoning is now all dumped at turn end.
89
@@ -112,64 +113,7 @@ with assistant metadata to=functions.shell from UI (not visible in message maybe
112113 ▶
113114 ```
114115
115-- Error during turn:
116-
117-```
118-claude-opus-4-5 · ~/src/mini-coder · ✦ medium · ⎇ main · #mmqwc6tq
119-▶ [pasted: "As we implemnented the idea we made heav…" +18 more lines]
120-⢿ thinking2525 | const responseBody = await response.text();
121-2526 | const responseHeaders = extractResponseHeaders(response);
122-2527 | if (responseBody.trim() === "") {
123-2528 | return {
124-2529 | responseHeaders,
125-2530 | value: new APICallError4({
126- ^
127-AI_APICallError: Bad Request
128- cause: undefined,
129- url: "https://opencode.ai/zen/v1/messages",
130- requestBodyValues: {
131- model: "claude-opus-4-5",
132- max_tokens: 64000,
133- temperature: undefined,
134- top_k: undefined,
135- top_p: undefined,
136- stop_sequences: undefined,
137- thinking: [Object ...],
138- output_config: [Object ...],
139- system: [
140- [Object ...]
141- ],
142- messages: [
143- [Object ...]
144- ],
145- tools: [
146- [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...], [Object ...]
147- ],
148- tool_choice: [Object ...],
149- stream: true,
150-},
151- statusCode: 400,
152- responseHeaders: {
153- "cf-ray": "9dc6b5b3db7c6c66-DFW",
154- connection: "keep-alive",
155- "content-type": "application/json",
156- date: "Sat, 14 Mar 2026 22:28:09 GMT",
157- server: "cloudflare",
158- "transfer-encoding": "chunked",
159-},
160- responseBody: "",
161- isRetryable: false,
162- data: undefined,
163- vercel.ai.error: true,
164- vercel.ai.error.AI_APICallError: true,
165-
166- at /home/xonecas/src/mini-coder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2530:18
167- at /home/xonecas/src/mini-coder/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2391:34
168- at processTicksAndRejections (native:7:39)
169-
170-✖ API error 400
171- https://opencode.ai/zen/v1/messages
172-```
116+- Models in general struggle with our read/write tools, use the db to investigate their behaviour with out tools and let's refactor them with the goal of reducintg errors.
173117
174118 ---