fix(coding-agent): strip all control characters from session display text (#1747)

This commit is contained in:
Jozsef Lazar 2026-03-03 14:30:45 +01:00 committed by GitHub
parent d1cc787dc9
commit be66fe65bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -440,7 +440,7 @@ class SessionList implements Component, Focusable {
// Session display text (name or first message)
const hasName = !!session.name;
const displayText = session.name ?? session.firstMessage;
const normalizedMessage = displayText.replace(/\n/g, " ").trim();
const normalizedMessage = displayText.replace(/[\x00-\x1f\x7f]/g, " ").trim();
// Right side: message count and age
const age = formatSessionDate(session.modified);