fix(app): clear late session notifications (#33753)

Co-authored-by: Test <test@opencode.test>
This commit is contained in:
Brendan Allan 2026-06-25 10:21:42 +08:00 committed by GitHub
parent 5ca19947d9
commit ba2ba770d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,7 @@ export default function NewLayout(props: ParentProps) {
createEffect(() => setV2Toast(true))
createEffect(() => {
if (!notification.ready() || !params.id) return
if (notification.session.unseenCount(params.id) === 0) return
notification.session.markViewed(params.id)
})