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
- Should max size be per-tool config only, or also a session override?
- For never-again: should image attachment paths share the same size resolver?
Fork mirror of a sealed OSS review draft. Not posted upstream.
Why this matters
Hard-coded webfetch caps block legitimate large pages and give no config escape hatch.
Evidence
Tip
bfb162f389a89b807cd5b538a9c3c7c1169816ef:packages/opencode/test/tool/webfetch.test.ts (resolveMaxResponseSize)webfetch.test.ts8/8 passInvariant: 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
Fork mirror of a sealed OSS review draft. Not posted upstream.
bfb162f389a89b807cd5b538a9c3c7c1169816efanomalyco/opencode#46812