GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): application/octet-stream file attachments crash the session · Issue #35697 · anomalyco/opencode

fix(server): application/octet-stream file attachments crash the session #35697

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
fix(server): application/octet-stream file attachments crash the session#35697
Copy link
Assignees
jlongster

Description

@jwcrystal
jwcrystal
opened on Jul 7, 2026
Issue body actions

Bug description

When a client sends a file attachment with mime: "application/octet-stream" (unrecognized MIME type), the server pushes it as a file part that reaches provider converters. The converters only handle image/* (and application/pdf in responses), so they throw UnsupportedFunctionalityError, crashing the session.

Reproduction

  1. Send a file with unknown/unspecified MIME type via any client (e.g. drag a binary file without recognized extension)
  2. The server gate at message-v2.ts:212 converts it to a file part
  3. The copilot converter receives mediaType: "application/octet-stream" and throws

Root cause

PR #23501 (custom provider image support) set image: true capability, which let non-image file parts flow through the AI SDK to converters that can only handle images.

Expected behavior

Non-media file parts should be converted to text placeholders at the gate level, and converters should silently skip unrecognized file types instead of crashing.

Activity

  1. github-actions
    assigned
    jlongster
    on Jul 7, 2026
  2. github-actions commented on Sep 6, 2026

    @github-actions
    github-actionsBot
    on Sep 6, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  3. github-actions
    closed this as not plannedon Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.