fix: polish session picker filtering (#1271) (thanks @Whoaa512)
This commit is contained in:
@@ -84,7 +84,8 @@ export function deriveSessionTitle(
|
||||
}
|
||||
|
||||
if (firstUserMessage?.trim()) {
|
||||
return truncateTitle(firstUserMessage.trim(), DERIVED_TITLE_MAX_LEN);
|
||||
const normalized = firstUserMessage.replace(/\s+/g, " ").trim();
|
||||
return truncateTitle(normalized, DERIVED_TITLE_MAX_LEN);
|
||||
}
|
||||
|
||||
if (entry.sessionId) {
|
||||
|
||||
Reference in New Issue
Block a user