close: stop a simulator or emulator that the session's open booted
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- android, ios, typescript
- Bereich
- backend, cli, mobile-dev
Rechercherichtung
Start with markSelectionBootOccurred in packages/device-selection/src/device-selection-resolver.ts to see where the boot fact is set, then trace how the session stores it and where the close path is handled in the daemon. The close help in packages/command-surface/src/management/app.ts and the shutdown policy (ADR 0029) show what else changes. Done means the daemon tests for boot-owned, pre-booted and policy-denied closes pass, and a live open-then-close leaves the device in the expected state. Resolve the open decisions with a maintainer before you start.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Purpose
Agents leave local simulators and emulators running after they finish. open boots a stopped device on its own (ensureBootedSimulator and the Android boot path), but close only stops the device with an explicit --shutdown. An overnight agent run on one host left many booted simulators behind. In that run, 42 close requests and zero close --shutdown requests were logged.
The daemon already knows when open booted the device: markSelectionBootOccurred in packages/device-selection/src/device-selection-resolver.ts sets selection.bootOccurred: true. No close or teardown path uses that fact.
The rule is "leave the device as you found it". If a session's open booted a local simulator or emulator, close stops it. If the device was already running, close leaves it running.
Required behavior
- The session records whether its
openbooted the local virtual device. Provider and physical targets never record a boot (this matchesmarkSelectionBootOccurred). - If the session booted the device, plain
closestops it through the same shutdown capability asclose --shutdown. This applies to every local simulator and emulator: iOS, tvOS, visionOS, watchOS, and Android. - If the device was already booted before
open, plaincloseleaves it running. This is the current behavior. close --shutdownkeeps its current meaning: it always stops a local simulator or emulator.- Daemon policy that denies
device-shutdown(ADR 0029) also blocks the implicit stop. In that caseclosesucceeds and reports that the device was kept running. - The
closeresponse reports the implicit stop indata.shutdown, the same as an explicit--shutdown. - A boot-owned device does not keep a warm iOS runner after
close, because the device stops.
Open decisions
- Should there be an opt-out for an agent that booted a device and wants it to stay up (for example
close --keep-device)? A new flag followsdocs/agents/cli-flags.md. - Should graceful daemon shutdown, or session idle expiry, also stop devices that its sessions booted? That would cover agents that never call
close.
Completion conditions
- Daemon tests: a session that booted a simulator or emulator stops it on plain
close. A session on a device that was already booted does not stop it. Policy denial keeps the device running andclosestill succeeds. - Live check on a stopped iOS simulator and a stopped Android emulator:
openthenclose, and the device ends shut down. With a pre-booted device, it ends booted. - Update the help and docs to describe the new default:
closehelp inpackages/command-surface/src/management/app.ts, the lifecycle facts andworkflow/manual-qa/validatetopics insrc/commands/schema/cli-help*.ts,website/docs/docs/sessions.md, and the skills. The interim instructions that tell agents to add--shutdowncan then become plainclose. - Changelog/release note entry for 0.22, because the default changes.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 5.2k
- Forks
- 359
- Ø Merge
- 13 Std. 23 Min.
- Gemergte PRs (30 T.)
- 655
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 callstack/agent-device
-
iOS alert wait: the last poll can get ~30 ms and turns "no alert" into a failed readEvtl. vergeben @pcbeingused333 hat das vor 3 Tagen übernommen. Offenbug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
callstack/agent-device#4018 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
callstack/agent-device#1869 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 5/100
callstack/agent-device#4205 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
callstack/agent-device#4204 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
callstack/agent-device#4203 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstack/agent-device
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
riverqueue/river#1576 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bug] A prompt queued during a run is assessed without its textEvtl. vergeben @jwiegley hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DevMortimer/pi-warden#211 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
mattermost/compass-design#191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add unit tests for the organization admin role checkEvtl. vergeben @SaffuSafwan hat das heute übernommen. Offenarea/core good first issue help wanted
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
elmohq/elmo#1095 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
HorusGoul/trizum#559 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag