Version 1.4.0 (current)
Task lifecycle and execution results
Distinguish the lifecycles of a task, model process, display host, and viewer.
A task can wait, run, stop or ask for input. Check its current state before deciding whether to continue or retry. The task coordinator and native conversation keep different records; the sections below explain which one to inspect.
Inspect task state
First complete a task in the UI. The following metadata check is optional: use Node.js 20+ in the system repository root, an ADB target listed as device, and UID 0 or 1000 with task-directory access. Replace the example serial with your target:
node sdk/cli/taku.mjs call tasks.status --transport adb --serial emulator-5582The device probe reads state.json from an existing directory. It may return queued, running, completed, failed, cancelled, error, or unknown. These values come from the readback probe; they do not mean every transition has been verified.
The snapshot omits prompt and result bodies (includesPrompts:false, includesResults:false). A completed entry tells you the recorded task state, not whether the business result meets your goal. Compare the execution output with the success criteria set before submission.
Distinguish four lifecycles
| Object | What to inspect |
|---|---|
| User task | Input, task ID, state, and result |
| Model process | Startup, exit code, and actual output |
| Independent display host | Whether it still owns the VirtualDisplay and hosts an existing app |
| Native viewer | Frames and touch mapping; collapsing the viewer does not stop the app |
Task completion should agree with actual API state, window changes, and the defined success criteria. Verified so far: the main screen remains usable during a real task, and you can scroll manually through the mirror after completion. Automatic takeover or pausing during execution is not verified.
Interruption and recovery
Verified on a dedicated emulator: the real stop button, owned child-process cleanup, concurrent-session separation, and subsequent model replies. Stopping does not roll back external effects that have already occurred.
Same-turn steering and restart recovery are verified separately on a physical Pixel 9. See Current progress for the latest interface and complete-ROM status.
Diagnose stalled state
Reading task directories requires Root or system UID and the corresponding file permissions. If state stops changing, inspect execution identity, the system task service, and the model process. Follow the Operations checklist for the inspection order.
Do not hide failures by deleting all tasks, copying authentication directories, or creating another queue. tasks.status returns a snapshot; see Event boundaries for the scope of subscriptions.
Once you can distinguish task completion from its actual result, write a small device tool or inspect application state through an interface.
Research preview · Current availability
Report an issue or give feedback
Delivery to the maintenance queue does not mean it has been handled. Feedback is retained for 90 days.
Built with Fumadocs