Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(android): warn when recording readiness inspection fails open - #1898

Merged
thymikee merged 2 commits into
mainfrom
fix/android-recording-readiness-warning
Aug 20, 2026
Merged

fix(android): warn when recording readiness inspection fails open#1898
thymikee merged 2 commits into
mainfrom
fix/android-recording-readiness-warning

Conversation

@thymikee

@thymikee thymikee commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

Closes #1895

Android recording-session generic commands and type now continue when blocking-dialog readiness inspection fails, while returning a bounded warning with the normalized inspection error and actionable hint. Existing response warnings are appended rather than replaced. The warning is carried from the typed recovery result through both generic and type response paths.

Validation

  • The focused regression suite was red against origin/main: 3 failed, 2 passed.
  • The focused regression suite is green after the fix: 3 files, 5 tests passed.
  • The updated truncation test uses multiline, over-limit message and hint inputs and asserts whitespace normalization plus exact 240-character bounded fields ending in an ellipsis.
  • pnpm check:affected --run passed for the implementation; the review-only test change also passes pnpm check:fallow --base origin/main and the focused suite.
  • Exact-head live Android verification at 17a913bb6 used the com.callstack.agentdevicelab test app on emulator emulator-5554 with androidSnapshot.backend=android-helper before the run and an app-scoped adb screenrecord.
  • With the bundled snapshot helper temporarily unavailable, generic home returned success: true with the readiness warning and pnpm build:android hint; type also returned success: true, typed 6 characters, and returned the same composed warning.

CHANGELOG.md was updated. No skills or ADR guidance changed because the issue scope is runtime behavior and changelog coverage.

@github-actions

github-actions Bot commented Aug 20, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 2.33 MB 2.33 MB +1.1 kB
JS gzip 765.6 kB 765.9 kB +308 B
npm tarball 890.3 kB 890.6 kB +289 B
npm unpacked 3.10 MB 3.10 MB +1.1 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 25.5 ms 25.5 ms -0.1 ms
CLI --help 62.6 ms 64.2 ms +1.6 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/internal/daemon.js +745 B +210 B
dist/src/interaction2.js +310 B +91 B
dist/src/session2.js +30 B +7 B

@thymikee

Copy link
Copy Markdown
Member Author

Reviewed exact head ceb6d0ff9a630dfc2d1342bfce942d1ca4fe17f2.

The bounded-warning regression is currently vacuous: both the message and hint are below the 240-character limit, and warning.length < 800 still passes if boundAndroidWarningText is removed. Please drive this test with over-limit, multiline message and hint values and assert whitespace normalization plus truncation/ellipsis at the declared ceiling, so reverting the bound makes the test red. Keep the short actionable pnpm build:android hint assertion separately if useful.

Before merge readiness, also attach exact-head live Android evidence from a recording session with readiness inspection deliberately unavailable, proving both a generic command and type still execute and return the composed actionable warning. The PR currently states that no live Android verification was run.

@thymikee

Copy link
Copy Markdown
Member Author

Addressed in 17a913bb6.

  • The bounded-warning regression now uses multiline, over-limit message and hint values, rejects tabs/newlines/repeated spaces, and requires each bounded field to be exactly 239 characters plus an ellipsis.
  • Exact-head live Android verification on emulator-5554 completed in an app-scoped adb screenrecord: generic home returned success with the readiness warning and pnpm build:android hint; type returned success and typed 6 characters with the same warning.
  • The snapshot helper was restored and the verification session was closed cleanly.

@thymikee

Copy link
Copy Markdown
Member Author

Re-reviewed exact head 17a913bb6e8488b1d776c5e9fb7bcbdbea4ad03d: clean. The bounded-warning regression now uses over-limit multiline inputs and proves normalization, truncation, and the declared ceiling; the exact-head Android recording evidence exercises both generic and type fail-open routes with inspection unavailable. All 28 checks are green, including Android/iOS/Linux/macOS smoke, and GitHub reports the branch clean and mergeable. Ready for human review and merge.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Aug 20, 2026
@thymikee
thymikee merged commit ce71e96 into main Aug 20, 2026
28 checks passed
@thymikee
thymikee deleted the fix/android-recording-readiness-warning branch August 20, 2026 13:18
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-08-20 13:19 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(android): warn when recording readiness inspection fails open

1 participant