OpenGUI icon indicating copy to clipboard operation
OpenGUI copied to clipboard

The first observe task starts but never returns

Open hariew opened this issue 3 months ago • 1 comments

I can see a device from:

pnpm opengui -- devices --json

Then I tried the first observe task:

pnpm opengui -- do "Observe the current Android screen and summarize what you see" --json

It starts, but then I just wait. I can't tell if it is still working, waiting for the model, waiting for the phone, or already stuck.

Is there a command I should run to check progress? I saw status mentioned elsewhere but wasn't sure if that is the right thing for this first observe task.

hariew avatar Aug 30 '26 17:08 hariew

Thanks for reporting this — you’re right that the first-task workflow did not clearly explain how execution progress should be checked.

The do command starts an execution asynchronously and returns an executionId. It does not stream progress or wait for the task to finish.

Use the returned ID to check the current status:

pnpm opengui -- status <executionId> --json

status returns a single snapshot, so you can run it again whenever you want an update. The most useful fields are:

  • executionStatus
  • statusMessage
  • currentStep
  • executionResult
  • errorMessage

PENDING means the execution is waiting to start on the phone, RUNNING means it is active, and FINISHED means it has completed.

Fine-grained fields are not always available, so a RUNNING response may not always distinguish whether the execution is currently waiting for the model or the phone.

To stop an active execution, run:

pnpm opengui -- cancel <executionId> --json

If do itself does not return an executionId, that is not normal asynchronous behavior and should be treated as a request or startup problem.

We clarified this workflow in the English, Simplified Chinese, and Japanese documentation in #86. Thanks again for helping us improve the first-run experience.

dxcsmam avatar Aug 31 '26 08:08 dxcsmam