Repository navigation
feat(macos): show discarded conversations and restore retained recordings - #23693
Conversation
…ings Add the companion restore path required before the media/noise rollout can expand. Keep list/count/search/cache scope aligned and publish only a canonical successful restore fenced to the requesting account.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Canonical read-only Luna round 1 reviewed exact head One P2 was independently verified in David approved controls/wording in screenshots 001–003, relayed by lead ruling |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e163051e5
ℹ️ 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".
| if !row.discarded && current { | ||
| confirmedRestores[row.id] = row | ||
| confirmedRestoreRevisions[row.id] = row.updatedAt |
There was a problem hiding this comment.
Preserve transcript detail when updating the restore overlay
After restoring a conversation, a subsequent list refresh can replace the full confirmedRestores entry with a list-only projection. The backend explicitly permits list responses without transcript_segments (backend/routers/conversations.py, get_conversations), and their revision satisfies this condition. If the user then opens the conversation offline, detail() prefers this sparse entry over the complete SQLite detail in both its cached callback and error fallback, making the retained transcript unavailable despite it still being cached. Merge list fields without dropping loaded detail, or limit the restore overlay to the visibility fields instead of substituting the entire conversation.
Useful? React with 👍 / 👎.
Reuse the established completeness-aware reconciliation policy for fresh restore overlays and offline cached detail. Sparse list/search payloads must not erase a loaded transcript, while explicit empty detail remains canonical. Add behavioral restore/list/search/offline regressions.
Normal reconciliation before publication: fast-forward the solrestore desktop lane onto current upstream main without force push.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 28857c43f9
ℹ️ 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".
| return ConversationReconciliationPolicy.retainingLoadedTranscript( | ||
| server: confirmedRestores[id] ?? cached, current: cached) |
There was a problem hiding this comment.
Update the restore overlay after subsequent mutations
If a user restores a conversation, successfully renames/stars/moves it, and then opens it offline before another successful server read, this fallback returns the old restore fields instead of the newer cached values. mutate() stores the canonical mutation response and clears the pending fields, but never updates confirmedRestores; retainingLoadedTranscript preserves only transcript data, so it cannot preserve the later title, star, or folder change. The cache-first list path makes the same unconditional substitution. Update the overlay from successful mutations, or overlay only the restored visibility fields onto newer cached records, so acknowledged edits do not revert while offline.
Useful? React with 👍 / 👎.
Hidden media/noise/bystander conversations on macOS can now be found with Filter → Show Discarded and restored from the row menu or detail. Audio/transcripts remain accessible; discarded detail withholds derived notes. Restore publishes the full canonical response only after the server confirms success, rejects stale account responses, and keeps list/count/search/cache scope aligned.
This is the desktop companion for #23669 / #23358. The phone-compatible POST reprocess endpoint must include #23669's backend keep-intent fix: it derives
user_keptfrom stored discard/keep state before classification; it accepts no clientuser_keptbody or query field. Desktop uses the phone's 180-second timeout. No backend deploy, flag/cohort change, data repair, workflow change, or new icon is included.Validation: 56 focused Swift tests passed (repository, search filtering, restore API and finalization projection); compact cross-surface gate passed 71 Swift tests, agent contracts and harness failure propagation. The named non-production app compiled/signed and passed its 19-file Mach-O audit. Actual mounted UI checks against loopback synthetic fixtures covered list filtering, retained transcript, search scope and restore POST200; persisted readback confirmed discarded=false and user_kept=true. LLM/provider leaves were controlled: this is REST/persistence/UI acceptance, not an LLM-quality or audio-playback claim. Production source is unchanged since those checks. After the test-only lint correction, m1 package compile passed and all 52 bounded normal push gates passed. An extra m1 filtered XCTest run stalled at unrelated VoiceTurnDomainTests startup and was stopped; that runtime is inconclusive. New head 28857c4 (retain-detail fix, merge of 17 upstream commits, authorized test seed correction): m1 package compile passed, and the bounded intended-bundle runner for the expanded 59-test selection produced real XCTest output but stalled in its first async case and exited its own 60-second bound as INCONCLUSIVE (124); per instruction it was not retried or loosened — the 59-test runtime claim stays inconclusive on m1. The prior-head 56-test and mounted-UI evidence above is unchanged. Canonical read-only Luna round 1 returned SHIP with no P0/P1 at prior head 1e16305; its one non-blocking P2 is deferred to #23695 (restoring changed summary text can leave a stale text-search hit until refresh). Luna round 2 (delta-only, since 1e16305) returned SHIP with no findings at 08:44Z (ledger round 2, out review-23693-r2.md). Terminal exact-head CI is GREEN: Desktop Swift Static & Test Contracts passed in 35m55s at 28857c4 along with all other non-skipping checks.
UI-Evidence: David approved the Show Discarded / Restore Conversation controls and wording shown in screenshots 001–003 on 2026-10-26, relayed by lead ruling 9eddbf at 07:54Z. The PR is ready for review; canonical Luna and terminal CI still gate merge, which the lead owns. Broader wave-2 expansion also requires the desktop companion and backend dependency to ship. Backend durability when a later processing step fails remains owned by wave2ramp in #23669. No merge or deployment is claimed.
Invariant-Impact: INV-AUTH-1, INV-NAV-1, INV-UI-1, INV-UI-2. Session-generation fences remain authoritative; restore adds no alternate mutation authority and uses existing desktop controls and navigation.
Failure-Class: none