MCPcopy Create free account
hub / github.com/anomalyco/opencode / updateUnseen

Function updateUnseen

packages/app/src/context/notification.tsx:235–244  ·  view source on GitHub ↗
(scope: "session" | "project", key: string, unseen: Notification[])

Source from the content-addressed store, hash-verified

233 const meta = { pruned: false, disposed: false }
234
235 const updateUnseen = (scope: "session" | "project", key: string, unseen: Notification[]) => {
236 setIndex(scope, "unseen", key, unseen)
237 setIndex(scope, "unseenCount", key, unseen.length)
238 setIndex(
239 scope,
240 "unseenHasError",
241 key,
242 unseen.some((notification) => notification.type === "error"),
243 )
244 }
245
246 const appendToIndex = (notification: Notification) => {
247 if (notification.session) {

Callers 2

removeFromIndexFunction · 0.85
markViewedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected