Skip to content

release: prepare v0.7.1 steadier live preview and Claude Code plugin - #4

Merged
JackCaow merged 1 commit into
mainfrom
release/v0.7.1
Nov 10, 2026
Merged

JackCaow merged 1 commit into
mainfrom
release/v0.7.1

Conversation

@JackCaow

Copy link
Copy Markdown
Collaborator

Summary

Prepares v0.7.1. Merging does not publish anything; the release is published by pushing an annotated v0.7.1 tag on main afterwards.

Live preview

  • Encoder lingers 30 s after the viewer is hidden. Capture used to stop 5 s after the last frame request, so switching away from the panel and back cost a full encoder restart (about 3 s without a new picture on the test phone). A hidden viewer never starts an encoder, and pause / lock still stop capture at once.
  • Stopping video no longer holds the hub lock. Phone-side recorder cleanup runs on a background thread; ScreenHub.close() joins it so process exit does not orphan the recorder.
  • Lock-state probe tolerance. The phone is treated as disconnected only after 3 consecutive failed reads. Tap and swipe are disabled from the first failure.
  • Resume from the panel. During an authentication pause the panel shows a button that clears the same shared flag as aua_resume. A device-lock pause does not show it.
  • PREVIEW_IMPLEMENTATION_VERSION 4 → 5, so older daemons are replaced on first open.

Claude Code plugin

  • .claude-plugin/plugin.json and .claude-plugin/marketplace.json. The manifest's inline MCP entry uses ${CLAUDE_PLUGIN_ROOT} and overrides the root .mcp.json, which is unchanged for Codex and Dim.
  • /android-use:screen opens the live screen in a local browser, since aua_screen does not return the private URL over MCP and the terminal cannot embed the panel.
  • scripts/package.py ships the manifest in the plugin ZIP; scripts/release_check.py checks its version.

Release

  • Every version source bumped to 0.7.1, UI bundle rebuilt, docs/releases/v0.7.1.md added, README / guide download references updated.

Testing

  • pytest: 486 passed, 1 failed locally. The failure is tests/test_installation.py::test_real_mcp_upgrade_and_fresh_host_after_deleted_sources, where uv sync could not fetch cryptography with network disabled. It was not re-run on an unmodified checkout, so CI is the check that it is unrelated.
  • Playwright: 25 passed. Ruff clean. scripts/release_check.py v0.7.1 passes.
  • 6 new Python tests and 1 new browser test cover the lingering encoder, lock-free stop, probe threshold and panel resume.
  • Physical phone (Android 16, HyperOS 3, USB): returning to a hidden viewer inside the linger window served a frame immediately with no second encoder start; no recorder process left on the phone.
  • claude plugin validate . passes; loading with claude --plugin-dir on macOS (Claude Code 2.1.321) shows the MCP server connected.

Not verified

  • Installing from the hosted marketplace (/plugin marketplace add arcships/android-use), and Claude Code on Windows / Linux.
  • /android-use:screen was checked for path substitution only, not run end to end.
  • Native install / upgrade / rollback acceptance has not been repeated for this version.

Notes for review

  • While lingering, the phone keeps recording for up to 30 s after the panel is hidden (memory only, nothing written to disk).
  • With the probe tolerance, video can stay up for two probes while the lock state is unknown.
  • Opening this repository itself in Claude Code still reports the project-level .mcp.json entry as failed, because ${PLUGIN_ROOT} is a Codex / Dim variable. The plugin entry is the one that connects.

Live preview
- Keep the encoder for 30 seconds after the viewer is hidden so returning
  to the panel does not pay an encoder restart. A hidden viewer never
  starts an encoder; pause and lock still stop capture at once.
- Run phone-side recorder cleanup outside the hub lock so stopping video
  no longer stalls frame requests.
- Treat the phone as disconnected only after three consecutive failed
  lock-state reads; controls are disabled from the first failure.
- Add a panel action that ends an authentication pause, clearing the same
  shared flag as aua_resume. Bump the preview revision to 5.

Claude Code
- Add .claude-plugin/plugin.json and marketplace.json. The manifest's MCP
  entry uses CLAUDE_PLUGIN_ROOT and overrides .mcp.json, which stays as is
  for Codex and Dim.
- Add /android-use:screen to open the live screen in a local browser.
- Include the manifest in the plugin ZIP and in the release version check.

Bump every version source to 0.7.1 and add release notes.
@JackCaow
JackCaow merged commit abb0feb into main Nov 10, 2026
9 checks passed
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