Skip to content

GLM-5.3 streamed output contains U+FFFD (��) replacing CJK characters #1180

Backlog

Description

@DINOE-1

Summary

With zai-org/GLM-5.3 (reasoning effort high), assistant text occasionally contains ��
mid-sentence, each pair replacing exactly one Chinese character. The literal EF BF BD
bytes are already present in the saved session JSONL, so the character is lost before it
reaches the UI — nothing in the CLI is mangling it on render.

Trace ID: 66f6bb908ed1a4e199c4655fa702d0a7

*text generated by deepseek
*deepseek's full response: 1016d91e318c2e039e0f00f92f201a7a

Expected Behavior

我檢查的��證之後發現分成兩半: # should be 論證

  1. 鬧鐘 ↔ 個人化,互相咬住。 鬧�自動手機響鈴的畫面… # should be 鬧鐘

Actual Behavior

我檢查的��證之後發現分成兩半:

  1. 鬧鐘 ↔ 個人化,互相咬住。 鬧�自動手機響鈴的畫面…

Steps to reproduce the issue

Intermittent; not reproducible on demand. Observed setup:

1. `/model` → `zai-org/GLM-5.3`, reasoning effort `high`.
2. Ask for a long mixed Traditional-Chinese/English explanation that reuses phrases from
earlier in the conversation (e.g. "explain the same design analysis in plain language").
3. Inspect the persisted session JSONL for `EF BF BD`.

Worst case so far: a single tool call whose `old_string` and `new_string` were two nearly
identical ~113-line blocks. That call is where the corruption of a long session began.

Command Code Version

1.93.4

Operating System

Linux

Terminal/IDE

Windows Terminal (WSL2 Ubuntu)

Shell

bash

Session file (optional)

command-code-session-bcf7ee3e.txt

i can't upload jsonl files so i just rename it into .txt file

Fix prompt (optional)

No response

Additional context

No response

Activity

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

Metadata

Metadata

Assignees

No one assigned

    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