Skip to content

feat(tui): add config option to hide message source labels#505

Merged
bug-ops merged 1 commit intomainfrom
fix/488/tui-source-labels
Feb 18, 2026
Merged

feat(tui): add config option to hide message source labels#505
bug-ops merged 1 commit intomainfrom
fix/488/tui-source-labels

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 17, 2026

Summary

  • Add [tui] config section with show_source_labels option (default: false)
  • When disabled, role prefixes ([user], [zeph], [bash], [mcp], etc.) are hidden in chat messages
  • Message colors already distinguish roles, making labels redundant visual noise

Changes

  • crates/zeph-core/src/config/types.rs — new TuiConfig struct with serde defaults
  • config/default.toml — new [tui] section
  • crates/zeph-tui/src/app.rsshow_source_labels field with getter/setter
  • crates/zeph-tui/src/widgets/chat.rs — conditional label rendering in chat and tool messages
  • src/main.rs — thread config to TUI app

Test plan

  • cargo clippy --workspace -- -D warnings passes
  • cargo +nightly fmt --check passes
  • cargo nextest run --workspace --lib --bins — 1585 tests pass
  • Config deserialization works with and without [tui] section (serde default)
  • Env override: ZEPH_TUI__SHOW_SOURCE_LABELS=true

Closes #488

@github-actions github-actions bot added enhancement New feature or request size/M documentation Improvements or additions to documentation rust core config labels Feb 17, 2026
Add [tui] config section with show_source_labels option (default: false).
When disabled, role prefixes like [user], [zeph], [bash] are hidden
since message colors already distinguish roles.

Closes #488
@bug-ops bug-ops force-pushed the fix/488/tui-source-labels branch from addc62f to 7506346 Compare February 17, 2026 23:52
@bug-ops bug-ops enabled auto-merge (squash) February 17, 2026 23:52
@bug-ops bug-ops merged commit d4635a5 into main Feb 18, 2026
18 checks passed
@bug-ops bug-ops deleted the fix/488/tui-source-labels branch February 18, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config core documentation Improvements or additions to documentation enhancement New feature or request rust size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI: add config option to hide message source labels

1 participant