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 — Unescaped binary response scrambles TUI, possible code injection · Issue #6216 · anomalyco/opencode

Unescaped binary response scrambles TUI, possible code injection #6216

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Unescaped binary response scrambles TUI, possible code injection#6216
Copy link
Assignees
rekram1-node

Description

@shakeelmohamed
shakeelmohamed
opened on Dec 26, 2025
Issue body actions

Description

In plan mode, a prompt like analyze this image <URL> when <URL> does not contain a file extension appears to return a raw binary mess and can scramble the entire TUI.

With mixed results, some extreme hallucinations may also occur.

  • In a new session with the above prompt, unexpected Python code with Chinese characters have been printed in a long-running response for several minutes with no end in site. (edit: this single response ran for 24m 59s)
  • Another session began spewing some science-fiction narrative

I am hesitant to try this prompt in build mode because arbitary code execution seems likely.

Response when viewing a session like this by link in browser:

I see there was an issue fetching the image content. The URL appears to be a valid Unsplash image URL, but the fetch returned binary JPEG data instead of the expected markdown/text format. Let me try a different approach to analyze this image.

OpenCode version

v1.0.201, v1.0.203

Steps to reproduce

  1. New opencode session
  2. Switch to plan mode
  3. Enter this prompt. I have reproduced this bug with multiple URLs without a file extension.
analyze this image https://framerusercontent.com/images/qC0cuuQpKdCPD4vp677H00eV8LE.png?width=2200&height=1203

(edit: the following URL does not have this issue in today’s v1.0.203 release)

analyze this image https://images.unsplash.com/photo-1766445318570-1dc4bf3f5d79?w=900&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwzfHx8ZW58MHx8fHx8
  1. Watch the runaway train.

Screenshot and/or share link

Image Image Image Image

Operating System

MacOS 14.8, Docker

Terminal

Ghostty v1.2.3

Activity

  1. shakeelmohamed
    added
    bugSomething isn't working
    on Dec 26, 2025
  2. github-actions
    assigned
    rekram1-node
    on Dec 26, 2025
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    perfIndicates a performance issue or need for optimization
    on Dec 26, 2025
  4. github-actions commented on Dec 26, 2025

    @github-actions
    github-actionsBot
    on Dec 26, 2025 – with GitHub Actions
    Contributor
    More actions

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

    • Unusable scrambled TUI #2762: Unusable scrambled TUI (similar TUI corruption issues)
    • [Bug] TUI fails to render with raw ANSI output and critical memory leak (72.5G VIRT) on startup #6119: TUI fails to render with raw ANSI output and critical memory leak (TUI rendering corruption)
    • Can’t use on remote machine via SSH — issues with text rendering / layout #2843: Can't use on remote machine via SSH — issues with text rendering/layout (TUI rendering issues)
    • tui not working well with emacs-libvterm. claude and codex work fine #2859: TUI not working well with emacs-libvterm (TUI compatibility issues)
    • fix: Clipboard image paste fails with AI_DownloadError due to binary corruption and encoding mismatch #3816: Clipboard image paste fails with AI_DownloadError due to binary corruption (binary data handling)

    Feel free to ignore if none of these address your specific case.

  5. thdxr commented on Mar 25, 2026

    @thdxr
    thdxr
    on Mar 25, 2026
    Member
    More actions

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

  6. thdxr
    removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    perfIndicates a performance issue or need for optimization
    on May 3, 2026
  7. rekram1-node
    closed this as not plannedon May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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.