adb: mark every host refusal as `hostRefusal` and derive `dispatched: "no"` from it
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
- 68/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- android, typescript
Rechercherichtung
Start with packages/platform-android/src/adb-failure.ts and input-actions.ts, then inspect contracts/fixtures/dispatch-disclosure.json and the Android driver tests. Run the relevant adb-failure and dispatch-disclosure tests to trace attachAdbFailureHint through the real executor. Done means all six host refusals are classified, disclosure reports dispatched: "no" when appropriate, and pnpm check:affected --run passes.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Part of #3069.
Purpose
#3055 adds hostRefusal: true to the device_offline classification in packages/platform-android/src/adb-failure.ts, meaning the host adb refused the command before it reached the device. Five other reasons in the same matcher table are host refusals too and carry no flag: device_unauthorized, multiple_devices, no_devices, device_not_found, server_version_mismatch. On the dispatched branch, discloseAdbInputDispatch in input-actions.ts says no only for TOOL_MISSING, so an input tap refused for an unauthorized device reads unknown today.
Required behavior
- Each host-refusal reason in
ANDROID_ADB_FAILURE_MATCHERScarrieshostRefusal: true. A reason that can also come from a command that ran on the device (install_*,connection_dropped,timeout) does not. attachAdbFailureHintkeeps stampingdetails.adbHostRefusal.discloseAdbInputDispatchand the helper-session producers saydispatched: "no"whenadbHostRefusal === trueand no earlier step was dispatched (dispatchedSteps === 0). The classifier is the single source; no second string match.- One row per host refusal in
contracts/fixtures/dispatch-disclosure.json, each driven throughattachAdbFailureHintand the real executor.
Completion conditions
adb-failure.test.tsassertshostRefusalfor the six reasons and its absence for the rest.- The dispatch-disclosure gate passes with the new rows owned by the Android driver test.
pnpm check:affected --runpasses.
Dependencies
Blocked by: #3055 (introduces hostRefusal) and #3071 (introduces the table).
- Vorherrschende Sprache
- TypeScript
- Sterne
- 4.8k
- Forks
- 315
- Ø Merge
- 11 Std. 27 Min.
- Gemergte PRs (30 T.)
- 556
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
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
callstack/agent-device#3062 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
callstack/agent-device#2995 ·
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 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
callstack/agent-device#3077 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
callstack/agent-device#3076 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in callstack/agent-device
Ähnliche Issues
-
area/frontend good first issue kind/cooldown
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
voidzero-dev/oxc-angular-compiler#511 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
langchain-ai/deepagentsjs#898 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
anomalyco/models.dev#8509 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug documentation P2 UI/UX
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag