Skip to content

[Bug] GLM-5.3-Flash spontaneously emits Chinese text mid-response in English agentic contexts (survives context reset) #142

Description

@ZinkDifferent

Bug Report

Model: GLM-5.3-Flash (cloud, via Ollama provider, ollama-cloud endpoint)
Context: Long-running agentic assistant (Hermes Agent framework), English-only user, multi-hour sessions with tool use

Description

GLM-5.3-Flash spontaneously emits Chinese characters mid-response during English conversations, in two distinct patterns:

  1. Inline CJK token bleed — isolated Chinese words embedded inside otherwise-English sentences. Observed twice in one session: 日志 (log/journal) and 黔.
  2. Full Chinese sentences/lines replacing the expected English transitional text. Observed: 已验证托管,HTTP 200。正在使用 URL 引用重新触发两次生成 (intended: 'Hosted and verified, HTTP 200. Re-triggering two generations using URL references').

Reproduction

Frequency: 4 events across 2 independent sessions over 6 days (Aug 28 – Sep 3, 2026), model active roughly 16h/day in agentic loops.

Key observations:

  • All prior context, system prompt, and user messages are entirely English
  • No Chinese content referenced anywhere in the conversation
  • Event 4 occurred in a FRESH session (full context reset + gateway restart) within 7 minutes of session start — this rules out context contamination/caching as the cause
  • The affected turns were agentic tool-loop turns (long outputs, interleaved tool calls), not short chat turns
  • Trigger content appeared Chinese-adjacent in at least one event (URLs on a .me domain, no .cn content in others)

Prior art

Issue #54 reported the identical defect on GLM-5.1 (closed as completed). This report documents that the defect class persists in GLM-5.3-Flash, the current flagship Flash tier served via Ollama Cloud.

Expected behavior

When system prompt and conversation are entirely English, the model should never emit CJK codepoints in responses, regardless of content associations or output length.

Environment

  • Provider: Ollama Cloud (ollama-cloud), model glm-5.3-flash
  • Framework: Hermes Agent (Nous Research) Discord gateway
  • Sessions: multi-hour agentic workflows, 60M+ input tokens/month
  • reasoning_effort: xhigh

Suggested fix

Strengthen language anchoring in the output path for GLM-5.3-Flash: when the active conversation language is English, enforce language consistency for the full response span, particularly in long agentic generations. Alternatively, document a supported decoding-level CJK filter for English-locked deployments.

Relevance

For agentic deployments serving English-only users (our case: a production assistant), any CJK leak is a hard correctness failure. We are currently evaluating a gateway-level output filter as a mitigation; filing this so the root cause gets tracked upstream.

Activity

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