`tasks.list` returns a restored detached shell with an empty `description` and `command`
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 57/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- backend-api-design
Rechercherichtung
Start at the implementation of session.rpc.tasks.list() and the TaskShellInfo type, then trace how detached shells are restored during client.resumeSession(...). Check how the task metadata and running process ID are persisted and recovered. Done means restored tasks retain their description, command, and PID when available, or the type makes missing values explicit; add or update tests for that behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
After a session is resumed, session.rpc.tasks.list() can return a detached shell that was started before the resume with description: "" and command: "", and without pid. TaskShellInfo types description and command as required strings, so consumers can't tell that this information is missing.
What we saw
VS Code Insiders on macOS (arm64), October 18–19, 2026. VS Code main pins @github/copilot-sdk 1.0.23-preview.5.
-
The agent started a long-running detached shell with the
bashtool (mode: "async",detach: true,shellId: "component-explorer-server", with a description and a command). -
Days later, after VS Code restarted, the session was resumed with
client.resumeSession(...), then resumed again in the same client process after a model change. -
After the second resume,
tasks.list()returned this task, with astatusofrunningoridleand nopid:{ "type": "shell", "id": "component-explorer-server", "description": "", "command": "", "startedAt": "2026-10-16T16:44:19.681Z", "attachmentMode": "detached" }
VS Code only saw the shell after the second resume, and kept listing it this way for the next 8+ hours.
Expected
- A restored detached shell keeps the
descriptionandcommandit was started with, and itspidwhile the process is running. - If those can't be recovered,
TaskShellInfomarks them optional, so consumers know to handle missing values.
Impact
VS Code shows active background shells from tasks.list(). This one rendered as a row with no name, and because VS Code only offers Stop for a detached shell with a pid, it couldn't be stopped. VS Code is adding a fallback name in https://github.com/microsoft/vscode/pull/342588.
- Vorherrschende Sprache
- Java
- Sterne
- 10.7k
- Forks
- 1.5k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/copilot-sdk
-
Rust: ElicitationRequest drops the tool call id from elicitation.requestedEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
github/copilot-sdk#2900 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
github/copilot-sdk#2876 · 1 Kommentar · 1 Reaktion ·
-
Python ModelLimits drops max_output_tokens from model metadataEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
github/copilot-sdk#2798 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
github/copilot-sdk#2759 ·
-
docs/AGENTS.md is repo authoring guidance, but everything in docs/ gets publishedEvtl. wieder frei Ein Pull Request dazu wurde ohne Merge geschlossen. Offendocumentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
github/copilot-sdk#2758 ·
Alle Issues in github/copilot-sdk
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
ls1intum/thesis-management#1473 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
LunaDeerMC/Dominion#301 · 1 Kommentar ·
-
[FEATURE] Expose external refresh, node-level translog and warmer statsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenuntriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
opensearch-project/opensearch-prometheus-exporter#680 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 2 Tagen