Skip to content

🦗 Recover PDF enhancement from local file permission errors - #231

Merged
JFWooten4 merged 3 commits into
mainfrom
harsh-critique
Nov 26, 2026
Merged

JFWooten4 merged 3 commits into
mainfrom
harsh-critique

Conversation

@kefania-pony

@kefania-pony kefania-pony Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Local PDFs can open successfully in the browser yet fail at Preparing the document when the native enhancer is denied access to their filesystem path. Enhancement now falls back to the PDF bytes already loaded by the viewer rather than requiring the user to move the file.

  • Keep direct-path enhancement as the normal route for file: URLs. Retry through the existing acknowledged native-messaging upload only for preparation-stage [Errno 1] or [Errno 13] errors; other failures retain the existing error handling.
  • Preserve the source and reference URLs. Newly generated fallback copies use the existing application-data output directory rather than the source directory. Ordinary local copies still use the source directory, and the README documents the distinction.
  • Extend the error handling and return navigation established in 🐝 Preserve Enhance errors and fix MIME-handler return navigation #203 with a regression test that simulates a denied Desktop path, checks the transferred bytes and reference URL, and verifies that the enhanced copy opens in the viewer on the original page.

The fallback has not yet been verified end to end in the installed Brave extension.

🔗 Source

Online · Local · Desktop

JFWooten4 and others added 3 commits November 26, 2026 11:16
Co-authored-by: Spellchecker (Ollama qwen2.5-coder:7b) <326443430+codex-pony[bot]@users.noreply.github.com>
@JFWooten4
JFWooten4 merged commit 23337a2 into main Nov 26, 2026
14 checks passed
@JFWooten4
JFWooten4 deleted the harsh-critique branch November 26, 2026 16:24
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