Skip to content

feat(app): quiet live row on Home; background conversations move to the daily recap - #23366

Merged
Git-on-my-level merged 7 commits into
mainfrom
home-live-row
Oct 23, 2026
Merged

Git-on-my-level merged 7 commits into
mainfrom
home-live-row

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

What

Tightens Home, as David asked on 2026-10-23 (design option A4a):

  1. Quiet live row. The live episode row was a filled card with a green tile and "Now · 0s". It is now an outlined card with a small white (black in light mode) breathing dot, no green (one thin ring every 2.4 s, still under Reduce Motion), the episode's running topic as its title, and "Live · 24m · 2 people". Seconds show only through the first minute. The voice count is recounted only when the transcript changes. An untitled episode keeps "Listening now" plus its recent topics.
  2. No background conversations on Home. The "Also: …" line and its expand toggle are gone. Conversations the notes pass marks background (completed, unstarred, unlocked) are left off Home in the default view. Search, folders, starred and chat still list them.
  3. Background conversations in the daily recap. The recap page now ends with an In the background section listing that day's background conversations with their lengths. Each opens its conversation. The recap's generated text already covered them (no backend filter on salience), so this is client-only. New string recapInTheBackground is translated into all 49 locales via scripts/l10n.py.

Salience correctness

Home visibility now has a deterministic finalization guard, shared by generated notes, reused notes, short-clip minimums and recovery minimums. A model background vote is promoted to highlight whenever owner speech is supported or current owner-absence evidence is missing, partial or stale. Chores, errands and casual conversations with another person are highlights regardless of topic; both the agent prompt and schema now state this. Explicit restores, photos and user titles remain protected.

Minimum titles are a compute policy, not a relevance verdict. A minimum with no notes becomes background only with complete current evidence of zero owner speech plus a served media/noise stamp, or a transcript span of at most 20 seconds consisting entirely of a repeated phrase. Unknown identity, ordinary short moments, reminders, numbers, photos and user titles stay visible. This only stamps salience: no discard, deletion, content-kind mutation or exclusion from recap/search. The existing relevance rules and Wave 1/2 rollout settings are unchanged.

The app protects older background votes too: missing/unavailable speaker resolution or any owner segment keeps the row on Home. The recap uses that same predicate. The original outlined live row, breathing dot and recap layout stay intact. Backend classification requires deployment and subsequent processing; no historical records were modified. App-only delivery protects older owner/unresolved rows but does not classify unstamped clips or fix live/sync overlap. Wave 1 capture coverage owns that overlap; coincident windows alone do not prove duplicate speech.

Validation: BACKEND_UNIT_TEST_FILE_LIST=<focused-list> nice -n 10 bash test.sh passed 214 tests in 7 files, including the real completion boundary and 25 owner-dialogue combinations. nice -n 10 flutter test test/unit/background_conversations_test.dart test/perf/home_after_detail_perf_test.dart test/widgets/daily_summary_detail_page_test.dart passed 17 tests. After merging current origin/main and regenerating concurrent localization additions with scripts/l10n.py, all 49 tests in the PR's six Flutter suites passed. All tests ran through the workspace heavy-command wrapper. Focused Flutter analysis found no issues; the backend async-blocker scan passed. make preflight passed all 44 selected checks after resolving localization conflicts and adding the required invariant citations. These are local hermetic checks; no production replay or deployment was performed.

Failure-Class: FC-generated-presentation-contract-bypass

Screens

Rendered from the real widgets (iOS platform, SF Pro). Emoji tiles and some icons draw as boxes because the test renderer has no emoji font; that is not an app defect.

Home dark
Home light
Recap: in the background

Tests

  • test/widgets/episodes_ui_test.dart: Live label and length, seconds then minutes, no drop to 0s, breathing dot instead of the green tile, titled episodes don't repeat topics.
  • test/perf/home_after_detail_perf_test.dart: background conversations leave Home with no line or toggle.
  • test/unit/background_conversations_test.dart: which conversations are left to the recap.
  • test/widgets/daily_summary_detail_page_test.dart: the recap lists only that day's background conversations; the day-page navigation reads the same day bounds.
  • test/widgets/l5_home_visibility_test.dart, test/pages/conversations/day_conversations_page_test.dart unchanged and passing.

46 tests pass locally (Flutter 3.44.5); flutter analyze reports nothing in the changed files.

Product invariants affected

  • INV-MEM-4: changes at conversation completion only finalize presentation salience and the notes output fingerprint; memory intake, promotion and derived-write authority retain their existing gates.
  • INV-TASK-2: capture task proposals and writes retain their existing source and explicit-gesture policies; the salience guard creates no tasks or Candidates.

Risk

