-
Notifications
You must be signed in to change notification settings - Fork 3
TUI: add config option to hide message source labels #488
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
Every chat message displays a source label prefix ([user], [zeph], [bash], [mcp], etc.). These labels add visual noise and are often redundant since message styling (color) already distinguishes roles. There is no way to disable them.
Proposed solution
Add a [tui] config section with show_source_labels = false (default).
Changes
-
crates/zeph-core/src/config/types.rs— addTuiConfigstruct:pub struct TuiConfig { pub show_source_labels: bool, // default: false }
Add
pub tui: TuiConfigfield to rootConfig. -
config/default.toml— add section:[tui] show_source_labels = false
-
crates/zeph-tui/src/widgets/chat.rs— conditionally render labels:- Lines ~116-121: skip
[user]/[zeph]/[system]prefix when disabled - Lines ~224-225: skip
[bash]/[mcp]tool name prefix when disabled - Adjust indent calculation accordingly
- Lines ~116-121: skip
-
Thread config to chat widget — pass
show_source_labelsbool through the existing render path (theAppstruct already has access to config).
Notes
- Default is
false(labels hidden) since message colors already indicate the source - Env override:
ZEPH_TUI__SHOW_SOURCE_LABELS=true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request