Skip to content

v3: an already-closed Finish is not a failure - #26241

Merged
Git-on-my-level merged 4 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/v3-finish-404-app
Nov 24, 2026
Merged

Git-on-my-level merged 4 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/v3-finish-404-app

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What changed and why

End, the live Finish page, and Wrap Up send the owned live window ID when known. Backend PR #26242 consumes live_conversation_id. Older servers ignore it, and requests with no known window still send {}.

A v3 404 can mean the server already closed the window or had nothing to capture. Finish opens a recent server close when one is known. Otherwise, it returns to Home without a failure or “Already saved” toast. The Processing row keeps the known target and is replaced when the matching conversation starts processing or reaches a terminal state. If no result arrives, the existing 20-minute deadline clears it.

Product invariants affected

INV-CAP-1 preserves the capture and WAL close flow. INV-UI-3 keeps typed Finish results and uses the existing Home Processing row.

How it was verified

306 focused Flutter tests passed through the workspace heavy-command gate, and scoped Flutter analysis reported no issues. The Home widget fixture rendered the pending row and its handoff to the matching conversation.

/Users/david/workspace/omi-workspace/bin/omi-heavy run -- bash -c 'cd app && flutter test -j "${OMI_HEAVY_CPUS:-4}" test/widgets/v3_outcomes_test.dart test/pages/conversations/home_v3_test.dart test/widgets/finish_opens_conversation_test.dart test/widgets/finish_outcome_test.dart test/widgets/process_now_conversations_tab_test.dart test/widgets/home_recording_bar_render_test.dart test/widgets/capturing_finish_swipe_back_test.dart test/providers/force_processing_placeholder_test.dart test/unit/process_in_progress_conversation_test.dart test/services/capture/capture_coordinator_test.dart test/services/capture/first_capture_finish_result_test.dart test/services/capture/mic_denied_start_test.dart test/services/capture/capture_one_source_test.dart'

Tests

  • The controller test records the serialized POST for an explicit End, an End without an ID, and a coordinator Finish with an ID.
  • The Finish widget tests cover a recent server close, the v3 return to Home without a toast, and legacy 404 feedback.
  • The Home widget test settles a 404 using the placeholder target and checks that the matching conversation replaces the row while its summary is still being written.

UI evidence

Flutter widget renders using the iOS layout and synthetic conversation fixtures.

Home retains Processing after a Finish 404

The matching conversation replaces Processing while the summary is being written

Failure class (fixes)

Failure-Class: none

File size exceptions

Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 5093 -> 5103 | Carries the optional window ID into the process stage and exposes a transport recorder for the serialized request regression test.
Line-Count-Exception: app/lib/services/capture/capture_coordinator.dart | 3259 -> 3261 | Keeps the optional window identity on the existing Finish event and process stage.

View guided diff

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T12:51:39.592064Z
We couldn’t complete this review. Comment @codex review to try again.
558a35a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 558a35aca67f2481437c1e07677ea447e31a310c. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 43de90a7b8e02e3c1115ee30f7167a51e0c09db6. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

The 404 branch opened the most recent server close when it was newer than
the previous Finish. The previous window's own close routinely arrives
after that Finish, so a 404 on the next window could open the old
conversation. A close now counts only when it names the verified recording
being finished or, without one, arrived after this tap; otherwise Finish
returns to the pending Home row.

Failure-Class: wrong-target
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 590d22106fe7c2e98bd2f840b362c6b4ef767542. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

Process Now can close a recording before Listen announces its successor,
so the verified recording at tap time may be the previous window's. A
verified recording the server already closed no longer counts as the one
being finished, and its late close cannot open from a 404.

Failure-Class: wrong-target
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 7b33f86b9d377c737eb06c8126e0da0995d9fdf9. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

/approve-ui 7b33f86

@Git-on-my-level
Git-on-my-level merged commit 047183e into BasedHardware:main Nov 24, 2026
40 checks passed
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