Skip to content

Prioritize editor rendering over thumbnail refreshes - #1647

Open
reville wants to merge 1 commit into
CyberTimon:mainfrom
reville:codex/prioritize-editor-rendering
Open

Prioritize editor rendering over thumbnail refreshes#1647
reville wants to merge 1 commit into
CyberTimon:mainfrom
reville:codex/prioritize-editor-rendering

Conversation

@reville

@reville reville commented Aug 30, 2026

Copy link
Copy Markdown

Summary

  • keep the existing 300 ms sidecar autosave, but coalesce adjusted-thumbnail refreshes until the editor has been idle for 1.5 seconds
  • prioritize queued GPU work as interactive editor, selected thumbnail, visible thumbnail, background work, then export
  • register editor priority before preview preparation so queued thumbnail work cannot jump ahead
  • suppress stale thumbnail events across edits, batch operations, cancellations, and folder/album navigation
  • flush the pending metadata save before cancelling old-folder thumbnail work

Validation

  • cargo test --manifest-path src-tauri/Cargo.toml (10 passed)
  • cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets --all-features -- -D warnings
  • npm run build
  • npx prettier --check src/hooks/useAppNavigation.ts src/hooks/useEditorActions.ts

The repository-wide TypeScript and ESLint checks still surface pre-existing errors on main; neither reports a new error on the changed lines.

@reville
reville requested a review from CyberTimon as a code owner August 30, 2026 20:36
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