App layout changes plus conservative backend salience validation, on by default; no data deletion or additional model calls. Rollback is a revert. Background conversations are hidden from Home only, never deleted or changed.

UI-Evidence: .agent-artifacts/ui-evidence/home-live-row/

🤖 Generated with Claude Code

Git-on-my-level and others added 3 commits October 23, 2026 10:10
…he daily recap

Home's live episode row is now an outlined card with a small breathing dot, the
episode's running topic as its title, and "Live · 24m · 2 people". Seconds show
only through the first minute.

Background conversations no longer appear on Home: the "Also: …" line and its
expand toggle are gone. The day's recap lists them under "In the background",
and search, folders, starred and chat still reach them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The live dot takes the primary text colour (white in dark, black in light) instead of
green. The recap's background rows use OmiType and OmiRadius.

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

chatgpt-codex-connector Bot commented Oct 23, 2026 •

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 ✅ Completed 2026-10-23T04:04:37.947537Z 3415a65 New commits
ℹ️ 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 chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ecb1f103ae

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

borderRadius: OmiRadius.mdAll,
border: Border.all(color: OmiColors.border),
),
child: OmiBreathingDot(live: listening),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep the shared live-state indicator

When this row is listening, it now renders OmiBreathingDot, whose neutral color and private animation controller directly conflict with app/docs/ux-contract.md §3: live activity must use the success-green OmiLiveDot, and page-specific pulse controllers are disallowed. Either retain the shared primitive or update the contract, enforcement check, and affected callers as required for a deliberate product-wide change; otherwise Home develops inconsistent live-state semantics.

AGENTS.md reference: app/AGENTS.md:L4-L4

Useful? React with 👍 / 👎.

Comment on lines +822 to +824
final result = await fetch(startDate: start, endDate: end);
if (!mounted || !result.ok) return;
setState(() => _background = result.items.where(leftToDailyRecap).toList());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Page through all conversations for the recap

On a day containing more than 50 conversations, this single call uses DayConversationsFetcher's default limit: 50 and never checks result.truncated or requests subsequent offsets. Consequently, background conversations after the first server page are omitted from the recap even though this change also removes them from the default Home list; fetch all pages or add pagination to the section.

Useful? React with 👍 / 👎.

