Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(desktop): restore browser file drop uploads (#8170)
Eric Hayesa4f12ba8c688
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.mdindex 4a6587d1d3..879ac21a4c 100644--- a/apps/web/AGENTS.md+++ b/apps/web/AGENTS.md@@ -116,6 +116,18 @@ the startup bundle, and Lexical nodes.## Notes- Don't shy away from pulling good examples into context. In the case of solid-primtiives/kobalte try reading documentation, or just temp clone into /tmp to reference+## Desktop file drops++Keep `app.windows[].dragDropEnabled` false in `tauri/src-tauri/tauri.macos.conf.json`.+Markdown editors and attachment inputs use browser events through `fileFolderDrop`+and `fileDrop`; Tauri's native handler intercepts Finder drops before those handlers+receive them. This config change requires a rebuilt macOS app; a frontend bundle+update alone does not apply it.++Tauri replaces arrays when merging platform configuration. Keep the other macOS+window settings aligned with `tauri/src-tauri/tauri.conf.json` when changing the+shared window. Verify with the [Finder-drop walkthrough](../../docs/agent-guide/documents.md#desktop-file-drops).+## Subscription offersUse `useTrialEligibilityQuery` for trial copy and checkout terms in Billing,diff --git a/apps/web/tauri/src-tauri/tauri.macos.conf.json b/apps/web/tauri/src-tauri/tauri.macos.conf.jsonindex f660917c27..66ea1a17e1 100644--- a/apps/web/tauri/src-tauri/tauri.macos.conf.json+++ b/apps/web/tauri/src-tauri/tauri.macos.conf.json@@ -1,5 +1,25 @@{"$schema": "https://schema.tauri.app/config/2",+ "app": {+ "windows": [+ {+ "title": "Macro",+ "width": 800,+ "height": 600,+ "resizable": true,+ "dragDropEnabled": false,+ "decorations": true,+ "titleBarStyle": "Overlay",+ "trafficLightPosition": {+ "x": 16,+ "y": 20+ },+ "hiddenTitle": true,+ "fullscreen": false,+ "backgroundThrottling": "disabled"+ }+ ]+ },"bundle": {"icon": ["icons/32x32.png",diff --git a/docs/agent-guide/documents.md b/docs/agent-guide/documents.mdindex f7ee8c147f..1c30045747 100644--- a/docs/agent-guide/documents.md+++ b/docs/agent-guide/documents.md@@ -780,6 +780,20 @@ client. A viewer's edit must fail; a concurrent manual edit must force a freshread. These tool calls require the updated AI backend, AI editing worker, and syncservice; the frontend alone cannot test their hosted path.+## Desktop file drops++In a rebuilt macOS desktop app, drag a PNG and a PDF from Finder into a+disposable Markdown document, then into channel and AI chat attachment inputs.+Check that each drop shows the upload feedback and adds each file once, with+images rendered inline in Markdown and attachments visible in the composers.+Try multiple files and a second drop after the first completes. Discard unsent+drafts after checking. Also check that the file picker still attaches files.++Use an actual Finder drag for this check: synthetic browser events bypass+Tauri's native interception and cannot verify the desktop window configuration.+The setting and native rebuild requirement are documented in the+[web agent guide](../../apps/web/AGENTS.md#desktop-file-drops).+## Folder uploadsDropping a folder (or choosing one with the folder picker) zips it in the browser