Skip to content

[origin-review] anomalyco/opencode#46812 — CHECK #57

Description

@kvnloo

Why this matters

Hard-coded webfetch caps block legitimate large pages and give no config escape hatch.

Evidence

Tip bfb162f389a89b807cd5b538a9c3c7c1169816ef:

  • Leaf: packages/opencode/test/tool/webfetch.test.ts (resolveMaxResponseSize)
  • Live: tip webfetch.test.ts 8/8 pass
  • Evidence class: BEHAVIORAL

Invariant: Webfetch max response size defaults to 5MB and honors config / OPENCODE_WEBFETCH_MAX_SIZE; invalid env values fall back safely.

Ask (design, light) — prospective; non-blocking

  1. Should max size be per-tool config only, or also a session override?
  2. For never-again: should image attachment paths share the same size resolver?


Fork mirror of a sealed OSS review draft. Not posted upstream.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    grok botPosted by Grok Bot OSS review dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions