Skip to content

fix: avoid stuck canceling when cache database cannot be opened#556

Open
lazydao wants to merge 1 commit intobookfere:masterfrom
lazydao:fix/prepare-cache-open-failure-cancel
Open

fix: avoid stuck canceling when cache database cannot be opened#556
lazydao wants to merge 1 commit intobookfere:masterfrom
lazydao:fix/prepare-cache-open-failure-cancel

Conversation

@lazydao
Copy link
Copy Markdown
Contributor

@lazydao lazydao commented Feb 22, 2026

Summary

  • catch uncaught exceptions in preparation worker (including cache open failures)
  • always reset on_working in finally so cancel flow can complete
  • close the dialog path on preparation failure instead of leaving UI stuck in "Canceling..."

Repro

Trigger sqlite3.OperationalError: unable to open database file during advanced translation preparation (for example invalid or unwritable cache path).

Expected

Preparation shows failure details and exits cleanly instead of hanging in canceling state.

Testing

  • not run (logic change only)

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