Repository navigation
Fix file drag-and-drop and file input in browser panel - #214
austinywang merged 9 commits into
Conversation
Two fixes for the browser panel: 1. File drag-and-drop from Finder: CmuxWebView previously suppressed ALL drag type registration as a no-op to prevent bonsplit tab drags from being intercepted. Now it selectively filters out only the text-based types that conflict with bonsplit (public.text, public.utf8-plain-text, public.plain-text) and the custom tab transfer types, while allowing file URL types through so Finder drops work. 2. File <input> elements: Added the WKUIDelegate runOpenPanelWith method to BrowserUIDelegate so clicking a file input opens the native macOS file picker (NSOpenPanel), with support for multiple selection and directory picking as specified by the HTML element. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
…low/take-a-look-at-https-github-com-manaflow-ai-cmux-i-nmcrq
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
…low/take-a-look-at-https-github-com-manaflow-ai-cmux-i-nmcrq
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
…low/take-a-look-at-https-github-com-manaflow-ai-cmux-i-nmcrq
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
…low/take-a-look-at-https-github-com-manaflow-ai-cmux-i-nmcrq
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
Older manaflow preview screenshots (latest comment is below)Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
…low/take-a-look-at-https-github-com-manaflow-ai-cmux-i-nmcrq
Preview Videos and ScreenshotsOpen Workspace (1 hr expiry) · Open Dev Browser (1 hr expiry) · Open Diff Heatmap Failed to capture screenshots for commit
Generated by manaflow preview system |
* Fix file drag-and-drop and file input in browser panel (manaflow-ai#194) Two fixes for the browser panel: 1. File drag-and-drop from Finder: CmuxWebView previously suppressed ALL drag type registration as a no-op to prevent bonsplit tab drags from being intercepted. Now it selectively filters out only the text-based types that conflict with bonsplit (public.text, public.utf8-plain-text, public.plain-text) and the custom tab transfer types, while allowing file URL types through so Finder drops work. 2. File <input> elements: Added the WKUIDelegate runOpenPanelWith method to BrowserUIDelegate so clicking a file input opens the native macOS file picker (NSOpenPanel), with support for multiple selection and directory picking as specified by the HTML element. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore(claude-opus-4-6): take a look at https://github.com/manaflow-ai/cmux/issues... * ok * wok --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
CmuxWebViewpreviously suppressed ALL drag type registration (no-op) to prevent bonsplit tab drags from being intercepted by the WKWebView. Now it selectively filters out only the text-based types (public.text,public.utf8-plain-text,public.plain-text) and custom bonsplit tab transfer types, while allowing file URL types through so Finder drops reach the web content.<input>elements: AddedwebView(_:runOpenPanelWith:initiatedByFrame:completionHandler:)toBrowserUIDelegate(WKUIDelegate) so clicking a file input opens the native macOS file picker (NSOpenPanel), with support for multiple selection and directory picking.Closes #194
Test plan
<input type="file">element in the browser panel — verify the native file picker opens<input type="file" multiple>🤖 Generated with Claude Code