mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 15:26:04 +00:00
fix(agent): start sessions from their own task so repeat starts aren't swallowed (#2468)
* fix(agent): start sessions from their own task so repeat starts aren't swallowed * fix(ci): fall back to the kernel.org Ubuntu mirror when Canonical's are unreachable * fix(ci): fall back to the Berkeley ports mirror on arm64 runners
This commit is contained in:
1 parent
f16b023f0d
commit
c265b66e80
5 files changed
+53
-9
No files matched your search
@@ -171,6 +171,9 @@ def start_agent_activity(adb: str, serial: str, request: dict) -> None:
|
||||
output = (result.stdout + result.stderr).decode(errors="replace")
|
||||
if result.returncode != 0 or "status: ok" not in output.lower():
|
||||
raise ControlError(output.strip() or "The agent start Activity did not launch", "ACTIVITY_START_FAILED")
|
||||
if "activity not started" in output.lower():
|
||||
raise ControlError("Android handed the start request to an existing DroidDeck task instead of starting it: "
|
||||
+ output.strip(), "ACTIVITY_START_FAILED")
|
||||
|
||||
|
||||
def confirm_start(adb: str, serial: str, request: dict, previous: dict) -> dict:
|
||||
|
||||
Reference in new issue
Block a user