You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4abcb20
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): flows and environment selectors no longer reach a claimed device
batch, replay and test hand their selectors to every step, and agent-device
runs a non-open step with selectors on that device without a claim check. The
launcher now lists the daemon's sessions first and refuses a flow with
DEVICE_IN_USE when another session holds the bound device.
agent-device also reads selectors from AGENT_DEVICE_PLATFORM, _SERIAL and the
like, so the launcher drops those for commands that get no selector flags.
The command is now found past `--save-script <path>`, which takes a value only
when it looks like a path, so `--save-script ./run.ad open` still selects.
console.error("\`" + name + "\` did not run: T3 Code could not check whether another session holds this device. " + (listed.stderr || listed.stdout || listed.error?.message || "").trim());
274
+
process.exit(1);
275
+
}
276
+
const own = valueOf("--session");
277
+
if (sessions.some(session => session?.id === held && session?.name !== own)) {
278
+
console.error("Error (DEVICE_IN_USE): this device is in use by another session. \`" + name + "\` would run its steps there without a claim check, so it is not available until that session closes.");
0 commit comments