Skip to content

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

Closed as not planned

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?

Activity

  1. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. rekram1-node commented on May 27, 2026

    @rekram1-node
    Contributor

    hm good point ig its not rlly customizable rn

  3. wellescastro commented on May 29, 2026

    @wellescastro
    Author

    hm good point ig its not rlly customizable rn

    Yeah, I started a draft with the potential fix #29896

  4. rekram1-node commented on Jun 23, 2026

    @rekram1-node
    Contributor

    Automated: closing question issues.

    GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.

    If this is a bug or feature request, please open a new issue with the appropriate template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions