no disposition observability for notifications (queued/surfaced/dropped + reason)

未關閉
#5,596 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github, python
領域
cli, observability

研究方向

Start by tracing how background-task completion notifications are sent, queued, and surfaced, then inspect the hook payload and event logging paths. The issue names no files or tests, so first locate those entry points and check the related reports #5508, #5370, and #4755 for context. Done means exposing joinable notification ids and disposition events, and documenting retention semantics.

由索引模型根據 Issue 內容生成。

描述

area:agents area:plugins

Build: 1.0.115.

Repro / observation: long-lived sessions rely on background-task completion notifications to wake idle turns. Across a week of instrumented operation (1070 events journaled on one machine via our own hook, plus cross-machine ledger comparisons), every wake was accounted for — but historical incidents exist where a notification was marked seen by the runtime and never surfaced to the model turn (external symptom identical to a dead consumer; our forensic example involved a 20-minute gap that self-resolved, and a documented 43-minute class). See also #5508 (notification held 60s while another background task runs) and #5370 (agent output withheld until next user turn).

Actual: no API/hook/log exposes per-notification disposition (queued / surfaced-at / dropped-with-reason). External tooling can only infer liveness indirectly (heartbeat ledgers), which cannot distinguish "notification lost", "held by queue", or "turn consumed it without acting".

Expected: expose disposition: (a) include a monotonic notification id in hook payloads so ledgers can join send↔surface, (b) emit a NotificationDiscarded-style event (reason: queue-retention, session-state, etc.), (c) document retention semantics. This turns a class of "silent wedge" bug reports (incl. #5508/#5370/#4755) into measurable, joinable evidence for both users and the team.

主要語言
Python
星號
11.5k
分支
2k
平均合併
6 小時 34 分鐘
30 天內合併 PR
3

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。