Respect Markdown Viewer preference for file URLs#12866
Conversation
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR updates file:// Markdown routing so the Markdown Viewer preference is checked before choosing the notebook viewer path, with regression coverage for both enabled and disabled preference states.
Concerns
- For this user-facing change, please include screenshots or a short screen recording demonstrating the file URL open behavior end to end with the Markdown Viewer preference disabled. This change is visible to users because it changes whether a Markdown file opens in the Markdown Viewer or editor, and the repository review guidance requires visual evidence for user-facing behavior changes.
Verdict
Found: 0 critical, 1 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
|
I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR updates file:// Markdown routing so the Markdown Viewer preference controls whether Markdown files open in the notebook viewer or the editor path, and it adds regression coverage for both preference states.
Concerns
⚠️ [IMPORTANT] This user-facing file-open behavior lacks screenshots or a screen recording demonstrating it working end to end. Unit coverage is useful, but repo guidance requires visual evidence for user-visible behavior; please attach a short local or computer-use recording.
Verdict
Found: 0 critical, 1 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
|
/oz-review I have added one to the pr description. |
|
I'm re-reviewing this pull request in response to a review request. You can view the conversation on Warp. I reviewed this pull request and requested human review from: Comment Powered by Oz |
Oz no longer requests changes for this pull request after the latest automated review.
There was a problem hiding this comment.
Overview
This PR updates file:// Markdown routing so Warp only opens Markdown files in the Markdown Viewer when code.editor.prefer_markdown_viewer is enabled, and otherwise sends them through the editor path. It also updates the URI routing tests to cover both preference states.
Concerns
- No blocking correctness, security, or spec-alignment concerns found. The attached spec context contains no approved or repository spec to enforce, and the PR description includes visual evidence for the user-facing behavior.
Verdict
Found: 0 critical, 0 important, 0 suggestions
Approve
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
Description
Respects the Markdown Viewer preference for incoming
file://Markdown URLs.Previously, the URI handler classified every Markdown file as a notebook before reading editor settings. If macOS handed a Markdown file back to Warp through a
file://URL, Warp opened the internal Markdown Viewer even whenOpen Markdown files in Warp's Markdown Viewer by defaultwas disabled. This now routes Markdown files through the editor path when that preference is disabled.Linked Issue
Fixes #8878
ready-to-specorready-to-implement.Testing
uri_tests.rs../script/formatcargo test -p warp test_open_file_markdown_routes_to_editor_when_viewer_disabledpassed after locally applying the equivalent of upstream PRs warpui_core: fix StoredView missing child_view_ids (clippy CI failure) #12845/warpui_core: fix wasm compilation by adding StoredView::child_view_ids #12848 to unblock the currentorigin/masterwarpui_corecompile error. That unrelated unblocker is not included in this PR../script/runScreenshots / Videos
before.and.after.mp4
Changelog Entries for Stable
CHANGELOG-BUG-FIX: Fixed Markdown files opening in Warp's Markdown Viewer from macOS file URLs even when the Markdown Viewer preference is disabled.