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 — AI_APICallError - base64 encoded image pasted · Issue #4983 · anomalyco/opencode

AI_APICallError - base64 encoded image pasted #4983

New issue
Copy link
New issue
Copy link
Closed
Closed
AI_APICallError - base64 encoded image pasted#4983
Copy link
Assignees
rekram1-node
Labels
bugSomething isn't working

Description

@paka63
paka63
opened on Dec 2, 2025
Issue body actions

Description

After pasting an image into the chat which was encoded to base64, the original image was transferred to Anthropic Claude, but was being included in subsequent messages causing an AI_APICallError. Either we need to save the image locally and transmit a temporary path or use the path of the original file rather than encoding it in the message chat. Also, Opencode froze afterwards with no error messages or response so we are not handling the error gracefully.

OpenCode version

1.0.126

Steps to reproduce

  1. Select an image
  2. Clipboard copy image
  3. Paste image in opencode chat
  4. Continue to interact with model until it no longer continues.

Screenshot and/or share link

No response

Operating System

Ubuntu 25.04

Terminal

GNOME Terminal

Activity

  1. paka63
    added
    bugSomething isn't working
    on Dec 2, 2025
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 2, 2025
  3. github-actions commented on Dec 2, 2025

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

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

    • Cannot paste image on Zed #4687: Cannot paste image on Zed - relates to image pasting functionality across different terminals/editors
    • Images can not be dragged and dropped #4668: Images can not be dragged and dropped - relates to image handling when importing images via file paths vs clipboard
    • opentui: fatal: props.input.content?.split is not a function. (In 'props.input.content?.split( )', 'props.input.content?.split' is undefined) #4869: opentui: fatal: props.input.content?.split is not a function - relates to message content handling that results in crashes and potential freezing
    • TUI crash: props.input.content?.split is not a function (BMAD resume) #4484: TUI crash: props.input.content?.split is not a function (BMAD resume) - similar content parsing crash that causes UI freezing
    • imagen_generate tool crashes with validation error: expected string, received object #4951: imagen_generate tool crashes with validation error - shows image-related tools can cause validation errors and crashes
    • [FEATURE]: A config file parameter needs to be added to toggle whether image files should be processed when pasting file paths #4573: [FEATURE]: A config file parameter needs to be added to toggle whether image files should be processed - relates to image handling strategy

    The key issues are:

    1. Image pasting/handling may not be properly managed across subsequent messages
    2. Content with certain data types (like base64 images) might cause props.input.content validation failures
    3. Error handling and graceful failure when API calls fail with image data needs improvement

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

  4. rekram1-node
    self-assigned this
    on Dec 2, 2025
  5. rekram1-node
    removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 2, 2025
  6. rekram1-node commented on Dec 2, 2025

    @rekram1-node
    rekram1-node
    on Dec 2, 2025
    Member
    More actions

    ill check it out

    Reacted by paka63
  7. cvakiitho commented on Jan 15, 2026

    @cvakiitho
    cvakiitho
    on Jan 15, 2026
    More actions

    I think I have a similar issue, where thought chain just completely stops with 0 issues displayed in export/logs. BTW is there another option to pass images then base64?

  8. github-actions commented on Mar 26, 2026

    @github-actions
    github-actionsBot
    on Mar 26, 2026 – with GitHub Actions
    Contributor
    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.

  9. github-actions
    closed this as completedon Mar 26, 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

bugSomething isn't working

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.