Skip to content

[Bug]: TUI doesn't display assistant replies, but webchat works fine #37647

@dechace5-hash

Description

@dechace5-hash

Bug type

Regression (worked before, now fails)

Summary

Assistant messages are not displayed in the terminal TUI, but they work correctly in the webchat interface (http://127.0.0.1:18789/chat).

  • OpenClaw version: 2026.3.2
  • Platform: Linux (systemd service)
  • TUI command: openclaw tui
  • Gateway URL: ws://127.0.0.1:18789

Steps to reproduce

  1. Run openclaw tui in terminal
  2. Send a message to the agent
  3. The agent generates a reply (confirmed in session logs)
  4. But the reply is NOT displayed in the TUI terminal

Expected behavior

Assistant replies should be displayed in both TUI and webchat.

Actual behavior

  • Assistant replies ARE saved to session logs
  • Assistant replies ARE displayed in webchat interface
  • Assistant replies are NOT displayed in terminal TUI
  • No error messages shown

OpenClaw version

2026.3.2

Operating system

ubuntu

Install method

No response

Logs, screenshots, and evidence

From session file (~/.openclaw/agents/main/sessions/74838bc8-0804-4408-a250-2513894ee903.jsonl):
{"type":"message","id":"028d1af0","parentId":"6d8f0156","timestamp":"...","message":{"role":"assistant","content":[{"type":"text","text":"在呢!咋啦?😊"}]...}} The message exists in the session but is not shown in TUI.

Impact and severity

Image

Additional information

Additional Notes:

  • Session logs show messages are being processed correctly
  • The issue persists across multiple messages
  • TUI receives user messages and sends them to the agent
  • Only the display of assistant responses is broken

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now failsstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions