Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): threads can no longer drive a device another thread is using #31304

Openspadaval(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/31304/headopened View on GitHub

Showing 3 changed files with 69 additions and 5 deletions (loading 2).

x
0 of 3 viewed, 3 left
69 additions and 5 deletionsapps/server/src/device/AgentDeviceShim.tsModified
View file
@@ -151,21 +151,59 @@
"--wait",
​
+/**
+ * agent-device 0.21.36 commands that pick their device from selectors: open, those that check its
+ * claim themselves, read-only listings, and batch/replay/test, whose steps inherit them (an open step
+ * needs them). Any other command given a selector and a session the daemon does not hold runs on that
+ * device without a claim check, even while another session holds it.
+ */
+const SELECTING_COMMANDS: ReadonlyArray<string> = [
+ "open",
+ "batch",
+ "replay",
+ "test",
+ "launch",
+ "relaunch",
+ "apps",
+ "appstate",
+ "capabilities",
+ "devices",
+ "doctor",
+ "boot",
+ "shutdown",
+ "prepare",
+ "install",
+ "reinstall",
+ "uninstall",
+ "install-from-source",
+ "push",