Live page: Finish keeps the page open until the server has processed the conversation
Product impact
- Primary loop layer: Capture
- [ ] Involves data loss, failed capture, or broken sync/trust
Describe the bug
CaptureProvider.finishCapture() does not return until the server's process request answers, and the Live page
only closes after it returns. The Finish button spins for the whole server-side processing time (longer when the
request queues behind a transcription reconnect), and the optimistic "Processing" skeleton on the Conversations
tab, added so the user sees progress there, is never seen from this path: by the time the page closes, processing
is done.
To reproduce
- Record a conversation from the phone or a pendant; open the Live page.
- Tap Finish.
Current behavior
The page stays open with a spinner until processing completes, then switches to Conversations.
Expected behavior
Finish closes the page at once; processing continues in the background and shows as the Processing row.
Evidence
lib/pages/conversation_capturing/page.dart:101—_stopConversationawaitsprovider.finishCapture()before switching tabs and popping.lib/services/capture/capture_controller.dart:3804—_processConversationBodyawaitsforceProcessingCurrentConversation()and then_processInFlight(the server request).- A unit probe against
main(aCaptureProviderwhoseprocessInProgressConversationnever answers):finishCapture()had not completed after 2 s and completed only after the request answered. - The Home record button's stop path (
lib/pages/home/widgets/battery_info_widget.dart:317) waits the same way.
Suggested fix
Close the page (and switch tabs) when Finish is tapped, and let the finish/process effect complete on its own, reporting a failure on the page underneath.
Fix available
Fixed with a regression test on the fork branch design/v2-step0-tokens (7a705870d9). It will be linked from the draft PR.
Found while testing the Omi v2 Flutter restyle on an iPhone, then confirmed against main at 32c2ed22cf.