Skip to content

GLM-5.2 session broken when model foolishly tries to view a screenshot #34113

Closed as not planned

Description

@andrewlucas-bg

Description

For context, the GLM-5.2 model does not support image input.

Testing OpenCode desktop with GLM-5.2 via LiteLLM.

The agent found a skill that involved looking at screenshots and seems to have triggered image input somehow.

The error message itself is fine, since GLM-5.2 does not in fact support image inputs. The problem is that this borked my session. Now every message I send gives me that same error message.

Need to prevent image inputs from contaminating the context for GLM-5.2.

The best case would be an image viewer tool that models like GLM-5.2 could use to get descriptions of images vai a subagent with image capabilities ... but that's a feature request.

Plugins

No response

OpenCode version

OpenCode Desktop v1.17.11

Steps to reproduce

  1. Setup LiteLLM with a fireworks.ai API key
  2. Start a thread in OpenCode desktop running GLM-5.2
  3. Tell it to take / look at a screenshot
  4. Observe "invalid_request_error: This model does not support image inputs"
  5. Same error for subsequent user messages

Operating System

Ubuntu 24.04.3 LTS

Terminal

No response

Activity

  1. changed the title [-]GLM-5.2 session broken when model foolishly tries to read a screenshot[/-] [+]GLM-5.2 session broken when model foolishly tries to view a screenshot[/+] on Jun 26, 2026
  2. github-actions commented on Jun 26, 2026

    @github-actions
    Contributor

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

  3. andrewlucas-bg commented on Jun 26, 2026

    @andrewlucas-bg
    Author

    It is the same issue as 29571. But the bug is deeper than GitHub Copilot or GLM. Harness issue.

  4. Olbrasoft commented on Jun 27, 2026

    @Olbrasoft

    Same use case here — running GLM-5.2 as primary via OpenCode Go subscription and needing a multimodal subagent for occasional screenshot analysis.

    After checking all OpenCode Zen models, the only free multimodal option is MiMo-V2.5 Free (text + image + video + audio). All other free Zen models (Big Pickle, DeepSeek V4 Flash Free, North Mini Code Free, Nemotron 3 Ultra Free) are text-only. MiniMax-M3 and GLM-5V-Turbo are multimodal but pay-per-use.

    Strongly +1 for merging PR #32302 — the "forward parent attachments to subagents" fix is exactly what's needed to make this image-via-subagent workflow work with GLM-5.2 as primary. With proper AGENTS.md instructions directing GLM-5.2 to delegate image inputs to a MiMo-V2.5 Free subagent via Task tool, this would solve the broken-session problem (image error contaminates parent context) without forcing users to manually switch models back and forth.

    Would love to see #32302 merged so we can build an image-analyzer subagent config on top of it.

  5. github-actions commented on Aug 27, 2026

    @github-actions
    Contributor

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

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

Metadata

Metadata

Assignees

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