Skip to content

fix(tui): hide tool_use-only messages in chat history#760

Merged
bug-ops merged 1 commit intomainfrom
fix/tui-hide-tool-use-events
Feb 23, 2026
Merged

fix(tui): hide tool_use-only messages in chat history#760
bug-ops merged 1 commit intomainfrom
fix/tui-hide-tool-use-events

Conversation

@bug-ops
Copy link
Owner

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

Summary

  • Filter out assistant messages consisting solely of [tool_use: name(id)] tags when loading chat history
  • Messages with actual text content alongside tool_use tags are preserved
  • Prevents noisy, uninformative entries in restored TUI chat sessions

Changes

  • crates/zeph-tui/src/app.rs: add is_tool_use_only() helper, integrate into load_history()

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy -p zeph-tui -- -D warnings passes
  • 270 zeph-tui tests pass (3 new)

Filter out assistant messages that contain only [tool_use: name(id)]
tags with no meaningful text content, preventing noise in restored
chat sessions.
@github-actions github-actions bot added rust bug Something isn't working size/M labels Feb 23, 2026
@bug-ops bug-ops merged commit 8de3c59 into main Feb 23, 2026
20 checks passed
@bug-ops bug-ops deleted the fix/tui-hide-tool-use-events branch February 23, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rust size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant