feat(push): smart push queueing with page-visibility fast path and app-ping/pong fallback

This commit is contained in:
2026-06-04 22:10:48 -04:00
parent fc0527e9e7
commit 4e6dfb4726
16 changed files with 192 additions and 60 deletions
+4
View File
@@ -8,6 +8,8 @@ export const WS = {
SET_PERMISSION_MODE: 'set-permission-mode',
SET_MODEL: 'set-model',
PLAN_RESPONSE: 'plan-response',
PAGE_VISIBILITY: 'page-visibility',
APP_PONG: 'app-pong',
// Server → Client
SESSION_STATE: 'session-state',
SESSION_CREATED: 'session-created',
@@ -39,6 +41,8 @@ export const WS = {
REVIEW_ENDED: 'review-ended',
// Task Progress
TASK_STATE: 'task-state',
// Push notification coordination
APP_PING: 'app-ping',
} as const;
export type WsType = typeof WS[keyof typeof WS];