Skip to content

fix(app): keep discarded and merged-away synced recordings off default Home (#19847) - #24856

Closed
cocvn157 wants to merge 2 commits into
BasedHardware:mainfrom
cocvn157:fix/home-hide-discarded-sync-projections-19847
Closed

cocvn157 wants to merge 2 commits into
BasedHardware:mainfrom
cocvn157:fix/home-hide-discarded-sync-projections-19847

Conversation

@cocvn157

@cocvn157 cocvn157 commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #19847

When a synced recording or live capture finished as discarded or was bridged into a discarded survivor while Show Discarded Conversations was off, several Home projection paths could still flash the discarded row on the default Home feed before the next full refresh dropped it:

  1. In �uildHomeRows (�pp/lib/pages/conversations/home_rows.dart), the standalone filter when groupAwaitingTranscript is enabled (the default Home view) removed isHomeNoise and HomeStep.failed rows, but did not exclude
    ow.conversation.isHiddenFromDefaultList (discarded || deleted || isMergedDonor). Because homeStepOf returns
    ull for discarded and deleted rows, oldProcessingRuns treated any standalone discarded row that reached �uildHomeRows (such as from an open live episode or a just-finished processing entry) as a completed standalone conversation on Home.
  2. In ConversationProvider.upsertConversation and _updateConversationProjections, finishing a conversation as completed or discarded did not remove its ID from processingConversations unless deleted || isMergedDonor was set. When a conversation completed as discarded, it was excluded from groupedConversations (listedIds in ConversationsPage), causing ConversationsPage (!listedIds.contains(c.id)) to keep passing its stale processingConversations entry into �uildHomeRows.
  3. In _replaceBridgedProjections, completed checked !survivor.deleted && !survivor.isMergedDonor rather than _matchesActiveConversationFilters(survivor), and did not evict the donor from processingConversations, allowing a bridge into a discarded survivor to surface on Home when discarded conversations were hidden.
  4. In �ddConversationWithDateGrouped, conversations were inserted directly into groupedConversations and queued to Siri without checking _matchesActiveConversationFilters(conversation) and !conversation.isHiddenFromDefaultList.

Verification

  • Updated the state-space invariant in �pp/test/unit/home_rows_state_space_test.dart to verify standalone isHiddenFromDefaultList rows never appear on default Home across all episode/member combinations.
  • Added unit tests in �pp/test/unit/home_rows_test.dart and �pp/test/providers/conversation_provider_sync_donor_test.dart covering discarded sync upserts, donor-to-discarded-survivor bridging, �ddConversationWithDateGrouped filtering, and �uildHomeRows default vs. filtered behavior.
  • Ran .github/scripts/check_diff_hygiene.py, .github/scripts/check_mobile_ux_contract.py, .github/scripts/check_brand_ui.py, .github/scripts/check_arch_guardrails.py, .github/scripts/check_dead_code.py, and .github/scripts/check-mobile-changelog.py.

View guided diff

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 7 files

You’re at about 90% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread app/test/unit/home_rows_test.dart Resolved
@Git-on-my-level

Copy link
Copy Markdown
Member

The core fix here is correct and nicely scoped — all four projection paths described in the PR body check out against the code, and each is pinned by a test. One non-blocking question below.

Verified per file:

  • app/lib/pages/conversations/home_rows.dart — the standalone-row filter now also drops isHiddenFromDefaultList rows (discarded || deleted || merged donor, per backend/schema/conversation.dart:402) only when groupAwaitingTranscript is on, so the default Home hides them while filtered views keep them; the new home_rows_test.dart case pins both directions.
  • app/lib/providers/conversation_provider.dart — upsertConversation now clears processingConversations when the incoming row is completed or discarded, and its earlier early-returns all route to paths that also clear. addConversationWithDateGrouped dedupes repeated sync inserts, gates the Siri upsert on visibility, and returns before grouped insertion when the active filters reject the row — this closes the flash-on-Home path from Synced conversation appears on Home, then silently vanishes: looks like someone else's private conversation #19847.
  • app/lib/providers/conversation_visibility.dart — _updateConversationProjections clears processing rows on hidden/completed (previously only deleted/donor), and _replaceBridgedProjections evicts the donor from processing while gating the survivor on _matchesActiveConversationFilters, covering the bridge-into-discarded-survivor case.
  • app/test/providers/conversation_provider_sync_donor_test.dart — the four new tests cover exactly the reported paths; home_rows_state_space_test.dart extends the invariant consistently; the changelog fragment matches actual behavior.

Question (non-blocking): the showShortConversations check added to _matchesActiveConversationFilters aligns it with _filterOutConvos, but the helper is also used in the processing-reconcile loops in conversation_processing.dart and in _cachedRowsBeforePage (conversation_home_fetch.dart). For users with a non-zero "hide short conversations" threshold, live/processing rows whose current transcript span is momentarily under the threshold will now drop out of processing reconciliation, and a short completed bridged survivor is removed from canonical conversations rather than kept-but-hidden. Default settings (threshold 0) are unaffected. If that's intended consistency, a test with a processing row plus a threshold set would pin it; if not, exempting active-processing statuses from the short check would be safer.

Also: no check runs have reported on this head, so the added tests haven't been exercised by CI — please make sure flutter test test/providers/conversation_provider_sync_donor_test.dart test/unit/home_rows_test.dart test/unit/home_rows_state_space_test.dart passes locally.

USER IMPACT: recordings you discarded (or that were merged away) no longer appear on your Home feed for a minute after syncing and then silently vanish — the trust-breaking behavior from #19847.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@Git-on-my-level Git-on-my-level added positive-signal Automation verified a genuine fix/quality contribution flutter flutter work labels Nov 7, 2026
@cocvn157 cocvn157 closed this Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Hey @cocvn157 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flutter flutter work positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Synced conversation appears on Home, then silently vanishes: looks like someone else's private conversation

2 participants