Repository navigation
revert(app): remove mobile chat history and new chats - #20015
Conversation
Resume the current conversation from every mobile entry point and remove the separate history/new-chat controls. Preserve backend sessions, stored messages, the composer and active sends.
|
Reviewed this revert of the mobile chat-history surface from #19838. The removal is clean and coherent — thanks for keeping it tightly scoped and for the honest changelog entry. File-by-file notes:
The retained Two minor nits, non-blocking:
One caveat on verification: most CI lanes were skipped on this run, and the test evidence is PR-body-reported. If you can attach the Leaving the ship/no-ship call to a human maintainer: fully removing a feature that landed a day earlier (rather than fixing it) is a product-direction decision, and mobile loses any access to saved past sessions while desktop/backend session storage remains — a parity gap worth an explicit sign-off. AI-generated maintainer feedback on behalf of the Omi maintainers. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
origin/main (298baab) does not compile: the detail-v3 merge reintroduced `ChatPage(startFresh: ...)` after #20015's revert removed the parameter, and the frost-previews merge dropped `_buildCardContent` while keeping its call site. Both breaks are on main with no lane changes applied; this restores compilation so the mobile lanes (including this PR's) can run. - conversation_list_item.dart: restore `_buildCardContent` from 3f1ab32 (locked-preview frost wrapper around the mobile card content). - conversation_detail/page.dart: drop the `startFresh` argument — the revert's contract is that every entry point resumes the current conversation, and `initialChatContext` already scopes the chat to this conversation.
origin/main (298baab) does not compile: the detail-v3 merge reintroduced `ChatPage(startFresh: ...)` after #20015's revert removed the parameter, and the frost-previews merge dropped `_buildCardContent` while keeping its call site. Both breaks are on main with no lane changes applied; this restores compilation so the mobile lanes (including this PR's) can run. - conversation_list_item.dart: restore `_buildCardContent` from 3f1ab32 (locked-preview frost wrapper around the mobile card content). - conversation_detail/page.dart: drop the `startFresh` argument — the revert's contract is that every entry point resumes the current conversation, and `initialChatContext` already scopes the chat to this conversation.
origin/main (298baab) does not compile: the detail-v3 merge reintroduced `ChatPage(startFresh: ...)` after #20015's revert removed the parameter, and the frost-previews merge dropped `_buildCardContent` while keeping its call site. Both breaks are on main with no lane changes applied; this restores compilation so the mobile lanes (including this PR's) can run. - conversation_list_item.dart: restore `_buildCardContent` from 3f1ab32 (locked-preview frost wrapper around the mobile card content). - conversation_detail/page.dart: drop the `startFresh` argument — the revert's contract is that every entry point resumes the current conversation, and `initialChatContext` already scopes the chat to this conversation.
…tention window (#20172) * feat(app): auto-remove synced local recording copies with a 30-day retention window - Wal.syncedAt stamped at every synced transition; 0 = unknown age, never removed. Serialized as synced_at in the WAL index. - LocalWalSyncImpl._removeExpiredSyncedCopies deletes phone-disk synced copies older than the window; hooked at WAL init and after a full upload pass, logged as wal_synced_copy_autoremove. - Preference exposed in the Manage Storage sheet and on the Offline Sync page (one shared Icons.auto_delete row treatment). Existing onboarded installs are pinned OFF once at startup; fresh installs default ON at 30 days. - Manage Storage rows moved onto OmiColors/OmiType/OmiRadius tokens so the sheet renders correctly in light and dark mode. * fix(app): close review findings in synced-copy auto-remove Review findings (Devin swe-2-high), each verified at file:line before fixing: - Streamed WALs that land already-synced (_chunk new/updated WAL, finalize tail buffer) now stamp syncedAt, so live-streamed recordings are eligible for auto-remove instead of silently never aging out. - Startup default migration writes the preference key BEFORE the marker, so a crash mid-migration retries on the next launch instead of leaving an existing install pinned to the ON default without consent. - The Manage Storage auto-remove row holds its tapped value locally: the sheet is stateless and would otherwise visually snap the switch back while the stored preference had already changed. * fix(app): decide the auto-remove default on first launch, not per-onboarding-state Round-2 review finding: onboardingCompleted is set during launch 1 for new users, so a launch-2 migration keyed on it pinned fresh installs to OFF, defeating the default-ON requirement. The split is now decided on the first launch that runs this build: - already onboarded = an upgrading install: pin OFF once (key before marker, so a crash mid-migration retries); - not yet onboarded = a fresh install: mark it immediately so no later launch mistakes it for an upgrade; the ON default governs until the user toggles. Adds a launch-1/launch-2 regression test for the onboard-after-install path. * chore(app): add FC-launch-later-cohort-misclassification definition * fix(app): close PR-review findings in synced-copy auto-remove PR #20172 review (codex + cubic): - Streamed WALs marked synced by socket-send bookkeeping are transport-only, not server-confirmed: they no longer start the retention clock (syncedAt stays 0 until a server-confirmed transition stamps it), so the sweep can never delete the only copy of an unacknowledged recording. A WAL that receives new unacked frames also resets its clock. - The migration commits its marker only after the upgrade-pin write succeeds, so a failed write retries on the next launch. - The sweep runs on the no-pending-work early-return path and when the toggle is enabled, so expired copies age out without waiting for a restart. - Sweep covers all three durable buckets (active, retired, foreign), matching the device-wide scope of the existing retention cap. - Local Copies settings section uses OmiSettingsGroup/OmiSettingsRow instead of hand-rolled header/radius (UX contract). - Tests: streamed-syncedAt==0 contract, sdcard/flashPage exclusion, non-default retention window; test names updated to match asserted behavior. * fix(app): restore compile after the conversation-detail-v3 merge on main origin/main (298baab) does not compile: the detail-v3 merge reintroduced `ChatPage(startFresh: ...)` after #20015's revert removed the parameter, and the frost-previews merge dropped `_buildCardContent` while keeping its call site. Both breaks are on main with no lane changes applied; this restores compilation so the mobile lanes (including this PR's) can run. - conversation_list_item.dart: restore `_buildCardContent` from 3f1ab32 (locked-preview frost wrapper around the mobile card content). - conversation_detail/page.dart: drop the `startFresh` argument — the revert's contract is that every entry point resumes the current conversation, and `initialChatContext` already scopes the chat to this conversation.
…ge argument so main compiles (#20216) * fix(app): restore the locked-preview card content and drop a stale ChatPage argument so main compiles The merge of #20044 kept the call to _buildCardContent but dropped the method, the isLocked row signature and the removal of the old locked overlay. The conversation-detail merge re-added startFresh: true, which #20015 removed. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(app): changelog for the locked preview overlay Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
TL;DR
Revert the unwanted Past chats / New Chat feature. Ask Omi keeps one continuous chat when
reopened, with a cleaner header. The current chat UI and saved messages stay intact.
Screenshots
User-supplied screenshots from the production preview build. Home is included as context;
its layout and Ask Omi bar are unchanged by this PR. Screenshot assets are hosted in the
contributor's fork, outside this code diff.
What changed and why
This partially reverts the mobile chat-history and fresh-session behavior introduced in #19838.
Opening Ask Omi should continue one ongoing conversation. Previously, reopening it from Home
started a fresh session and the history control exposed Past chats and New Chat. After this
change, reopening keeps the current messages and any active reply.
This is a targeted revert of that feature. The chat presentation and other changes from #19838
remain in place.
ChatPage.startFreshand update Home, typed/voice quick actions, deep links,conversation detail and app detail to resume the current conversation.
Existing server sessions and messages remain stored. This does not delete, merge or migrate
previous threads. Enabled chat apps retain their scoped behavior, and Clear Chat still confirms.
How it was verified
Local checks passed against upstream main
8bd26833ef3b(still current when fetched before publication):The production Profile-prod preview build was installed on an iPhone 15 Pro Max. Signature,
compiled checkout identity, production API/Firebase and sign-in callback were verified. The user supplied the iPhone screenshots below showing the active chat and Home. A final
automated cold-restart/reopen check remains pending because device services are unavailable;
physical microphone/Bluetooth behavior was not exercised in this follow-up.
Hosted CI passed on commit
7921b25b212e, with the maintainer-grantedci:fulllabel:Mobile App Checks passed Dart
Analyze & Tests, Generated Files and Mobile Release Eligibility. Repository hygiene, formatting,
metadata and applicable contract checks also passed. Native compile and hosted journey lanes
were not selected by this PR's changed paths; the full 23-check journey suite passed locally.
Commands run:
TZ=UTC bash app/test.sh,bash app/scripts/analyze_ratchet.sh,python3 app/scripts/l10n.py check,make mobile-verify ARGS="fast --all",bash scripts/pr-preflight --lane local --base upstream/main --pr-body-file <body>, andapp/scripts/visual_audit.shin Light and Dark.Regression coverage
app/test/widgets/chat_continuity_navigation_test.dartcovers repeated close/reopen, loading anempty provider through the current-chat path, preserving an active reply, absent history controls,
centered handle, drafts, latest-only suggestions, constrained layouts and header-only dismissal.
The
chat-current-threadvisual scenario uses the real HTTP client/provider with a syntheticbackend. It disposes and recreates the page/provider, reloads the existing transcript, continues
it, and asserts zero chat-session list/create requests. Existing voice, failed-reply, response
actions and Clear Chat tests remain in the suite.
Product invariants affected
none — no locked invariant requiring a citation matches this mobile-only change. Shared mobile
UX and brand checks passed.
Failure class (fixes)
Failure-Class: none
This removes an unwanted product behavior; backend session resolution and storage are unchanged.
No failure-class registry definition is added or changed.
Scoped cleanups
Remove the retired page and its dedicated tests, update chat ownership documentation and add a
mobile changelog fragment. Remove one pre-existing unused test-helper import so the analyzer
ratchet passes without changing its baseline.