Repository navigation
fix(web): only check open modifier when an open action exists - #1
Merged
joshka merged 1 commit intoOct 18, 2026
Conversation
The file-link click handler read the modifier keys before checking that an editor or external-open action was available. When host actions are revoked, it still evaluated navigator.platform, which failed the existing ChatMarkdown.permissions test. Check availability first, as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
joshka
merged commit Oct 18, 2026
adbcc33
into
joshka:joshka/file-links-open-externally
7 of 22 checks passed
Owner
|
thanks |
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.
Fixes the one failing test on
joshka/file-links-open-externally(ChatMarkdown.permissions.test.tsx > removes host actions after revocation while keeping file preview and copying).The click handler now checks the open modifier only when an editor or external-open action exists, as it did before the branch. With host actions revoked, a plain click still falls through to the file preview.
Verified on Arch Linux, from
apps/web:vp test run src/components/ChatMarkdown.test.tsx src/components/ChatMarkdown.assets.test.tsx src/components/ChatMarkdown.permissions.test.tsx src/contextMenuFallback.test.ts src/localApi.test.tsResult: 105/105 passed (it was 104/105 before this fix).
vp fmt --checkand the web typecheck pass. Lint shows only warnings that were already there.Claude Opus 5.5 on behalf of Joel Staugaitis.
🤖 Generated with Claude Code