#15998: fix: hide metadata block when only conversation_label is present
size: XS
- Avoids cluttering TUI and simple direct chat sessions
- Only shows conversation info block when there's useful metadata beyond just conversation_label
- Fixes issue where TUI shows 'Conversation info (untrusted metadata): { conversation_label: openclaw-tui }' on every message
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Prevents cluttering TUI and direct chat sessions by only displaying the conversation info block when there's meaningful metadata beyond just `conversation_label`.
- Adds new check `hasUsefulConversationMeta` to filter out cases where only `conversation_label` is present
- Fixes issue where TUI shows 'Conversation info (untrusted metadata): { conversation_label: openclaw-tui }' on every message
- Logic is correct but includes a redundant condition (the first `Object.values().some()` check is unnecessary)
<h3>Confidence Score: 4/5</h3>
- This PR is safe to merge with minimal risk - it's a focused fix that improves UX without breaking functionality
- Score reflects that the change is well-scoped, logically correct, and addresses a specific UX issue. Minor deduction for the redundant condition that could be simplified, but this doesn't affect correctness
- No files require special attention
<sub>Last reviewed commit: 1b51363</sub>
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#7316: fix: /chat dashboard performance
by felipcsousa · 2026-02-02
78.5%
#3721: fix(ui): webchat not displaying chat responses
by maxmaxrouge-rgb · 2026-01-29
77.6%
#22054: fix(auto-reply): Hide message_id and sender metadata in direct chats
by jd316 · 2026-02-20
76.7%
#6521: fix: addressed style issue for chat compose and thread on mobile
by spencer-rafada · 2026-02-01
76.3%
#20231: fix: strip untrusted metadata blocks from chat history
by MisterGuy420 · 2026-02-18
76.0%
#15204: fix(ui): preserve angle-bracketed text in chat
by bufordtjustice2918 · 2026-02-13
75.9%
#22832: fix: strip [[reply_to_current]] directive from chat history
by willkriski · 2026-02-21
75.7%
#14309: fix(ui): resolve chat event session key mismatch
by justonlyforyou · 2026-02-11
75.4%
#6819: fix(tui): handle unstructured tool results and errors in tool execu...
by TreyDong · 2026-02-02
75.3%
#16733: fix(ui): avoid injected newlines when tool output is hidden
by jp117 · 2026-02-15
75.2%