#22807: fix: parameterize magic numbers in ensureA2uiReady (issue #22745)
app: android
size: XS
Cluster:
Device Auth and Security Fixes
Fixes #22745. Recreating PR 22785 from a clean branch to resolve bot closure.
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Extracted hardcoded magic numbers (50 retries, 120ms delay) from `ensureA2uiReady` into configurable parameters with sensible defaults, addressing issue #22745.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The change is simple, well-scoped, and backward-compatible. It adds optional parameters with sensible defaults that match the previous hardcoded values. All existing call sites remain functional without modification. No logical errors, security issues, or runtime risks identified.
- No files require special attention
<sub>Last reviewed commit: 498d597</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
73.7%
#7701: Update README.md
by stephenchen2025 · 2026-02-03
72.7%
#23280: fix(control-ui): remove stale allowInsecureAuth suggestion from err...
by anillBhoi · 2026-02-22
72.4%
#9628: fix: resolve tsconfig rootDir errors by separating UI config (AI-as...
by KGBos · 2026-02-05
72.2%
#6110: refactor: simplify boolean logic using nullish coalescing
by T1mn · 2026-02-01
72.1%
#11979: fix: Change rootDir to project root to allow UI compilation
by fastroc · 2026-02-08
71.9%
#13960: fix(ui): preserve structured config validation error details
by constansino · 2026-02-11
71.7%
#3872: improve bash-tools.exec.ts code quality
by Bestom927 · 2026-01-29
71.7%
#21027: fix(tests): resolve TypeScript type errors in CLI test files
by kittipond2365 · 2026-02-19
71.4%
#21463: fix(discord): prevent WebSocket death spiral + fix numeric channel ID…
by akropp · 2026-02-20
71.4%