openclaw - 💡(How to fix) Fix Feature Request: Show hostname in TUI status bar [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#56276Fetched 2026-04-08 01:42:50
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Currently the TUI status bar shows:

agent main | session tui-xxx | provider/model | tokens xxk/xxk (xx%)

It would be helpful to also display the hostname in the status bar, especially when connecting to multiple machines via Tailscale.

Root Cause

Currently the TUI status bar shows:

agent main | session tui-xxx | provider/model | tokens xxk/xxk (xx%)

It would be helpful to also display the hostname in the status bar, especially when connecting to multiple machines via Tailscale.

Code Example

agent main | session tui-xxx | provider/model | tokens xxk/xxk (xx%)

---

agent main | host EVE | session tui-xxx | provider/model | tokens xxk/xxk (xx%)
RAW_BUFFERClick to expand / collapse

Description

Currently the TUI status bar shows:

agent main | session tui-xxx | provider/model | tokens xxk/xxk (xx%)

It would be helpful to also display the hostname in the status bar, especially when connecting to multiple machines via Tailscale.

Proposed format

agent main | host EVE | session tui-xxx | provider/model | tokens xxk/xxk (xx%)

Use case

When running OpenClaw on multiple machines (laptop, server, Raspberry Pi), it's easy to lose track of which host you're connected to. Showing the hostname in the status bar provides instant context.

Environment

  • OpenClaw TUI (gateway-client)
  • macOS / Linux
  • Multiple hosts connected via Tailscale

extent analysis

Fix Plan

To display the hostname in the status bar, we need to modify the code that generates the status bar text.

Steps

  • Retrieve the hostname of the machine
  • Modify the status bar text to include the hostname
  • Update the UI to display the new status bar text

Example Code

import socket

# Get the hostname
hostname = socket.gethostname()

# Generate the status bar text
status_bar_text = f"agent main | host {hostname} | session tui-xxx | provider/model | tokens xxk/xxk (xx%)"

# Update the UI to display the new status bar text
# Assuming you have a function to update the status bar text
update_status_bar_text(status_bar_text)

Verification

To verify that the fix worked, run the application and check that the hostname is displayed in the status bar.

Extra Tips

  • Make sure to handle any exceptions that may occur when retrieving the hostname.
  • Consider using a more robust method to retrieve the hostname, such as using the platform module.
  • Update the documentation to reflect the new status bar format.

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…

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 Feature Request: Show hostname in TUI status bar [1 participants]