Skip to content

fix: recommend plugins for documents and binary files - #3175

Open
deadlyjack wants to merge 3 commits into
mainfrom
fix/recommend-document-plugins
Open

deadlyjack wants to merge 3 commits into
mainfrom
fix/recommend-document-plugins

Conversation

@deadlyjack

Copy link
Copy Markdown
Member

Opening a pdf, docx or other binary file never suggested a plugin that can open it, because binary files were skipped before the registry lookup. Recommend them like other unsupported files, both for in-app opens (before the binary prompt and the size limit) and for files opened from other apps.

Skip binary files an installed handler covers, honor the user's mode association, and catch errors thrown while recommending.

Opening a pdf, docx or other binary file never suggested a plugin that
can open it, because binary files were skipped before the registry
lookup. Recommend them like other unsupported files, both for in-app
opens (before the binary prompt and the size limit) and for files
opened from other apps.

Skip binary files an installed handler covers, honor the user's mode
association, and catch errors thrown while recommending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

The PR adds plugin suggestions for unsupported documents and binary files.

  • Unsupported binary files can now lead to matching plugin suggestions.

Reviews (3) · Last reviewed commit: "fix: honor disabled recommendations afte..." · Reviewed by Greptile

Comment thread src/lib/recommendModePlugin.js Resolved
Comment thread src/lib/recommendModePlugin.js Resolved
Files opened from other apps can be rejected before plugins finish
loading, and nothing retried their recommendation. Wait for the initial
plugin load instead of dropping it; editor tabs are still rechecked by
setMode after the load.

A plugin can register a file handler while the registry lookup is
pending, so check for a binary file handler again right before showing
the notification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

Comment thread src/lib/recommendModePlugin.js Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@deadlyjack

Copy link
Copy Markdown
Member Author

@greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant