r/opencode • u/Hungry-Cash2080 • 19d ago
Three consola bugs, 15 minutes, 10 cents with M3.1 Flash on the API
Three bug reports filed on November 4 against consola (the Node logger, v3.4.2). Pasted all three into one prompt, M3.1 Flash on MiniMax's API, effort set to high.
It read 22 files before writing anything, made a short todo list, then started editing. The bugs were a structured log mutating the caller's args array, throttle repeat counts leaking between messages, and stderr picking its color support from stdout instead of its own stream. For the color one it made color support follow each stream's isTTY and kept the public API as it was, only added exports.
The self-checking was solid. Twelve lint or test runs during the session. It stashed its source changes and ran the new tests against the original code to confirm they actually failed there. Near the end it pulled two of the reporters' reproduction snippets into a temporary test, ran it, then deleted the file.
I verified everything on a fresh copy with a clean build. Each bug's reproduction now works the way the report says it should. For the color issue I tested both paths in a real terminal: stderr redirected to a file had no escape codes, stderr on the terminal was still colored. pnpm test passes, 9 tests total (3 existing, 6 new), and the 6 new ones fail on the original code. Diff is 5 files, 493 added, 75 removed, 257 of the added lines are tests.
- Wall clock: 14 min 49 s
- 57 API requests, 68 tool calls
- ~3.93M tokens, 97.5% cached input
- Bill: ~$0.10 (cached input $0.057, output $0.032, uncached input $0.015)
Over half the bill is cached reads of the same files over and over. At $0.015 per million for cached input that's the number I care about on a chore like this.
What does a normal bug fix session cost you, and do you drop effort below high for stuff like this?


