Skip to content

Should the Read tool respect opencode config values for max_bytes and max_lines? #29604

@wellescastro

Description

@wellescastro

Question

The Read tool currently uses hardcoded constants for truncation: 50KB for bytes and 2000 for line count, instead of honoring configuration from tool_output.max_bytes or tool_output.max_lines in opencode config.

Other tools (such as Shell) do respect these config values via the Truncate service. Is this hardcoded behavior in the Read tool by design, or is it ok to adjust Read's behavior to use the Truncate service/configured limits like the other tools?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions