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?
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?