You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: TUI Not Displaying Responses When Model Output Lacks <final> Tag #34537
When using openclaw tui to interact with the agent, responses generated by the model are sometimes not displayed in the TUI interface, even though the model successfully generates a reply.
Steps to Reproduce
Start OpenClaw container: docker run -d ... openclaw-gateway
Connect via TUI: openclaw tui
Send a message that triggers thinking (e.g., a complex prompt)
Observe that the response is not displayed in TUI
Root Cause
The Gateway relies on the presence of tags in the model's output to determine whether to send stream=assistant events to the TUI client.
When the model outputs text without the tag (which happens when thinking is enabled and the model generates thinking content), the Gateway skips sending the stream=assistant event entirely.
Evidence
From session log (8a5909b9-8993-486a-b92c-3b659775e1af.jsonl):
Working case (first message "你好"):
{"type":"text","text":"你好!有什么我可以帮你的吗?"}
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh repro steps.
Activity
Dingding-leo commentedon Mar 4, 2026
Thanks for the detailed bug report! This is a clear regression in 2026.3.2.
Root cause analysis is spot on:
Suggested fix approach:
Graceful fallback (recommended):
Thinking-aware parsing:
Model-side fix:
Quick workaround for users:
Would you like me to help investigate the gateway code to identify where to add the fallback?
byungsker commentedon Mar 4, 2026
fix: TUI 显示模型输出(不依赖 final 标签)
openclaw-barnacle commentedon Apr 14, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Apr 21, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh repro steps.