Comment on lines +597 to +601
// Episodes beta, default view: background conversations live in the day's recap, not on Home.
final hidingBackground = episodesOn && showRecordings && !convoProvider.isSelectionModeActive;
final builtRows = _buildConversationListRows(
dates: mergedDates,
conversationsByDate: {
for (final entry in fold.rows.entries)
entry.key: _openBackgroundDays.contains(entry.key)
? (conversationsByDate[entry.key] ?? entry.value)
: entry.value,
},
conversationsByDate: hidingBackground ? _withoutBackground(conversationsByDate) : conversationsByDate,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve background rows in every filtered view

When a speaker, date-range, or short-conversation filter is active without a text, folder, or starred filter, showRecordings remains true, so hidingBackground still removes matching background conversations. ConversationProvider treats these as active filters—the speaker filter even drives the search pagination path—so those explicit result views cannot surface the conversations that were meant to be hidden only from default Home. Determine the default view from all active filters rather than reusing showRecordings.

Useful? React with 👍 / 👎.

Comment on lines +855 to +856
return InkWell(
onTap: () => routeToPage(context, ConversationDetailPage(conversation: conversation)),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove a recap row after its conversation is deleted

If the user opens one of these rows and deletes the conversation, ConversationDetailPage pops with {'deleted': true}, but this callback ignores the route future and leaves the deleted conversation in _background. Returning to the recap therefore shows a stale, tappable row while the normal conversation list has already entered its pending-delete/Undo flow; await the route result or refresh/reconcile this local list on return.

Useful? React with 👍 / 👎.

date: widget.summary!.date,
source: 'direct',
);
_loadBackground(widget.summary!);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Respect the episodes capability before loading background rows

This loads the new background section unconditionally, including for users and app channels whose episodes API reports enabled: false. backend/config/episodes.py:8-12 defines that response as retaining the per-conversation UI, and Home follows it via the episodesOn guard, but notes still emit salience independently; those users therefore see the same conversation both on Home and in this rollout-only recap section and incur an extra conversations request on every recap open. Gate this load and rendering on the same server capability.

Useful? React with 👍 / 👎.

Comment on lines +852 to +854
final seconds = conversation.getDurationInSeconds();
final length = OmiDuration.compact(seconds < 60 ? seconds : (seconds ~/ 60) * 60, context.l10n);
final title = conversation.structured.title.trim();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the conversation title fallback in recap rows

When a completed background conversation has salience but no generated title, this renders an empty title and leaves only its duration as the row's visible and semantic identity. That input is valid because the notes schema defaults title to an empty string, while normal conversation rows deliberately call conversationRowTitle to fall back to transcript text, date/time, or the localized untitled label and to decode escaped titles. Use the same presentation helper here.

Useful? React with 👍 / 👎.

Git-on-my-level and others added 4 commits October 23, 2026 10:27
Keep owner speech and unresolved identity visible. Finalize notes and minimum clips through one conservative salience gate, and protect historical Home rows in the client.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve concurrent localization additions through scripts/l10n.py, retaining current main strings and all 49 recap translations.

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

Keep the new import at the backend's required module boundary without growing the processing module.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Home salience gate lived in notes_output_contract and was imported at module
scope from process_conversation, which pulled LangChain into suites that load these
modules with a stubbed package tree (4 backend shards failed at collection). The gate
now lives in relevance_salience with a fail-open evidence read, and the dedupe
fingerprint import is back inside the function.

Also lists /v1/onboarding/seed-conversation as a known missing route: main's backend
suite already fails on it because fdcdc5f calls a route the backend does not have.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 7f373eb into main Oct 23, 2026
58 checks passed
@Git-on-my-level
Git-on-my-level deleted the home-live-row branch October 23, 2026 04:26
Git-on-my-level added a commit that referenced this pull request Oct 23, 2026
…sh session (#23371)

## 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 #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](https://raw.githubusercontent.com/BasedHardware/omi/6bea7ac57c5b6a41de828d7836924cda0eabecba/.agent-artifacts/ui-evidence/home-finalize/001-mobile-ios-home-after-wrap-up.png)
![Paused live page with
Resume](https://raw.githubusercontent.com/BasedHardware/omi/6bea7ac57c5b6a41de828d7836924cda0eabecba/.agent-artifacts/ui-evidence/home-finalize/002-mobile-ios-live-page-paused-resume.png)

## 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
#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](https://claude.com/claude-code)
Git-on-my-level added a commit that referenced this pull request Oct 23, 2026
## What

Home's live row said "Live · 10s · 343 people". It counted distinct raw
speaker ids in the live transcript, and those ids are per-session
diarization labels: a long session hands out hundreds. It now counts the
people the transcript actually names (the owner plus speakers resolved
to the user's people), the same list the live page header shows. The
count appears only when at least two people are named.

Regression from #23366 (A4a live row), reported by David on TestFlight
1.0.573.

## Tests

`test/widgets/episodes_ui_test.dart`: 40 unnamed voices never show a
people count. 22 tests in the episode and Home suites pass.

Failure-Class: FC-generated-presentation-contract-bypass

UI-Evidence: none -- removes a wrong count from an existing row; no
layout change

## Risk

Client-only, a one-line count change. Rollback is a revert.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/23379?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23379?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23379&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
kodjima33 added a commit that referenced this pull request Nov 1, 2026
## What changed and why

Require Nik's explicit current-head approval for UI PRs involving
Git-on-my-level as opener or linked commit author/coauthor. Other
accounts and provider/backend-only work pass. The account introduced the
transparent Home live row in commit 30b960c (#23366); #23417 only
preserved it.

A read-only job resolves the immutable head before SHA-scoped
concurrency. Replaced pending events therefore re-evaluate that same
head, including current approval revocations, without scanning evidence
for unrelated PRs. File/author evidence is bound to immutable base/head
SHAs; SwiftUI source is inspected as data for arbitrarily named
components. Trusted base workflow code reads API data, publishes `UI
author approval` on the exact head and mentions @kodjima33 once per
head. Nik approves with `/approve-ui <full head SHA>` and withdraws with
`/reject-ui <full head SHA>`. No PR code executes with write
credentials. API errors and incomplete author evidence fail closed.

## Verification

Node tests cover opener/author/committer/coauthor, unrelated work,
rename detection, stale/wrong-user approval, revocation, API truncation,
repeated notification deduplication, fresh-head notification and API
failure. actionlint passes. Independent security review found and fixed
shared-SHA status leakage, mutable PR evidence races, dropped pending
revocations, and desktop UI location gaps. Twelve focused tests pass.
Fresh independent security review approved 150e7d0. A live read-only
API run on #24200 took 18.89 seconds and 11 API invocations, expanding
to about 29 HTTP requests across 950 open PRs in ten summary pages
(writes intercepted).

## Activation

Parent owns merging. After the workflow is on main, add required status
`UI author approval`, bound to GitHub Actions app 15368, preserving
Mobile Release Eligibility and strict=false. Do not require the status
before the workflow exists. Existing administrator bypass remains
unchanged (enforce_admins=false). No account access is revoked. Live
Actions behavior is unverified until merged.

## Product invariants affected

none

## Failure class (fixes)

Failure-Class: none
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