MCPcopy
hub / github.com/anomalyco/opencode / MarkSessionNotificationsViewed

Function MarkSessionNotificationsViewed

packages/app/src/pages/session.tsx:288–297  ·  view source on GitHub ↗
(props: { sessionID?: () => string | undefined })

Source from the content-addressed store, hash-verified

286}
287
288function MarkSessionNotificationsViewed(props: { sessionID?: () => string | undefined }) {
289 const notification = useNotification()
290 createEffect(() => {
291 const sessionID = props.sessionID?.()
292 if (!notification.ready() || !sessionID) return
293 if (notification.session.unseenCount(sessionID) === 0) return
294 notification.session.markViewed(sessionID)
295 })
296 return null
297}
298
299function SessionProviders(props: ParentProps) {
300 return (

Callers

nothing calls this directly

Calls 1

readyMethod · 0.80

Tested by

no test coverage detected