Skip to content

[Bug]: TUI doesn't refresh output #40824

Closed as not planned
Closed as not planned

Description

@polowizard

Bug type

Behavior bug (incorrect output/state without crash)

Summary

Description

TUI only shows user's input, no assistant reply at all. Content only appears after response completes. Opening WebUI during wait triggers the dump.

Environment

  • OS: macOS 15.7.4 (24G517)
  • Node: v24.7.0
  • OpenClaw: 2026.3.2
  • TUI: openclaw-tui
  • Model: minimax-cn/MiniMax-M2.5
  • Terminal: Apple Terminal / iTerm2

Environment

  • TUI: openclaw-tui
  • Model: minimax-cn/MiniMax-M2.5
  • Gateway: Normal
  • WebUI: Normal (displays streaming content in real-time)

Initial Analysis

  1. Data is returned normally (otherwise content wouldn't appear at all)
  2. Issue is in TUI's rendering layer
  3. Possibly pi-tui buffer not flushed in time
  4. WebUI access triggers some sync mechanism that forces TUI buffer flush

Additional Findings

  • Both TUI and WebUI use the same Provider (anthropic-message format)
  • TUI may have issues handling MiniMax's thinking block

Steps to reproduce

  1. Open TUI: openclaw tui
  2. Use MiniMax model (minimax-cn/MiniMax-M2.5) and send a message
  3. Observe TUI output

Expected behavior

TUI should display assistant's reply (real-time or buffered)

Actual behavior

  • TUI shows "running" status but no content appears
  • After response completes, all content displays at once
  • If WebUI is opened to view the same session while waiting, content "floods back" to TUI

OpenClaw version

OpenClaw: 2026.3.2

Operating system

  • OS: macOS 15.7.4 (24G517) - Node: v24.7.0 - OpenClaw: 2026.3.2 - TUI: openclaw-tui - Model: minimax-cn/MiniMax-M2.5 - Terminal: Apple Terminal / iTerm2

Install method

npm -g

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Activity

  1. added
    bug
    on Mar 9, 2026
  2. added
    bug:behavior
    on Mar 9, 2026
  3. yboumaiza commented on Mar 27, 2026

    @yboumaiza

    I'm also having a similar issue with the TUI (Haven't tested with the Web UI though).

    I'm a new Linux user and I thought the issue was from the Terminal itself, but I double checked with other Virtual Terminal Apps (like Ghostty), but same issue happens.

    The output text appears stacked without line breaks. Enabling verbose mode makes things worse, output text keeps stacking at the top of the conversation and agent actions (shown in green) are adding up without context. Also, verbose actions are not correctly formatted (almost always).

    But, disabling/enabling verbose mode kind of refreshes the TUI and everything falls back into place with output text showing correctly and agent actions formatted as well.

    Here are details about my setup:

    • OS: Zorin OS 18 (Ubuntu/Debian based Linux)
    • Terminal: GNOME
    • Install method: npm (11.9.0)
    • Node: v24.14.0
    • Openclaw: 2026.3.13
    • Model: Claude Opus 4.6
  4. openclaw-barnacle commented on Apr 25, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  5. added
    stale
    on Apr 25, 2026
  6. yboumaiza commented on Apr 25, 2026

    @yboumaiza

    bump

  7. clawsweeper commented on Apr 26, 2026

    @clawsweeper
    Contributor

    Closing this as duplicate or superseded after Codex automated review.

    Issue #40824 is superseded by the focused TUI streaming PR #69337, with the adjacent watchdog/status portion already handled by #69338/current main. Current main still shows the commentary-only visibility behavior that #69337 targets, so the remaining work should stay tracked there rather than in this broader stale issue.

    What I checked:

    So I’m closing this here and keeping the remaining discussion on the canonical linked item.

    Codex Review notes: model gpt-5.5, reasoning high; reviewed against 0bcb4c95c185.

  8. locked as resolved and limited conversation to collaborators on Apr 28, 2026
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

    bugbug:behaviorstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions