Repository navigation
Use scoped document previews for local workspace file links - #27171
Closed
noisefallacy wants to merge 1 commit into
Closed
noisefallacy wants to merge 1 commit into
noisefallacy wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Route local workspace file previews through the existing permission-scoped
orca-preview://document path instead of creating rawfile://browsing tabs. Add a local grant owner to renderer/preload/main contracts and serve local bytes through the canonical authorized reader, without a base64 round trip. Treat linked Python source as plain text.Reuse entry/initial-directory/additional-directory authorization, canonical path and symlink containment, trusted-renderer grant minting, and existing bounded reads (10 MiB). Keep document CSP, raw-file navigation refusal, remote ownership and external-navigation fences unchanged. Remove obsolete browser-only local-preview branches and incidental mock-echo tests; add actual-filesystem consumer regressions. Update existing README asset guidance.
Scope
Related to #16717 and #20997 for the native Open Preview to the Side workflow. This deliberately does not change raw
orca tab create --url file:///...navigation, and does not claim to close those issues in full. Existing browser pages are not migrated. Native preview assets must be local; CDN scripts remain blocked by the existing document CSP.Verification
Limits
The isolated verification app has been closed; no installed app/profile replacement was performed. Remaining report-specific section/evidence/image link activation and locally vendored formula rendering have not been visually verified. Development-mode renderer hit a pre-existing GrowingByteBuffer export error; verification used the successful standard production build, not an unrelated code workaround.