Skip to content

feat(macos): show discarded conversations and restore retained recordings - #23693

Merged
Git-on-my-level merged 7 commits into
mainfrom
lane/wave2restore
Oct 26, 2026
Merged

Git-on-my-level merged 7 commits into
mainfrom
lane/wave2restore

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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_kept from stored discard/keep state before classification; it accepts no client user_kept body 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.

Discarded conversations
Restore conversation
Retained transcript

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

Git-on-my-level and others added 4 commits October 26, 2026 03:08
…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.
@Git-on-my-level
Git-on-my-level marked this pull request as ready for review October 26, 2026 07:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T08:40:14.307693Z 28857c4 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.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Canonical read-only Luna round 1 reviewed exact head 1e163051e52f3ecdc29bca1b7ce8f8734aff576b and returned VERDICT: SHIP, with no P0/P1 findings. It was a source review, separate from the completed rendered synthetic desktop checks.

One P2 was independently verified in ConversationsPage.swift:234: the restore publisher replaces a search result without rechecking its text query, so changing summary-only search text can leave a stale hit until refresh. Deferred under the permitted minor-finding policy to #23695, tracked under the existing wave-2 initiative with lead routing due 2026-10-27 08:00Z. This exact summary-change scenario was source-verified, not exercised in the rendered fixture. No second round is needed for a source delta because there is no post-review source change.

David approved controls/wording in screenshots 001–003, relayed by lead ruling 9eddbf and recorded in UI-Evidence. The PR is ready for review. Exact-head CI is still pending; lead owns merge after it is green. No merge or deployment is claimed.

@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: 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".

Comment on lines +873 to +875
if !row.discarded && current {
confirmedRestores[row.id] = row
confirmedRestoreRevisions[row.id] = row.updatedAt

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 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 👍 / 👎.

Git-on-my-level and others added 3 commits October 26, 2026 04:18
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.

@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: 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".

Comment on lines +547 to +548
return ConversationReconciliationPolicy.retainingLoadedTranscript(
server: confirmedRestores[id] ?? cached, current: cached)

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 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit bb8a5c5 into main Oct 26, 2026
54 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/wave2restore branch October 26, 2026 10:10
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