Skip to content

Fix desktop recording finalization reconciliation - #8751

Merged
Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:fix/desktop-finalize-in-progress
Jul 1, 2026
Merged

Git-on-my-level merged 2 commits into
BasedHardware:mainfrom
Git-on-my-level:fix/desktop-finalize-in-progress

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

  • Finalize/process the current single-channel listen conversation on normal WebSocket disconnect when it has content and is still in_progress.
  • Include in_progress, processing, and completed in desktop unbound timestamp reconciliation.
  • Finalize exact-id in_progress timestamp matches before completing the local desktop session.

Validation

  • python -m pytest backend/tests/unit/test_transcribe_decisions.py -q
  • python -m py_compile backend/utils/transcribe_decisions.py backend/routers/transcribe.py
  • xcrun swift test --package-path desktop/macos/Desktop --filter StopReconciliationTests
  • black --line-length 120 --skip-string-normalization backend/utils/transcribe_decisions.py backend/tests/unit/test_transcribe_decisions.py backend/routers/transcribe.py
  • python backend/scripts/scan_async_blockers.py

E2E note: bash backend/testing/e2e/run.sh -k "transcribe_reconnect_then_finalize" could not run because backend E2E dependencies are not installed in this worktree.

Fixes #8749

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.

1 issue found across 7 files

Confidence score: 3/5

  • In backend/routers/transcribe.py disconnect finalization can delete an in-progress Redis pointer that may have been recreated by a newer session, which risks breaking tracking for the active conversation and causing user-visible transcription state glitches; before merging, only remove the key if its current value still matches this session’s conversation ID.

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

Re-trigger cubic

Comment thread backend/routers/transcribe.py Resolved

@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: 25227df431

ℹ️ 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 thread backend/routers/transcribe.py Resolved
@Git-on-my-level
Git-on-my-level merged commit 03eb3ac into BasedHardware:main Jul 1, 2026
5 checks passed
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.

Desktop recordings can remain stuck in_progress and fail local reconciliation

1 participant