Skip to content

fix(core): return read images as media#31030

Closed
opencode-agent[bot] wants to merge 1 commit into
fix/v2-read-errorsfrom
fix/v2-read-images
Closed

fix(core): return read images as media#31030
opencode-agent[bot] wants to merge 1 commit into
fix/v2-read-errorsfrom
fix/v2-read-images

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore V1-style PNG, JPEG, GIF, and WebP read attachments in Core V2
  • sniff image signatures instead of trusting extensions alone
  • preserve image resize defaults and attachments.image configuration
  • enforce configured dimensions/base64 size with PNG/JPEG fallback candidates

Test plan

  • bun test test/tool-read.test.ts test/tool-glob.test.ts test/tool-grep.test.ts from packages/core
  • bun typecheck from packages/core
  • bun turbo typecheck from the repository root

Stack

Depends on the read-error PR.

@kitlangton

Copy link
Copy Markdown
Contributor

Superseded by #31038, which includes the image/media path plus provider continuation, bounded normalization, packaging, and durable-media fixes on current .

@kitlangton kitlangton closed this Jun 5, 2026
@kitlangton

Copy link
Copy Markdown
Contributor

Correction: #31038 contains the replacement image/media implementation on current dev, including provider continuation, bounded normalization, packaging, and durable-media fixes.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant