fix(app): hide default session timestamps (#20892)

This commit is contained in:
Shoubhit Dash 2026-04-03 19:21:54 +05:30 committed by GitHub
parent 9d57f21f9f
commit fbfa148e4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 42 deletions

View file

@ -0,0 +1,7 @@
const pattern = /^(New session|Child session) - \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/
export function sessionTitle(title?: string) {
if (!title) return title
const match = title.match(pattern)
return match?.[1] ?? title
}