Skip to content

feat(device): inspect --all, element state, and screen text on a failed run - #273

Merged
riglar merged 1 commit into
devfrom
feat/device-inspect-all
Oct 26, 2026
Merged

riglar merged 1 commit into
devfrom
feat/device-inspect-all

Conversation

@riglar

@riglar riglar commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Matches API changes to the device session endpoints.

  • dcd device inspect — the API now leaves out on-screen keyboard keys and System UI (status and navigation bars) by default. The command prints a note when a keyboard is open and says how many elements were left out. The new --all flag sends ?all=true to include them.
  • Element state — elements now show checked, selected, focused and disabled when the API reports them, so you can write state assertions such as assertVisible: { text: "English", selected: true }.
  • Failed dcd device run — when the API returns result.screen_text, the command prints it under "On screen after the failure". This explains a near miss without a screenshot, for example when the app says "centre" and the flow expected "center".
  • dcd mcp — no change needed. The bridge proxies the hosted tool schemas, so the new inspect_screen all input passes through.

All of these work with older APIs: the new fields are optional, and an older API ignores ?all=true.

Test plan

  • pnpm typecheck, pnpm lint (no new warnings), pnpm test:unit (494 passing)
  • New tests: inspect --all URL, formatElement state, screen_text printing

🤖 Generated with Claude Code

…ed run

`dcd device inspect` now leaves out the on-screen keyboard and System UI by
default (the API does this), says when a keyboard is open and how many
elements it left out, and `--all` shows them. Elements show checked,
selected, focused and disabled. A failed `dcd device run` prints the app's
visible text after the failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Oct 26, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@riglar
riglar merged commit 85cde1a into dev Oct 26, 2026
9 checks passed
@riglar
riglar deleted the feat/device-inspect-all branch October 26, 2026 13:13
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