Repository navigation
fix(app): warn and retry when conversation processing stalls - #12936
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 103 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Thanks @apoorvdarshan — this is a clean, well-scoped slice of #5481, and the implementation quality is good. Notes from review: What I verified
Two non-blocking observations
No split needed — the locale churn is entirely mechanical propagation of one new key. Leaving the merge sign-off to a maintainer; the implementation itself looks solid. Nice work. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Real fix (closes #5481: no timeout/retry feedback on stalled processing card), tested. Not merging: PR is DIRTY (merge conflicts) and per hard rules we don't rebase/force-push branches — leaving at approve for the author/Nik to resolve the conflict.
After two minutes the homepage processing card shows a timeout message and Retry, which re-triggers server reprocess (BasedHardware#5481). Stage labels and completion push are left for follow-up. Failure-Class: none
Use finishedAt (not createdAt) so long recordings are not instantly flagged, reset the local clock after a successful retry, catch malformed reprocess bodies with the snackbar, and assert via l10n in the widget tests. Failure-Class: none
Drop unnecessary non-null assertions and const the FormatException. Failure-Class: none
99c224e to
a2ee1f6
Compare
|
Follow-up review on the updated branch — both observations from the earlier automated review are resolved, and I verified the force-push lineage. Resolved since the earlier review
Force-push note for maintainers @kodjima33's approval sits on commit
So the approval's substance covers the current code; depending on branch protection it may display as stale and need a re-approve click before merge. Locale propagation spot-check held up across scripts (de/fr/ja/zh/ru/ar plus RTL he/ur) — genuine translations, and the per-locale single deletions are just trailing-comma additions on by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
What changed and why
Closes #5481 (implementable slice). The homepage processing card had no feedback when summarization ran long — after 2 minutes it now shows a timeout warning and a Retry button that calls the existing reprocess endpoint. Local placeholder rows (
id == 0) never time out (nothing to retry yet).Out of scope for this PR (still open on the issue): stage labels (transcribing → summarizing → done), ETA, and background completion push.
Product invariants affected
none
How it was verified
Did not re-verify on a physical device with a live long-running conversation.
Tests
app/test/unit/processing_timeout_test.dart— 2-minute boundary + placeholder exemptionapp/test/widgets/processing_timeout_widget_test.dart— warning/retry appear after timeout; absent beforeFailure class (fixes)
Failure-Class: none