feat: write truncated tool outputs to files#7239
Conversation
|
/review |
|
/review |
…using Bun.Glob for efficient file scanning
|
/review |
|
lgtm |
…ccess to full command results
|
/review |
|
Overall the PR looks good! The main suggestion is a minor style preference:
The code follows good practices, uses Bun APIs appropriately, and the implementation is solid. The |
|
/review |
|
lgtm |
|
This seem to have adverse effects, only 50kb of agents.MD files is read :/ |
|
agents.md files are parsed independent of this |
|
also this changed 0 about reading of files |
|
The cap is OpenCode‑side, not model‑side: It is not /AGENTS.md, that one does read 100% ,it are subfolders like apps/AGENTS.md that seem to have the cap. We added some subfolder AGENTS.md to instructions and the used tokens are suddenly way higher. We also saw that rules on top of apps/AGENTS.md were used by the model, rules on the bottom were completely ignored. I would say at least something is going on ,manually apps/agents.MD to instructions made the file be read 100% |
closes: #7168
closes: #4560
Combines ideas from:
#6234 by @ben-vargas
#6048 by @shantur