[FEATURE]:Clipboard image pasting not supported with GLM-4.7 model + ZAI MCP in OpenCode #4440

Open
opened 2026-02-16 17:43:47 -05:00 by yindo · 2 comments
Owner

Originally created by @darkmanno6 on GitHub (Jan 8, 2026).

Originally assigned to: @fwang on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

enviroment

mac os 15.6
opencode:1.1.6
ide: vscode

Describe the enhancement you want to request

When using the GLM-4.7 model + ZAI MCP, copying an image from the clipboard and pasting it into OpenCode for recognition fails (no recognition occurs). However, directly @mentioning an image file works fine and correctly recognizes the image content.

Here is a screenshot:

Image

Note: Copy-pasting images from clipboard works normally with Claudecode + GLM-4.7 + ZAI MCP.

Request: Please add support for clipboard image recognition.

Originally created by @darkmanno6 on GitHub (Jan 8, 2026). Originally assigned to: @fwang on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### enviroment mac os 15.6 opencode:1.1.6 ide: vscode ### Describe the enhancement you want to request When using the GLM-4.7 model + ZAI MCP, copying an image from the clipboard and pasting it into OpenCode for recognition fails (no recognition occurs). However, directly @mentioning an image file works fine and correctly recognizes the image content. Here is a screenshot: <img width="1738" height="1120" alt="Image" src="https://github.com/user-attachments/assets/4722a4fa-4fc9-4828-a952-26c74eb4d230" /> **Note:** Copy-pasting images from clipboard works normally with Claudecode + GLM-4.7 + ZAI MCP. **Request:** Please add support for clipboard image recognition.
yindo added the discussionzen labels 2026-02-16 17:43:47 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2026):

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

  • #6331: pasting images doesn't work on konsole, linux - Similar clipboard image pasting issue on Linux
  • #4077: In Memory Image can't be Pasted in Opencode After TUI Upgrade - Clipboard image paste functionality broken after TUI upgrade
  • #4687: Cannot paste image on Zed - Clipboard image paste not working in specific terminal environment
  • #4004: On macOS, copying an image file from Finder results in pasting a generic image icon - Image clipboard issues with image file handling
  • #4983: AI_APICallError - base64 encoded image pasted - Issues with pasted images in chat
  • #2944: Getting "AI_APICallError: Invalid API parameter, please check the documentation." in opencode with zAI glm 4.6 - Similar API parameter error with GLM model and ZAI

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

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #6331: pasting images doesn't work on konsole, linux - Similar clipboard image pasting issue on Linux - #4077: In Memory Image can't be Pasted in Opencode After TUI Upgrade - Clipboard image paste functionality broken after TUI upgrade - #4687: Cannot paste image on Zed - Clipboard image paste not working in specific terminal environment - #4004: On macOS, copying an image file from Finder results in pasting a generic image icon - Image clipboard issues with image file handling - #4983: AI_APICallError - base64 encoded image pasted - Issues with pasted images in chat - #2944: Getting "AI_APICallError: Invalid API parameter, please check the documentation." in opencode with zAI glm 4.6 - Similar API parameter error with GLM model and ZAI Feel free to ignore if none of these address your specific case.
Author
Owner

@Leslack-hub commented on GitHub (Jan 22, 2026):

所以现在解决了吗?

@Leslack-hub commented on GitHub (Jan 22, 2026): 所以现在解决了吗?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4440