Skip to content

Retry transient empty native accessibility snapshots after tap#23

Merged
DjDeveloperr merged 2 commits intomainfrom
fix-describe-after-tap
May 7, 2026
Merged

Retry transient empty native accessibility snapshots after tap#23
DjDeveloperr merged 2 commits intomainfrom
fix-describe-after-tap

Conversation

@DjDeveloperr
Copy link
Copy Markdown
Collaborator

Summary

  • Added retry logic to native accessibility snapshot capture so transient empty trees are retried before being returned.
  • Treats empty roots and zero-sized leaf roots as transient failures, with up to 10 attempts and a 100ms delay between retries.
  • Covers the describe path used by --source native-ax, daemon auto fallback, and direct native accessibility snapshots.
  • Added unit tests for both empty and usable snapshot shapes.

Testing

  • cargo fmt --manifest-path server/Cargo.toml --check
  • cargo test --manifest-path server/Cargo.toml native::bridge::tests -- --nocapture

@DjDeveloperr DjDeveloperr merged commit e6e2b61 into main May 7, 2026
11 of 12 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