Skip to content

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Dec 9, 2025

When querying storage stats for large apps (e.g., Spotify, Amazon Prime Video), the system call can take 15-20 seconds. Previously, the size query happened inside the step's retry loop with a 5-second inner timeout, causing premature cancellation.

Changes:

  • Increase inner attempt timeout from 5s to 10s for UI navigation
  • Pre-compute size matcher before returning the storageFinder lambda, moving the 20s queryStatsForPkg call outside the step's retry loop entirely
  • Update timeout comment in AutomationStep to reflect actual values

The size query now runs when storageFinderAOSP() is called (before the step is created), so retries only repeat the fast UI navigation, not the slow system query.

Closes #2032

When querying storage stats for large apps (e.g., Spotify, Amazon Prime Video),
the system call can take 15-20 seconds. Previously, the size query happened
inside the step's retry loop with a 5-second inner timeout, causing premature
cancellation.

Changes:
- Increase inner attempt timeout from 5s to 10s for UI navigation
- Pre-compute size matcher before returning the storageFinder lambda, moving
  the 20s queryStatsForPkg call outside the step's retry loop entirely
- Update timeout comment in AutomationStep to reflect actual values

The size query now runs when storageFinderAOSP() is called (before the step
is created), so retries only repeat the fast UI navigation, not the slow
system query.

Closes #2032
@d4rken d4rken added bug Something isn't working as expected c: AppCleaner Automation Accessibility service related (ACS) labels Dec 9, 2025
@d4rken d4rken merged commit e7d405c into main Dec 9, 2025
13 checks passed
@d4rken d4rken deleted the appcleaner-acs-size-query-timeout-2032 branch December 9, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Accessibility service related (ACS) bug Something isn't working as expected c: AppCleaner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't clean Spotify

2 participants