[PR #13119] docs(tools): document automatic tool output truncation #14523

Open
opened 2026-02-16 18:19:18 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13119

State: open
Merged: No


What does this PR do?

Fixes #4826.

Adds a dedicated section to tools docs explaining automatic tool-output truncation:

  • large outputs are truncated before being fed back into context
  • full output is persisted under ~/.local/share/opencode/tool-output/
  • agents are guided to use grep/read with offset/limit on the saved file

Also clarifies there is no stable user-facing threshold tuning config today.

How did you verify your code works?

  • Cross-checked behavior against current truncation implementation and tool output handling in the codebase.
  • Validation will run in GitHub Actions CI.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13119 **State:** open **Merged:** No --- ### What does this PR do? Fixes #4826. Adds a dedicated section to tools docs explaining automatic tool-output truncation: - large outputs are truncated before being fed back into context - full output is persisted under `~/.local/share/opencode/tool-output/` - agents are guided to use `grep`/`read` with offset/limit on the saved file Also clarifies there is no stable user-facing threshold tuning config today. ### How did you verify your code works? - Cross-checked behavior against current truncation implementation and tool output handling in the codebase. - Validation will run in GitHub Actions CI.
yindo added the pull-request label 2026-02-16 18:19:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14523