mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
fix(coding-agent): strip all control characters from session display text (#1747)
This commit is contained in:
parent
d1cc787dc9
commit
be66fe65bc
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ class SessionList implements Component, Focusable {
|
||||||
// Session display text (name or first message)
|
// Session display text (name or first message)
|
||||||
const hasName = !!session.name;
|
const hasName = !!session.name;
|
||||||
const displayText = session.name ?? session.firstMessage;
|
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
|
// Right side: message count and age
|
||||||
const age = formatSessionDate(session.modified);
|
const age = formatSessionDate(session.modified);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue