openclaw - ✅(Solved) Fix [Bug]: WebUI chat, Chinese characters cannot be displayed properly in thinking/working output card [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#43743Fetched 2026-04-08 00:17:36
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
referenced ×4labeled ×2cross-referenced ×1

In the WebUI chat, Chinese characters cannot be displayed properly in the card content of the assistant's thinking/working output.

Root Cause

In the WebUI chat, Chinese characters cannot be displayed properly in the card content of the assistant's thinking/working output.

Fix Action

Fixed

PR fix notes

PR #43843: fix(ui): add font-family to chat-thinking for Chinese character support

Description (problem / solution / changelog)

Summary

Fixes #43743

The .chat-thinking class was missing an explicit font-family declaration, causing Chinese characters to display incorrectly (garbled) in the assistant thinking/working output card.

Changes

  • Added font-family: var(--font-body) to .chat-thinking CSS class
  • This ensures proper Chinese character rendering by using system fonts that support CJK characters

Test Plan

  • All UI tests pass (47 tests)
  • Verified the fix targets the correct CSS class used for thinking output

Changed files

  • docs/gateway-startup-notification.md (added, +92/-0)
  • src/agents/sandbox/prune.ts (modified, +29/-1)
  • src/config/types.gateway.ts (modified, +23/-0)
  • src/cron/store-migration.ts (modified, +4/-2)
  • src/gateway/server-startup.ts (modified, +11/-0)
  • src/gateway/startup-notification.test.ts (added, +62/-0)
  • src/gateway/startup-notification.ts (added, +148/-0)
  • src/index.ts (modified, +10/-0)
  • ui/src/styles/chat/text.css (modified, +1/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Summary

In the WebUI chat, Chinese characters cannot be displayed properly in the card content of the assistant's thinking/working output.

Steps to reproduce

  1. run openclaw dashboard to webUI.
  2. click Toggle assistant thinking/working output button in chat pannel..
  3. Trigger the assistant to perform any task, and garbled characters will appear if the output contains Chinese characters.

Expected behavior

Display Chinese characters correctly in the output card.

Actual behavior

Chinese characters cannot be displayed properly in thinking/working output card.

<img width="1615" height="847" alt="Image" src="https://github.com/user-attachments/assets/3fdfa44b-8937-4f97-8bee-a4ffdb626032" />

OpenClaw version

2026.3.11

Operating system

Windows 11

Install method

Windows powershell

Model

glm-5

Provider / routing chain

openclaw -> glm-5

Config file / key location

No response

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

Fix Plan

To fix the issue of Chinese characters not being displayed properly in the card content of the assistant's thinking/working output, we need to ensure that the character encoding is set correctly.

  • Update the HTML header to include the correct character encoding:
<head>
    <meta charset="UTF-8">
</head>
  • Ensure that the backend API returns the response with the correct encoding. For example, in Python using Flask:
from flask import Flask, jsonify

app = Flask(__name__)

@app.route('/assistant/output', methods=['GET'])
def get_assistant_output():
    output = {'text': 'Chinese characters: '}
    return jsonify(output), 200, {'Content-Type': 'application/json; charset=UTF-8'}
  • If using a template engine, make sure to set the encoding correctly. For example, in Jinja2:
from jinja2 import Template

template = Template('Chinese characters: {{ output }}', encoding='utf-8')

Verification

To verify that the fix worked, run the following steps:

  1. Run openclaw dashboard to webUI.
  2. Click Toggle assistant thinking/working output button in chat panel.
  3. Trigger the assistant to perform any task that includes Chinese characters in the output.
  4. Check if the Chinese characters are displayed correctly in the output card.

Extra Tips

  • Make sure to test the fix with different Chinese characters to ensure that the encoding is correct.
  • If using a database to store the output, ensure that the database is configured to use UTF-8 encoding.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Display Chinese characters correctly in the output card.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: WebUI chat, Chinese characters cannot be displayed properly in thinking/working output card [1 pull requests, 1 participants]