Skip to content

refactor!: commands use core devices directly; actions carry timestamps (DRO-4147) - #1

Closed
Cyro292 wants to merge 2 commits into
feat/mobilerun-base-reworkfrom
feat/device-to-core
Closed

Cyro292 wants to merge 2 commits into
feat/mobilerun-base-reworkfrom
feat/device-to-core

Conversation

@Cyro292

@Cyro292 Cyro292 commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Stacked on the base rework (droidrun/mobilerun#553). Ticket: DRO-4147.

What changes

The framework drops its own device stack and uses mobilerun-core's AsyncDevice everywhere.

  • CLI: options.py / DeviceTarget are gone. device_command, cloud_command and run_command inject a connected core device.
  • Cloud clients: bound CloudResource adapters, PaymentFlow, billing policy.
  • Core: ScreenView / ModelGeometry; recording lives in core/runs and is driven by core action hooks. Core Action, Observation, DeviceDescriptor and AppIdentity replace the framework copies.
  • Macros: rows are stamped schema_version: 2 and keep the action's started_at. Display only: replay ignores it. Older macros still load.
  • Structure: sandbox, extensions, credentials and config are split into one role per folder.
  • Demo: tests/demos/easy_macro_demo.py records a short macro, resets the phone and replays it.
{"schema_version":2,"i":1,"action":"start_app","args":{"app_id":"com.android.settings","activity":null},"started_at":"2026-11-30T16:33:52.002939Z"}

Verification

  • pytest tests/unit: 3,117 passed, 75 skipped.
  • ruff, black and mypy mobilerun clean on the files touched last; mypy mobilerun clean overall.
  • easy_macro_demo.py run live on a local emulator and one cloud phone.

Open points

  • Needs mobilerun-core 2.0.0 (droidrun/mobilerun-core#83), not published yet. uv.lock must be regenerated once it is, so CI here will not be green before that.
  • skills/ submodule edits are not part of this PR; they need their own commit in droidrun/skills.

Change brief (private Notion page): https://app.notion.com/p/428ad8f2ae57813f993cf935227d10db

…ps (DRO-4147)

The framework drops its own device stack and uses mobilerun-core's
AsyncDevice everywhere.

- CLI: options.py/DeviceTarget replaced by device_command, cloud_command
  and run_command, which inject a connected core device.
- clients/cloud: bound CloudResource adapters, PaymentFlow, billing policy.
- core: ScreenView/ModelGeometry, recording moved to core/runs and driven
  by core action hooks; core Action, Observation, DeviceDescriptor and
  AppIdentity replace the framework copies.
- macro: rows are stamped schema_version 2 and now keep the action's
  started_at (display only; replay ignores it). Older macros still load.
- sandbox, extensions, credentials, config: split into one role per
  folder.
- demos: easy_macro_demo.py records, resets and replays a short macro.

Requires mobilerun-core 2.0.0 (droidrun/mobilerun-core#83).
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Cyro292

Cyro292 commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

Moved to droidrun#558

@Cyro292 Cyro292 closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant