mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-21 10:16:03 +00:00
fix(app): clear late session notifications (#33753)
Co-authored-by: Test <test@opencode.test>
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user