mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
fix(coding-agent): strip all control characters from session display text (#1747)
This commit is contained in:
committed by
GitHub
Unverified
parent
d1cc787dc9
commit
be66fe65bc
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user