openclaw - 💡(How to fix) Fix [Bug]: TUI process starts but UI does not render after gateway restart or kill -9 [1 comments, 2 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#61723Fetched 2026-04-08 02:55:25
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
commented ×1cross-referenced ×1renamed ×1

After restarting the gateway via systemctl --user restart openclaw-gateway or killing the TUI process with kill -9, subsequent openclaw tui invocations start the process and consume ~900MB of memory but never render the interactive UI — only plugin loading log lines appear.

Root Cause

After restarting the gateway via systemctl --user restart openclaw-gateway or killing the TUI process with kill -9, subsequent openclaw tui invocations start the process and consume ~900MB of memory but never render the interactive UI — only plugin loading log lines appear.

Fix Action

Fix / Workaround

  • Affected: Users running openclaw tui on Linux/WSL2 after gateway restarts or process kills

  • Severity: High (blocks TUI workflow — requires new terminal session or reset workaround)

  • Frequency: Reproducible on every attempt after gateway restart or kill -9

  • Consequence: TUI becomes unusable; repeated attempts accumulate zombie-like processes (~900MB each), leading to significant memory consumption

  • Gateway runs as a systemd user service

  • lossless-claw version: 0.5.3

  • The issue appears related to terminal state corruption — when the gateway or TUI process is killed ungracefully, the terminal's alternate screen buffer or raw mode state may not be properly restored, preventing subsequent TUI instances from initializing their UI

  • Running reset in the terminal provides a partial workaround but is not reliable across all attempts

Code Example

neo  6295  106  11.8  3341640  945792 pts/2  Rl+  14:32  openclaw-tui

---

$ openclaw tui
[plugins] [lcm] Plugin loaded (enabled=true, db=~/.openclaw/lcm.db, threshold=0.75)
[plugins] [lcm] Compaction summarization model: (unconfigured)

---

$ openclaw tui
[plugins] [lcm] Plugin loaded (enabled=true, db=~/.openclaw/lcm.db, threshold=0.75)
[plugins] [lcm] Compaction summarization model: (unconfigured)
# <hangs here — no UI rendered>

# In a separate terminal:
$ ps aux | grep openclaw-tui
neo  6295  106  11.8  3341640  945792 pts/2  Rl+  14:32  openclaw-tui
RAW_BUFFERClick to expand / collapse

Bug type

Crash (process/app exits or hangs)

Beta release blocker

No

Summary

After restarting the gateway via systemctl --user restart openclaw-gateway or killing the TUI process with kill -9, subsequent openclaw tui invocations start the process and consume ~900MB of memory but never render the interactive UI — only plugin loading log lines appear.

Steps to reproduce

  1. Run openclaw tui — UI renders normally
  2. Restart the gateway: systemctl --user restart openclaw-gateway
  3. Run openclaw tui again — no UI is rendered

Alternative repro path:

  1. Run openclaw tui — UI renders normally
  2. Kill the TUI process: kill -9 <pid>
  3. Run openclaw tui again — no UI is rendered

Expected behavior

openclaw tui should render its interactive UI after a gateway restart or process kill, matching the behavior of a fresh terminal session.

Actual behavior

The openclaw-tui process starts, prints plugin loading log lines, then hangs without rendering the TUI. The process remains alive consuming significant resources:

neo  6295  106  11.8  3341640  945792 pts/2  Rl+  14:32  openclaw-tui

Output observed before the hang:

$ openclaw tui
[plugins] [lcm] Plugin loaded (enabled=true, db=~/.openclaw/lcm.db, threshold=0.75)
[plugins] [lcm] Compaction summarization model: (unconfigured)

No UI is rendered after these log lines. Multiple openclaw-tui processes accumulate (each ~900MB), suggesting the UI is stuck during initialization. Running reset in the terminal before openclaw tui sometimes restores functionality but the issue persists across attempts.

OpenClaw version

2026.4.5 (3e72c03)

Operating system

Linux (WSL2, kernel 6.6.87.2-microsoft-standard-WSL2)

Install method

pnpm dev

Model

NOT_ENOUGH_INFO

Provider / routing chain

NOT_ENOUGH_INFO

Additional provider/model setup details

The TUI rendering failure occurs regardless of the active model or provider configuration — the issue is reproducible during plugin loading, before any model interaction takes place.

Logs, screenshots, and evidence

Process confirmation showing the TUI process is alive and consuming resources but not rendering:

$ openclaw tui
[plugins] [lcm] Plugin loaded (enabled=true, db=~/.openclaw/lcm.db, threshold=0.75)
[plugins] [lcm] Compaction summarization model: (unconfigured)
# <hangs here — no UI rendered>

# In a separate terminal:
$ ps aux | grep openclaw-tui
neo  6295  106  11.8  3341640  945792 pts/2  Rl+  14:32  openclaw-tui

Impact and severity

  • Affected: Users running openclaw tui on Linux/WSL2 after gateway restarts or process kills
  • Severity: High (blocks TUI workflow — requires new terminal session or reset workaround)
  • Frequency: Reproducible on every attempt after gateway restart or kill -9
  • Consequence: TUI becomes unusable; repeated attempts accumulate zombie-like processes (~900MB each), leading to significant memory consumption

Additional information

  • Gateway runs as a systemd user service
  • lossless-claw version: 0.5.3
  • The issue appears related to terminal state corruption — when the gateway or TUI process is killed ungracefully, the terminal's alternate screen buffer or raw mode state may not be properly restored, preventing subsequent TUI instances from initializing their UI
  • Running reset in the terminal provides a partial workaround but is not reliable across all attempts

extent analysis

TL;DR

The issue can be temporarily worked around by running the reset command in the terminal before invoking openclaw tui again, although this is not a reliable fix.

Guidance

  • Investigate the terminal state corruption hypothesis by checking the alternate screen buffer and raw mode state after killing the TUI process or restarting the gateway.
  • Verify if the issue persists when using a different terminal emulator or configuration.
  • Consider adding a hook to the openclaw-tui startup process to automatically run reset or a similar command to restore the terminal state.
  • Look into the systemd user service configuration for the gateway to see if there are any options to properly clean up after a restart or kill.

Example

No specific code snippet is provided due to the lack of direct code references in the issue, but an example of how one might implement an automatic reset command in a bash script could be:

reset && openclaw tui

This is a very basic example and might need adjustments based on the actual implementation and requirements.

Notes

The provided information suggests a complex interaction between the openclaw-tui, the terminal, and the systemd service. Without more specific details about the implementation, it's challenging to provide a definitive fix. The reset command workaround, although not reliable, points towards a terminal state issue.

Recommendation

Apply the workaround of running reset before openclaw tui as a temporary measure, while further investigating the root cause related to terminal state corruption and the interaction with the gateway service.

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

openclaw tui should render its interactive UI after a gateway restart or process kill, matching the behavior of a fresh terminal session.

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 - 💡(How to fix) Fix [Bug]: TUI process starts but UI does not render after gateway restart or kill -9 [1 comments, 2 participants]