Skip to content

feat(app): ending a conversation shows it processing and starts a fresh session - #23371

Merged
Git-on-my-level merged 6 commits into
mainfrom
home-finalize
Oct 23, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
home-finalize

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

What

Ending a conversation now looks like it did something, and the next one starts cleanly (David, 2026-10-23). This covers Wrap up, a pendant double-tap and Finish.

  • Processing row is back on Home. The ended conversation shows as "Processing…" under the live row right away, then turns into its own row. Home lost this row with fix(app): move catch-up status from Home to Device #23044, which removed the only surface that drew processingConversations.
  • Fresh session at 0s. All three triggers share one finalize hook, CaptureExternalActions.onLiveFinalized, called from forceProcessingCurrentConversation. EpisodeProvider.onLiveFinalized closes the live episode (POST /v1/episodes/{id}/wrap-up with no conversation id closes it on the server at once), never adopts that episode again while the server still reports it live, and restarts LiveStartAnchor at the moment of the finalize. The label then never jumps back when the next episode opens at its first words.
  • Wrap up never pauses the pendant. Pressing it right after a double-tap or a server split used to call pauseCapture, because the capture's segments were already empty. With nothing new it now just closes the episode and restarts the clock.
  • Paused reads Paused. The Home row shows no running clock while paused. The live page leads with one-tap Resume, with Wrap Up Now beneath it.
  • The old speaker prompt card is deleted. Review ("Questions for you") is on in every prod deploy (REVIEW_SURFACE_MODE=on) and every app is eligible, so the older card (with its play button) only ever appeared as Review's stand-in while availability loaded, which made it flash at every launch. Deleted: speaker_tag_prompt_card.dart (752 lines), its test, its two visual-audit scenarios, and the integration capture built around it. ReviewEntryCard draws nothing until Review is known on. Dead-code ratchet passes. Test: test/pages/review/review_widgets_test.dart.
  • Double-tap: a light haptic, and a second double-tap within 3 s is ignored.

The backend change that makes the server close the episode immediately on every finalize path is in a separate backend PR. This app change is correct without it.

Builds on #23366 (merged).

Screens

Rendered from the real widgets (iOS platform, SF Pro).

Home right after Wrap up
Paused live page with Resume

Tests

  • test/unit/live_start_anchor_test.dart: the restart counts from the finalize and never jumps back; an ended episode is never re-adopted; ending with nothing live still restarts.
  • test/widgets/episodes_ui_test.dart: Wrap up with nothing new never pauses; while paused Resume leads and resumes.
  • test/perf/home_after_detail_perf_test.dart: the processing row sits under the live row and leaves when the conversation is replaced.
  • 278 existing related tests unchanged and passing (capture provider, processing reconcile, placeholder, spine, Home pending rows, process-now).

Line-Count-Exception: app/lib/services/capture/capture_controller.dart | 4501 -> 4507 | the finalize hook must fire where the processing placeholder is added; the debounce state lives in live_finalize_gate.dart

Product invariants affected

  • INV-DATA-1: app/lib/main.dart only adds EpisodeProvider to the capture provider's dependencies so the finalize hook can reach it. No endpoint, environment, Firebase project or data plane changes.
  • INV-CAP-1: app/lib/services/capture/** adds a hook call and a double-tap debounce next to the existing processing placeholder. No socket, subscription, WAL or audio path changes, and Wrap up now pauses the pendant less often (never), so no frame is dropped that was kept before.
  • INV-MEM-4 and INV-TASK-2: backend/utils/conversations/process_conversation.py arrives through feat(app): quiet live row on Home; background conversations move to the daily recap #23366, stacked under this branch. It changes Home salience (a presentation field) only, with no memory intake or task writes. This branch adds no backend change.

Failure-Class: FC-generated-presentation-contract-bypass
(From #23366's salience fix, stacked under this branch.)

Risk

Client-only. Rollback is a revert. No data changes.

🤖 Generated with Claude Code

Git-on-my-level and others added 3 commits October 23, 2026 11:04
…sh session

Wrap up, a pendant double-tap and Finish now share one finalize hook. Home shows the
ended conversation as a Processing row under the live row again (the row went away
with #23044). The live episode closes at once and a fresh one counts from 0. An ended
episode is never adopted again while the server still reports it live.

Wrap up never pauses the pendant any more. A paused session reads "Paused" with no
running clock, and its page leads with one-tap Resume. A second double-tap within 3 s
is ignored, and a double-tap gives a light haptic.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps capture_controller.dart within six lines of its size limit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-23T04:31:22.197403Z d1e3ac5 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.

Git-on-my-level and others added 3 commits October 23, 2026 12:30
Home showed the legacy speaker tag card as Review's stand-in while availability
was unknown, so it flashed at every launch before the questions card replaced it.
The stand-in now shows only when Review is known off.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… questions UI

Review is on in every prod deploy and every app is eligible, so the speaker tag
card only appeared as Review's loading stand-in and flashed at launch. Removes the
card, its test, its visual-audit scenarios and its integration capture.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 23b12ca into main Oct 23, 2026
45 checks passed
@Git-on-my-level
Git-on-my-level deleted the home-finalize branch October 23, 2026 06:46
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