wrapper/child exit telemetry conflates SIGTERM-killed vs drained exits; completion notice carries no disposition for detached helpers

Offen
#5,597 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
42/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
cli, observability

Rechercherichtung

Start by tracing the attached async shell task lifecycle from wrapper launch through supervisor teardown and the completion notification; the issue names no source files or tests. Check how exit status and captured stdout are currently reported, then find the relevant telemetry tests. Done means the completion signal distinguishes signaled from normal exits, reports surviving descendants, and indicates whether stdout is available.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:tools

Build: 1.0.115.

Repro:

  1. Start an attached async shell task whose child spawns a long-lived grandchild (e.g. a polling waiter).
  2. Kill the wrapper (session teardown / supervisor reap).

Actual: the agent is notified "command completed with exit code 143" while the grandchild may still run (observed: live waiter with zero polls recorded under that sess), and conversely exit-3-style "duplicate guard" early-exits are indistinguishable from real termination without reading stdout. The disposition (drained vs killed vs detached-survived) is not part of the completion signal.

Expected: completion telemetry should include: signaled-vs-exited, whether descendants survived, and stdout-available flag. Adjacent prior: #4144 (terminal reasons hidden for startup/turn failures).

Vorherrschende Sprache
Python
Sterne
11.5k
Forks
2k
Ø Merge
6 Std. 34 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.