Skip to content

fix(state): wire up wait_for_stable_ui dead config field - #420

Open
lesurJ wants to merge 1 commit into
droidrun:mainfrom
lesurJ:feature/fix-unused-wait_for_stable_ui
Open

fix(state): wire up wait_for_stable_ui dead config field#420
lesurJ wants to merge 1 commit into
droidrun:mainfrom
lesurJ:feature/fix-unused-wait_for_stable_ui

Conversation

@lesurJ

@lesurJ lesurJ commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

wait_for_stable_ui was read into AgentConfig but never consumed anywhere in the codebase, so a well-formed-but-stale accessibility dump (e.g. a WebView a11y bridge lagging behind a client-side route change) was accepted immediately with no retry; this wires the setting into fetch_state_with_retry/AndroidStateProvider, adding a bounded re-poll loop that waits wait_for_stable_ui seconds and compares consecutive a11y_tree dumps, returning as soon as two agree (or giving up after _MAX_STABILITY_CHECKS rounds), with droid_agent.py now passing the configured value through instead of it silently doing nothing.

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