[Bug] For complex diagnostic tasks, the control loop cannot even validate the queries syntax. the query in question is a find ordered with limits of about twenty characters.
Resolved 💬 6 comments Opened Apr 8, 2026 by gio-ant Closed May 22, 2026
Bug Description
passed to sonnet, not even a "mongo" query built with the directions of opus manages to write
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.1.96
- Feedback ID: a8505857-279a-4919-85dd-c6737014b692
Errors
[{"error":"MaxFileReadTokenExceededError: File content (18193 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at Zz7 (/$bunfs/root/src/entrypoints/cli.js:4307:13191)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:43:11.425Z"},{"error":"MaxFileReadTokenExceededError: File content (10639 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at Zz7 (/$bunfs/root/src/entrypoints/cli.js:4307:13191)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:43:14.201Z"},{"error":"MaxFileReadTokenExceededError: File content (22327 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at Zz7 (/$bunfs/root/src/entrypoints/cli.js:4307:13191)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:43:21.600Z"},{"error":"Error: Request was aborted.\n at sh$ (/$bunfs/root/src/entrypoints/cli.js:1243:11929)\n at next (native:1:11)\n at vC7 (/$bunfs/root/src/entrypoints/cli.js:7775:9035)\n at next (native:1:11)\n at VC7 (/$bunfs/root/src/entrypoints/cli.js:7780:11451)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T14:03:15.473Z"},{"error":"Error: Request was aborted.\n at sh$ (/$bunfs/root/src/entrypoints/cli.js:1243:11929)\n at next (native:1:11)\n at vC7 (/$bunfs/root/src/entrypoints/cli.js:7775:9035)\n at next (native:1:11)\n at VC7 (/$bunfs/root/src/entrypoints/cli.js:7780:11451)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T14:03:35.330Z"}]
i spent the last 4 hours debugging on the Mongo, I went to sonnet to try to optimize, high effort, but he can't even write a correct Mongo query, even modeling it with a day of history of identical queries created with opus after having expressly set a verification loop to satisfy the minor capabilities of the model. Please, at least adjust the cost of the verification loops.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