Repository navigation
fix(app): honor recording-scoped upload retry windows - #26396
Conversation
Failure-Class: none
|
Verdict: the production change is correct and tightly scoped. Nothing blocking. Correctness
UX: a manual single-recording retry during a server coverage wait is now refused for up to 30 minutes (was 5). It is the same Blast radius: only recordings that receive USER IMPACT: Recordings the server is still checking stay local for up to 30 minutes before the app retries, instead of being re-sent after 5 minutes regardless of what the server asked. Other recordings keep uploading as before. What I would still want (optional, non-blocking): a one-line unit assertion that a persisted base above 1,800 is dropped on load. The new Since this is still a draft, I am leaving this as a signal rather than a review state. No maintainer decision is needed beyond the normal merge call. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
What changed and why
The backend can send a 1,800-second
record_capture_pendingwait after a cached negative audio-coverage check (#26333). The mobile upload gate capped all recording waits at 300 seconds, so affected recordings could retry early even after an app restart.Honor typed recording waits up to 30 minutes. Preserve the five-minute cap for header fallback and local backoff. Each wait remains scoped to the recording session. The existing receipt path still controls when a local recording can be released.
Related: #21216, #25770, #26333.
Product invariants affected
How it was verified
Tests
recording_wait_deferrals_test.dartchecks typed and header limits, default waits, and short backoff.wal_upload_resilience_test.dartchecks a restarted queue, a sibling session uploading independently, retained audio, and exact expiry.wal_retry_manifest_transport_test.dartverifies the typed 503 over loopback HTTP, no request during the restored wait, and a queued receipt after expiry.UI evidence
UI-Evidence: none -- Upload retry timing only.
Failure class
Failure-Class: none