Skip to content

Fix macOS session reconciliation recovery - #9103

Merged
Git-on-my-level merged 2 commits into
mainfrom
codex/fix-macos-session-reconciliation
Jul 6, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
codex/fix-macos-session-reconciliation

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 5, 2026 •

Copy link
Copy Markdown
Member

Summary

  • recover exhausted macOS cloud-reconciliation sessions that still have saved local transcript segments by retrying the existing local-segment finalization path
  • add structured reconciliation-failure diagnostics for available inputs, timing, status, and local fallback availability
  • add focused state-machine coverage and a desktop changelog fragment

Closes #9083.

Related: #8197 is a broader desktop conversations cache-authority project, and #4354 is mobile/offline-sync reprocessing, so this PR does not close those.

Testing

  • xcrun swift test --package-path Desktop --filter TranscriptionFinalizationStateMachineTests
  • xcrun swift build -c debug --package-path Desktop
  • pre-push fast checks, including desktop Swift build

Note: attempted to launch named bundle omi-session-recovery, but run.sh was blocked waiting on another active run lock, so I stopped my waiting process without disturbing the existing app session.

Review in cubic

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

2 issues found across 6 files

Confidence score: 3/5

  • In desktop/macos/Desktop/Sources/Rewind/Core/TranscriptionStorage.swift, the recovery query can miss exhausted legacy cloud sessions where finalizationStrategy == nil, so those sessions may never be recovered/reconciled and could remain stuck after merge — align the query’s nil-handling with the finalizer logic before merging.
  • In desktop/macos/Desktop/Tests/TranscriptionFinalizationStateMachineTests.swift, coverage currently stops at the DB filter and does not verify the full recoverPendingFinalizations() path, which leaves a realistic regression gap for dispatching recovered sessions into finalization — add an end-to-end recovery/finalization test to de-risk this change.

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

Re-trigger cubic

@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: 8ba85c3963

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

@Git-on-my-level
Git-on-my-level merged commit bbff78c into main Jul 6, 2026
3 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/fix-macos-session-reconciliation branch July 6, 2026 02:01
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.

macOS audio capture sessions fail reconciliation after recording, causing missing conversations

1 participant