refactor(opencode): simplify tool output disable config
This commit is contained in:
parent
d4f83ba2b7
commit
5d929f78c3
7 changed files with 14 additions and 42 deletions
|
|
@ -361,32 +361,26 @@ You can control when tool output is truncated using the `tool_output` option. Wh
|
|||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"tool_output": {
|
||||
"truncate": true,
|
||||
"max_lines": 2000,
|
||||
"max_bytes": 51200
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
- `truncate` - Truncate tool output when it exceeds a configured threshold (default: `true`).
|
||||
- `max_lines` - Maximum number of lines before output is truncated (default: `2000`).
|
||||
- `max_bytes` - Maximum size in bytes before output is truncated (default: `51200`).
|
||||
|
||||
These thresholds apply to output handled by OpenCode's shared truncation layer, including MCP and plugin tool output. Individual tools that page or cap their own results can have separate limits.
|
||||
|
||||
To disable shared tool output truncation, set `truncate` to `false`:
|
||||
To disable shared tool output truncation, set `tool_output` to `false`:
|
||||
|
||||
```json title="opencode.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"tool_output": {
|
||||
"truncate": false
|
||||
}
|
||||
"tool_output": false
|
||||
}
|
||||
```
|
||||
|
||||
`truncate: false` cannot be combined with `max_lines` or `max_bytes`; thresholds only apply when truncation is enabled.
|
||||
|
||||
---
|
||||
|
||||
### Models
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue