Skip to content

fix: iOS app picker — retry, cache-first, and a Retry button#21

Merged
DevSrSouza merged 1 commit into
mainfrom
fix/ios-app-list-retry-cachefirst
Jun 17, 2026
Merged

fix: iOS app picker — retry, cache-first, and a Retry button#21
DevSrSouza merged 1 commit into
mainfrom
fix/ios-app-list-retry-cachefirst

Conversation

@DevSrSouza

Copy link
Copy Markdown
Contributor

Follow-up to #19 (devicectl timeout + cache). The timeout stops Jaca from wedging CoreDevice, but a slow devicectl could still hand the picker an empty list. This makes the picker actually resilient:

  • Retry the device info apps query once. devicectl's first call after a cold start often stalls warming the device tunnel, then the retry returns fast (observed: timeout → 2s). One transient slow call no longer drops to empty.
  • Cache-first — show the last good list instantly while a refresh runs, and keep it shown if the refresh fails. No blank "No apps found" flash whenever a cache exists.
  • Reopen retries — reopening the picker re-fetches while the list is empty, and the empty state now has a Retry button. A wedged-then-recovered devicectl is one click away.

Builds clean.

🤖 Generated with Claude Code

Building on the devicectl timeout + cache (#19), make the picker resilient to a
slow/flaky devicectl instead of just bounding it:

- Retry the `device info apps` query once. devicectl's first call after a cold
  start often stalls warming the tunnel, then the retry returns fast — so a
  single transient timeout no longer drops to an empty list.
- Cache-first: show the last good list instantly while a refresh runs, and keep
  it shown if the refresh fails — no blank "No apps found" flash when we have a
  cache.
- Reopening the picker re-fetches whenever the list is empty, and the empty
  state now has a Retry button — so a wedged-then-recovered devicectl is one
  click (or reopen) away from populating.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@DevSrSouza DevSrSouza merged commit a67fff3 into main Jun 17, 2026
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