Limrun iOS appstate succeeds with a cached app after instance termination
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ios, typescript
- Bereich
- backend-api-design, mobile
Rechercherichtung
Start with packages/provider-limrun/src/facts-runtime.ts and trace how the Apple session handler handles an unavailable iOS appState and runtime read errors. Reproduce with the listed connect, open, instance deletion, appstate --json, and snapshot commands. Done means instance loss cannot return a successful cached app identity; the issue notes that obtaining an authoritative foreground bundle ID remains unresolved.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
On agent-device 0.21.31, appstate --json on a Limrun iOS session returns the last app recorded by open, even after the instance is terminated. A successful result can therefore describe an app on a device that no longer exists.
Reproduction
- Create a labeled Limrun iOS instance through
@limrun/api. - Attach a fresh daemon with
LIM_IOS_INSTANCE_URLandLIM_IOS_INSTANCE_TOKEN. Do not give the daemon an organization API key. - Run
connect limrun --platform ios --session reproandopen com.apple.Preferences --platform ios --session repro. - Delete the instance through the Limrun control plane.
- Run
appstate --json --platform ios --session repro, thensnapshot -i --platform ios --session repro.
Measured result: appstate exits 0 and returns appBundleId: "com.apple.Preferences" with source: "session". snapshot exits 1. The label still has exactly one instance and it is terminated.
Expected result
appstate should report a live foreground identity or fail without an app identity when it cannot read the device. In particular, an instance loss must not turn into a successful cached answer.
Source trace
The Limrun owner marks iOS appState unavailable in packages/provider-limrun/src/facts-runtime.ts. The Apple session handler drops that refusal and falls back to session.appBundleId. It also drops non-cancellation errors from the runtime read.
A complete fix also needs an authoritative foreground bundle ID. The iOS client in @limrun/api exposes an accessibility tree with an application PID and label, but no bundle ID. A live attempt to run simctl spawn booted launchctl list was refused because the provider restricts spawn to defaults, notifyutil, and limproxy. Matching app display names would be ambiguous and would not establish app identity.
Our consumer uses the returned bundle ID to scope saved credentials. We are preparing a fork update and would like to carry the smallest fix that can later be removed.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 5.1k
- Forks
- 339
- Ø Merge
- 12 Std. 57 Min.
- Gemergte PRs (30 T.)
- 653
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
-
Limrun iOS fill reports success but drops non-ASCII textEvtl. vergeben @mvanhorn hat das vor 4 Tagen übernommen. Offenbug ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
callstack/agent-device#3819 · 2 Kommentare ·
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
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
callstack/agent-device#3931 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs-info
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
callstack/agent-device#3929 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
callstack/agent-device#3922 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstack/agent-device
Ähnliche Issues
-
freshness freshness:observed-only
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
thoroc/context-radar#282 ·
-
bug P2 rust
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
area: web
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
gabe-santana/arkdraw#25 ·
-
bug require-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
expressjs/expressjs.com#2549 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
codercops/discord-bot#101 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag