xonecas.io
64875
Mc

mini-coder / commit d63ac3e

docs: remove completed Zod/Schema error and Gemini thinking bug from TODO

Sean2026-02-26 d63ac3efbf66c7a174e367ff3a916e162acf6fdd parent d9a4192

1 file changed

TODO.md+0−148
@@ -1,128 +1,5 @@
11 # TODO
22
3-# Zod/Schema error:
4-
5-likely fixed by https://github.com/sacenox/mini-coder/commit/d27dccbf6ca2ced4f05d493701da9d8fe809e05d
6-
7-A user reported this issue, seems like we are trying to use a wrong type? Please see what you can find in the code
8-
9-```
10-gpt-5.3-codex mm2h8qwl ~/code/personal/mini-coder ⎇ main
11-▶ right now I can use opt+left/right to navigate between words. I'd like to do the same for delete. Eg: opt+delete to delete single words.
12- ? glob **/*
13- · src/session/manager.ts
14- · src/session/db.ts
15- · src/llm-api/types.ts
16- · src/mcp/client.ts
17- · src/tools/subagent.ts
18- · src/llm-api/providers.ts
19- · src/llm-api/turn.ts
20- · src/cli/output.ts
21- · src/cli/skills.test.ts
22- · src/cli/skills.ts
23- · src/cli/commands.ts
24- · src/cli/input.ts
25- +51 more
26-⠼ thinking333 | }) {
27-334 | var _a15, _b15, _c;
28-335 | if (_TypeValidationError.isInstance(cause) && cause.value === value && ((_a15 = cause.context) == null ? void 0 : _a15.field) === (context == null ? void 0 : context.field) && ((_b15 = cause.context) == null ? void 0 : _b15.entityName) === (context == null ? void 0 : context.entityName) && ((_c = cause.context) == null ? void 0 : _c.entityId) === (context == null ? void 0 : context.entityId)) {
29-336 | return cause;
30-337 | }
31-338 | return new _TypeValidationError({ value, cause, context });
32- ^
33-AI_TypeValidationError: Type validation failed: Value: {"type":"ping","cost":"0.00387975"}.
34-Error message: [
35- {
36- "code": "invalid_union",
37- "errors": [
38- [
39- {
40- "expected": "array",
41- "code": "invalid_type",
42- "path": [
43- "choices"
44- ],
45- "message": "Invalid input: expected array, received undefined"
46- }
47- ],
48- [
49- {
50- "expected": "object",
51- "code": "invalid_type",
52- "path": [
53- "error"
54- ],
55- "message": "Invalid input: expected object, received undefined"
56- }
57- ]
58- ],
59- "path": [],
60- "message": "Invalid input"
61- }
62-]
63- value: {
64- type: "ping",
65- cost: "0.00387975",
66-},
67- context: undefined,
68- vercel.ai.error: true,
69- vercel.ai.error.AI_TypeValidationError: true,
70-
71- at wrap (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider/dist/index.mjs:338:12)
72- at safeValidateTypes (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2115:35)
73- at async safeParseJSON (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2154:18)
74- at async transform (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2186:34)
75-
76-25 | class Definition extends Parent {
77-26 | }
78-27 | Object.defineProperty(Definition, "name", { value: name });
79-28 | function _(def) {
80-29 | var _a;
81-30 | const inst = params?.Parent ? new Definition() : this;
82- ^
83-ZodError: [
84- {
85- "code": "invalid_union",
86- "errors": [
87- [
88- {
89- "expected": "array",
90- "code": "invalid_type",
91- "path": [
92- "choices"
93- ],
94- "message": "Invalid input: expected array, received undefined"
95- }
96- ],
97- [
98- {
99- "expected": "object",
100- "code": "invalid_type",
101- "path": [
102- "error"
103- ],
104- "message": "Invalid input: expected object, received undefined"
105- }
106- ]
107- ],
108- "path": [],
109- "message": "Invalid input"
110- }
111-]
112- at new ZodError (/Users/ericskram/.bun/install/global/node_modules/zod/v4/core/core.js:30:39)
113- at <anonymous> (/Users/ericskram/.bun/install/global/node_modules/zod/v4/core/parse.js:53:20)
114- at <anonymous> (/Users/ericskram/.bun/install/global/node_modules/zod/v4/core/parse.js:45:49)
115- at <anonymous> (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2070:33)
116- at validate (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2069:24)
117- at safeValidateTypes (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2109:39)
118- at safeValidateTypes (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2099:33)
119- at safeParseJSON (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2154:18)
120- at safeParseJSON (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2145:29)
121- at transform (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2186:34)
122- at transform (/Users/ericskram/.bun/install/global/node_modules/@ai-sdk/provider-utils/dist/index.mjs:2182:25)
123-```
124-
125-
1263 ## Streaming subagent activity
1274
1285 I'd like to have the subgent output/activity to be streamed to the main output. Right now we wait for the subagent to be complete to print all at once
@@ -156,31 +33,6 @@ claude-sonnet-4-6 mm1v6tyb ~/src/mini-coder ⎇ main ctx 55.9k/200.0k 28%
15633
15734 LLM said it was exploring but no output or tool calls were seen. Session continued normally after the "What happened?" message. (mm1v6tyb session id)
15835
159-## Gemini models sometimes get stuck "thinking" forever
160-
161-I've seen it a couple times, where after a tool call, gemini 3.1 pro will get stuck
162-with the UI only showing the thinking animated icon. A ctrl+c will complete it's turn and then it will continue to work like nothing happened.
163-
164-- Happens to all google models using Zen provider (dont have a google key to try direct)
165-- The user did not cancel with CTRL+c, they pressed it after thinking was stuck for over 30m(!!!!!!)
166-- When using other coding agents, Gemini 3.1 pro doesn't have this issue
167-
168-- Check online for new SDK version that supports Gemini 3.1 Pro/API changes.
169-- https://github.com/vercel/ai/issues/12367 Is not a known issue, it was confirmed to be a bug with an unrelated library. The only thing to note is this change:
170-
171-```ts
172-// SDK 5
173-streamText({ maxSteps: 5 })
174-
175-// SDK 6
176-import { stepCountIs } from 'ai';
177-streamText({ stopWhen: stepCountIs(5) })
178-```
179-
180-We should start by checking if the google ai sdk has updates.
181-
182----
183-
18436 ## `/model` thinking-effort toggle
18537
18638 The idea specifies: *"/model allows the user to pick a model as well as thinking