Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { loadHostCatalog } from '../transport/host-store'
import { deriveHostFingerprint } from './push-host-fingerprint'
import { dismissPresentedPushNotification } from './push-tray-dismissal'
import type { DismissNotificationEvent } from './desktop-notification-events'
async function hostFingerprint(hostId: string): Promise<string | null> {
const hosts = await loadHostCatalog().catch(() => [])
const host = hosts.find((item) => item.id === hostId)
return host ? deriveHostFingerprint(host.publicKeyB64) : null
}
export async function dismissHostPushNotification(
event: DismissNotificationEvent,
hostId: string
): Promise<void> {
const fingerprint = await hostFingerprint(hostId)
if (!fingerprint) {
return
}
const target = event.dismissedDelivery ?? event
const fence =
target.notificationEpoch && target.notificationSeq !== undefined ? target : undefined
await dismissPresentedPushNotification(target.notificationId, fingerprint, fence)
}