mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-24 04:47:03 +00:00
Claude Code emits `system/task_notification` and injects `<task-notification>` user messages when a background task finishes. These are fed back to the model so it can continue; they are not user-facing turn boundaries. The hub treated them as events and sent an extra "Task completed / Task failed" notification on every channel (Web Push/toast, FCM, APNs, Telegram, ServerChan) on top of the Ready notification that follows once the agent finishes reacting. Remove the task notification pipeline from the hub: parsing, dispatch, the TaskNotification type, each channel's sendTaskNotification, and the native composer's composeTask. Narrow the composed native type/severity to what the hub emits. Chat timeline display of task summaries and the background task count are unchanged. Update the native contract, PWA, and ServerChan docs to match.