Skip to content

Upgrade hang fixes - #10

Open
manton wants to merge 1 commit into
mainfrom
fix/upgrade-hang
Open

Upgrade hang fixes#10
manton wants to merge 1 commit into
mainfrom
fix/upgrade-hang

Conversation

@manton

@manton manton commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

We try to convert 1.0 saved recordings to the new format. Sometimes thinks go wrong, and this should make it more robust to at least not hang the app forever.

cc: @vincentritter

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 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-09-09T16:11:57.194723Z 17e22a8 PR opened
ℹ️ 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.

@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: 17e22a8c11

ℹ️ 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 src/stores/Episodes.js
Comment on lines +206 to +209
const timeout = setTimeout(() => {
console.warn('Legacy recording upgrade timed out.');
self.continue_without_legacy_upgrade();
}, LEGACY_UPGRADE_TIMEOUT_MILLIS);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid cancelling healthy migrations after a fixed total timeout

This single timer covers the entire legacy scan and every sequential clip conversion, but normalize_imported_audio analyzes and transcodes each complete audio file. On a slower device, a long recording, or a library containing several recordings, valid work can exceed 30 seconds; the timeout then marks the upgrade cancelled, discards a late conversion, and did_check_for_legacy prevents another attempt for the lifetime of the process. A clip that consistently takes over 30 seconds can therefore remain inaccessible on every launch even though conversion is making progress, so the timeout should detect inactivity or reset around individual progress rather than cap the whole migration.

Useful? React with 👍 / 👎.

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