Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

Readme Updted

Deepender25b7213c09df62
diff --git a/Edge-Drop-README.md b/Edge-Drop-README.md
new file mode 100644
index 0000000..693e3a0
--- /dev/null
+++ b/Edge-Drop-README.md
@@ -0,0 +1,386 @@
+<p align="center">
+ <img src="public/Logo%20(4).png" alt="Edge-Drop Logo" width="140" height="140" />
+</p>
+
+<h1 align="center">Edge-Drop</h1>
+
+<p align="center">
+ <strong>A zero-click, hover-activated clipboard shelf and native OS file-transfer hub for the desktop.</strong><br/>
+ Lives invisibly on the left edge of your screen. Approach it, and it opens. Drag anything out — into Photoshop, Word, Slack, Explorer, anywhere.
+</p>
+
+<p align="center">
+ <a href="#quick-start">Quick Start</a> ·
+ <a href="#demos">Demos</a> ·
+ <a href="#how-it-works">How It Works</a> ·
+ <a href="#architecture">Architecture</a> ·
+ <a href="#security">Security</a> ·
+ <a href="#roadmap">Roadmap</a> ·
+ <a href="#contributing">Contributing</a>
+</p>
+
+<p align="center">
+ <sub>Built with Electron · React · TypeScript · Framer Motion · Zustand</sub><br/>
+ <sub>License: Apache-2.0 &nbsp;·&nbsp; Status: Public Beta</sub>
+</p>
+
+---
+
+## Why
+
+Every clipboard manager on the market breaks your flow. You copy something, switch apps, paste, then hunt through `Win+V` history with arrow keys or dig into a tray menu. Multi-step. Modal. Slow.
+
+**Edge-Drop removes the friction.** It anchors to the leftmost pixel of your monitor as a transparent, always-on-top, click-through surface. When your cursor approaches the edge, the shelf springs open. Drag images, file stacks, rich text, and HTML bundles *out* of it — directly into whatever desktop app you're already using. No shortcuts. No window switching. No modal dialogs.
+
+It is built for the developer and creative workflow where you constantly juggle screenshots, code snippets, file paths, design assets, and reference links between many windows at once.
+
+---
+
+## Demos
+
+> All demos are silent autoplay loops. Hover to scrub, right-click → open in new tab for full size.
+
+<table>
+ <tr>
+ <td width="50%" align="center"><b>1. Welcome to Edge-Drop</b><br/><br/>
+ <video src="https://github.com/user-attachments/assets/118d59cc-9821-4da1-9424-ea9bc1b6e548" width="100%" autoplay loop muted playsinline></video>
+ </td>
+ <td width="50%" align="center"><b>2. Collect Anything</b><br/><br/>
+ <video src="https://github.com/user-attachments/assets/8daa18a7-d023-4e93-9f17-c30791a7c41c" width="100%" autoplay loop muted playsinline></video>
+ </td>
+ </tr>
+ <tr>
+ <td width="50%" align="center"><b>3. Drag & Drop Anywhere</b><br/><br/>
+ <video src="https://github.com/user-attachments/assets/ac8bc411-0827-460c-828c-0799f4cee4d8" width="100%" autoplay loop muted playsinline></video>
+ </td>
+ <td width="50%" align="center"><b>4. Explore File Stacks</b><br/><br/>
+ <video src="https://github.com/user-attachments/assets/b1e47a2b-41d2-4958-8e42-4fefcaa8b26b" width="100%" autoplay loop muted playsinline></video>
+ </td>
+ </tr>
+ <tr>
+ <td width="50%" align="center"><b>5. Ungroup & Split Stacks</b><br/><br/>
+ <video src="https://github.com/user-attachments/assets/e41eb9f8-62b0-4525-a28a-2bacafd0bb8c" width="100%" autoplay loop muted playsinline></video>
+ </td>
+ <td width="50%" align="center"><b>6. Combine & Merge Items</b><br/><br/>
+ <video src="https://github.com/user-attachments/assets/cee7d5f7-658b-433a-9fa0-6592a5a75fa4" width="100%" autoplay loop muted playsinline></video>
+ </td>
+ </tr>
+</table>
+
+---
+
+## Quick Start
+
+### Prerequisites
+- **Node.js** v18 or higher
+- **OS**: Windows 10/11 (primary target — uses Win32 OLE drag pipelines and transparent-window cursor polling) or macOS 12+
+
+### Run from source
+```bash
+git clone https://github.com/Deepender25/Edge-Drop.git
+cd Edge-Drop
+npm install
+npm run dev # launches Electron + Vite HMR
+```
+
+### Type-check
+```bash
+npm run typecheck # runs tsc --noEmit against both node and web configs
+```
+
+### Build a Windows installer
+```bash
+npm run package # outputs an NSIS .exe to /dist
+```
+
+> [!NOTE]
+> On Windows, if packaging fails with `EBUSY: resource busy or locked`, close any running Edge-Drop instances first: `taskkill /F /IM electron.exe /T`.
+
+---
+
+## How It Works
+
+Edge-Drop is an Electron app split into three strictly isolated processes — **Main** (Node.js, OS access), **Preload** (typed sandbox bridge), and **Renderer** (React UI). They communicate over a fully typed IPC contract. No string channel names, no `any` payloads.
+
+### The invisible edge trigger
+
+The shelf stays hidden as a frameless, transparent, click-through `BrowserWindow` anchored at `x=0`. When collapsed, **all mouse events pass through to the apps beneath it** — your desktop is 100% usable. Detection happens in the Main process via a 16ms `screen.getCursorScreenPoint()` poll, because Windows transparent windows silently drop `pointermove` forwarding.
+
+A **dead-band hysteresis state machine** prevents the shelf from flickering open/closed when your cursor hovers near its boundary:
+
+| Threshold | Value | Meaning |
+|---|---|---|
+| Trigger Zone | `x ≤ 3px` | A 3-pixel strip on the left edge starts a 120ms dwell timer |
+| Keep-Open | `x ≤ 255px` | Cursor clearly inside the blade → cancel any close timer |
+| Dead Band | `255px < x ≤ 290px` | Micro-tremors here are ignored — no action |
+| Start-Close | `x > 290px` | Cursor clearly outside → 250ms grace timer begins |
+
+This is the kind of detail that separates a "looks nice" demo from a tool you can actually live with.
+
+### Multi-format clipboard engine
+
+The `ClipboardWatcher` polls the OS clipboard every 600ms. To detect *change* without re-encoding images on every tick, it computes a cheap content signature:
+
+- **Files** → joined path list
+- **Text** → the text itself
+- **Images** → an **FNV-1a hash over ~400 sampled bytes of the raw BGRA bitmap** (dimensions + hash)
+
+The previous naive approach of comparing `toPNG().length` was both expensive (re-encoded the whole image each tick) and broken (two different 1920×1080 screenshots of similar complexity produced identical byte counts → the second was silently dropped). The FNV-1a sampler is O(400) regardless of image size and has astronomically low collision probability.
+
+It also **respects privacy flags**. Clipboard formats from password managers and dictation tools — `ExcludeClipboardContentFromMonitorProcessing`, `ClipboardViewerIgnore`, `CanIncludeInClipboardHistory=0`, `KeePassClipFormat`, `com.bitwarden.concealed`, etc. — are matched case-insensitively and skipped entirely.
+
+### Native OS drag-out (OLE)
+
+Standard HTML5 drag events cannot hand file handles to external desktop software. Edge-Drop intercepts the renderer's `dragstart`, sends a fire-and-forget IPC (`item:start-drag`) to the Main process, which stages the item's content as a temp file and calls `webContents.startDrag({ file, icon })`. The OS then renders a native drag ghost and handles the drop into Photoshop, Word, Explorer, or any other app — exactly as if you had dragged the file from Explorer itself.
+
+Custom drag icons are generated on the fly: stacked card PNGs for file bundles (with a count badge), glassmorphic quote cards for text, real image thumbnails for images. Rendered via `@resvg/resvg-js`, cached, and pre-warmed on startup so the first drag is instant.
+
+### Smart deduplication, stacks, and merging
+
+When you re-copy existing content, Edge-Drop doesn't add a duplicate — it bumps the item to position 0, increments its `hitCount` badge, and refreshes its timestamp. Multi-file drag-ins and multi-image copies auto-group into expandable 3D card stacks (max 10 per stack). Drag any item card over another to merge them into a bundle; double-click to expand and drag a sub-item to the left edge to split it back out.
+
+---
+
+## Architecture
+
+```mermaid
+graph TD
+ subgraph OS ["Operating System"]
+ WinClip["Win32 System Clipboard"]
+ WinFS["Local Filesystem / AppData"]
+ OLE["OS OLE Drag & Drop Pipeline"]
+ end
+
+ subgraph Main ["Electron Main Process (Node.js)"]
+ ClipWatch["ClipboardWatcher — 600ms poll, FNV-1a signatures"]
+ Store["ItemStore — atomic JSON + per-image PNG files"]
+ Tray["System Tray & Native Menu"]
+ WinMgr["BrowserWindow + 16ms Cursor Edge Poller"]
+ end
+
+ subgraph Bridge ["Typed Preload Bridge (contextIsolation)"]
+ API["contextBridge → window.edge"]
+ end
+
+ subgraph Renderer ["React Renderer"]
+ Zustand["Zustand store"]
+ Hooks["useEdgeHover · useDragOut"]
+ UI["Panel · ItemList · Fluid Bundles"]
+ end
+
+ WinClip <-->|"polls every 600ms"| ClipWatch
+ ClipWatch -->|"state:items IPC"| API
+ Store <-->|"atomic JSON read/write"| WinFS
+ WinMgr <-->|"window:cursor-edge · window:set-interactive"| API
+ UI -->|"item:start-drag IPC"| API
+ API -->|"OLE native handle"| OLE
+ API <-->|"typed handlers & events"| Zustand
+ Zustand <--> UI
+```
+
+### Edge-trigger state machine
+
+```mermaid
+stateDiagram-v2
+ [*] --> Closed: startup, x=0, click-through
+ state Closed {
+ [*] --> PollingEdge
+ PollingEdge --> TriggerZone: cursor x ≤ 3px in hot zone
+ TriggerZone --> DwellTimer: linger ≥ 120ms
+ }
+ state Open {
+ [*] --> Interactive: setInteractive(true)
+ Interactive --> HysteresisCheck: 16ms main poll
+ HysteresisCheck --> Interactive: x ≤ 255px (inside blade)
+ HysteresisCheck --> GraceTimer: x > 290px OR left y-bounds
+ GraceTimer --> Interactive: cursor returns within 250ms
+ }
+ Closed --> Open: dwell timer expires
+ Open --> Closed: grace timer expires
+```
+
+### Clipboard capture & dedup pipeline
+
+```mermaid
+sequenceDiagram
+ participant OS as System Clipboard
+ participant CW as ClipboardWatcher
+ participant IS as ItemStore (disk)
+ participant R as React UI
+ loop Every 600ms
+ CW->>OS: read available formats
+ alt Files (Win32 HDROP / FileNameW)
+ CW->>OS: PowerShell GetFileDropList (bypasses single-file limit)
+ else Image
+ CW->>OS: clipboard.readImage → raw BGRA
+ CW->>CW: FNV-1a hash over ~400 sampled bytes
+ else Text / URL / HTML
+ CW->>OS: clipboard.readText / readHTML
+ end
+ CW->>IS: lookup signature
+ alt Duplicate
+ IS->>IS: bump hitCount, move to front, update timestamp
+ else New
+ IS->>IS: prepend, enforce historyLimit, evict oldest unpinned
+ end
+ IS-->>R: broadcast state:items
+ end
+```
+
+### Native drag-out flow
+
+```mermaid
+sequenceDiagram
+ participant U as User
+ participant R as React Card
+ participant M as Electron Main
+ participant OS as OS / External App
+ Note over U,OS: Drag OUT — native OLE
+ U->>R: dragstart on item tile
+ R->>R: preventDefault (kill HTML5 ghost)
+ R->>M: send item:start-drag (fire & forget)
+ M->>M: stage content → temp file (.png / .txt / real paths)
+ M->>OS: webContents.startDrag({ file, icon })
+ OS->>U: native drag ghost → drop anywhere
+ Note over U,OS: Drag IN — file drop
+ U->>R: drag files onto panel edge
+ R->>M: webUtils.getPathForFile
+ M->>M: validate paths, create bundle, broadcast
+```
+
+---
+
+## Features
+
+**Zero-click edge hover**
+- Frameless, transparent, always-on-top `BrowserWindow` anchored at `x=0`
+- 100% click-through when collapsed — desktop stays fully usable
+- 16ms Main-process cursor poll (bypasses broken Windows transparent-window `pointermove` forwarding)
+- Configurable hot-zone height (25% / 40% / 60% of screen) and blade height (40% – 100%)
+
+**Multi-format clipboard engine**
+- Captures plain text, URLs, rich HTML, raw images, and multi-file selections
+- Win32 `FileNameW` / HDROP parsing via PowerShell to bypass Electron's single-file limit
+- Respects password-manager and dictation-tool privacy flags (case-insensitive matching)
+- Smart deduplication — re-copies bump `hitCount` and move the item to the top
+- Incognito mode — one click suspends polling for sensitive data
+
+**Native OS drag & drop**
+- `webContents.startDrag()` hands real file handles to external apps
+- Custom drag icons: stacked card PNGs with count badges, glassmorphic text cards, real image thumbnails
+- Drag-in: drop files onto the shelf to add them; drag-out: drop anywhere — Photoshop, Word, Explorer, Slack
+- Pre-warmed icon cache so the first drag is instant
+
+**Fluid collections & stacks**
+- Auto-group multi-file drag-ins and multi-image copies into 3D card stacks (max 10)
+- Drag a card over another card to merge them into a bundle
+- Double-click to expand, drag a sub-item to the left edge to split it back out
+- Type-safe merge rules: images only merge with images, files with files (text never groups)
+
+**UI / UX**
+- Frosted-glass macOS aesthetic — deep black, `backdrop-filter: blur(20px)`, hairline borders
+- Framer Motion spring physics with synchronized elastic overshoot on open
+- Custom SVG connection flares that scale with the blade
+- Scroll gradient masks top & bottom to fade items into black
+- Monochrome pin / multiplier badges for maximum legibility
+- Reduce-motion setting for accessibility
+
+---
+
+## Security
+
+Edge-Drop touches the OS clipboard, the filesystem, and the Win32 OLE drag pipeline — so the security posture is intentional, not optional.
+
+| Control | Implementation |
+|---|---|
+| Process isolation | `contextIsolation: true` · `nodeIntegration: false` · `sandbox: true` on both windows |
+| Typed IPC | `shared/ipc.ts` defines `InvokeMap`, `EventMap`, `SendMap` — channel names and payload types are statically checked on both sides |
+| Privacy-aware clipboard | Honors `ExcludeClipboardContentFromMonitorProcessing`, `ClipboardViewerIgnore`, `CanIncludeInClipboardHistory`, `CanUploadToCloudClipboard`, plus 1Password / Bitwarden / KeePass concealed formats |
+| Atomic persistence | JSON index written via temp-file + rename; image bytes stored as per-id PNG files |
+| Dev-safe startup | `app.setLoginItemSettings` is gated by `app.isPackaged` — dev builds never touch the Windows Registry |
+| External links | `setWindowOpenHandler` forces all window-open requests to `shell.openExternal` — no in-app navigation |
+
+---
+
+## Tech Stack
+
+| Layer | Choice | Why |
+|---|---|---|
+| Desktop runtime | **Electron 30+** | Only way to access Win32 OLE drag pipelines and native clipboard formats from JS |
+| Build tooling | **electron-vite** | Separate Main / Preload / Renderer builds with Vite HMR |
+| UI | **React 18 + TypeScript** | Strongly typed component hierarchy |
+| Animation | **Framer Motion** | Spring physics, layout transitions, gesture animations |
+| State | **Zustand** | Selector-optimized, zero cascading re-renders during drags |
+| Drag icons | **@resvg/resvg-js** | Server-side SVG → PNG rendering for custom drag ghosts |
+
+---
+
+## Project Structure
+
+```
+Edge-Drop/
+├─ shared/ Typed IPC contracts & domain models
+│ ├─ types.ts ClipboardItem, Bundle, Settings, DragRequest DTOs
+│ └─ ipc.ts InvokeMap / EventMap / SendMap channel definitions
+├─ electron/ Node.js backend & OS integrations
+│ ├─ main/
+│ │ ├─ index.ts Single-instance lock, IPC registration, startup
+│ │ ├─ window.ts Frameless window, setIgnoreMouseEvents, cursor poll
+│ │ ├─ tray.ts System tray icon & context menus
+│ │ └─ drag.ts OLE startDrag, temp-file staging, icon generation
+│ ├─ preload/ Sandbox bridge exposing window.edge
+│ ├─ clipboard/
+│ │ ├─ ClipboardWatcher.ts 600ms poll loop, transient-copy rejection
+│ │ └─ formats.ts FNV-1a signatures, Win32 HDROP, privacy-flag detection
+│ └─ store/
+│ ├─ ItemStore.ts Atomic JSON persistence, dedup, merge/split logic
+│ ├─ settings.ts User config & startup registration
+│ └─ paths.ts AppData + temp directory resolution
+├─ src/ React renderer
+│ ├─ components/ Panel, ItemList, ClipboardItem, SearchBar, Settings, Icons
+│ ├─ hooks/ useEdgeHover (hysteresis), useDragOut, useFilteredItems
+│ ├─ store/ Zustand appStore
+│ ├─ lib/ Theme tokens, format helpers, file-type detection
+│ └─ styles/ tokens.css, panel.css, settings.css, item.css, global.css
+```
+
+---
+
+## Roadmap
+
+Edge-Drop is in **public beta**. The following are planned, in rough priority order:
+
+- [ ] **AI semantic self-organization** — embed text/URL/HTML items, auto-cluster into named groups, replace manual pinning
+- [ ] **AI summarization** — condense multi-file bundles and long HTML copies into one-line summaries + tags
+- [ ] **Multi-monitor support** — anchor to any display edge, not just primary
+- [ ] **Linux port** — replace Win32-specific paths with cross-platform equivalents
+- [ ] **Plugin SDK** — let users write custom format readers and drag-out targets
+- [ ] **Cloud sync (opt-in, E2E encrypted)** — sync pinned items across machines
+- [ ] **Search across full history** — currently capped at `historyLimit` (default 500)
+
+The AI features are the headline roadmap items and the reason this project is applying to OpenAI's **Codex for Open Source** program.
+
+---
+
+## Contributing
+
+Edge-Drop is Apache-2.0 licensed and open to contributions. As a solo-maintained project in active beta, the best ways to help right now are:
+
+1. **File issues** for bugs, crashes, or privacy-edge-cases you hit (especially around clipboard format detection on different apps)
+2. **Test on macOS** — Windows is the primary target; macOS testing is thin
+3. **Suggest format readers** — if you copy from an app whose content Edge-Drop mis-categorizes, open an issue with the available formats list (`clipboard.availableFormats()` output)
+4. **Pick up a roadmap item** — open an issue first to discuss scope, then send a PR against a feature branch
+
+### Development workflow
+```bash
+npm install
+npm run dev # Electron + Vite HMR
+npm run typecheck # tsc --noEmit (node + web configs)
+npm run package # build Windows NSIS installer to /dist
+```
+
+---
+
+## License
+
+Apache License 2.0 — see [LICENSE](LICENSE). Commercial and non-commercial use, modification, and distribution all permitted with attribution.
diff --git a/drag_debug.txt b/drag_debug.txt
index d980ea0..ef3f9f5 100644
--- a/drag_debug.txt
+++ b/drag_debug.txt
@@ -3120,3 +3120,210 @@
[2026-07-09T17:32:34.963Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
[2026-07-09T17:32:34.963Z] createFileStackDragIcon calling Resvg for count=1
[2026-07-09T17:32:35.121Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:01:33.002Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-11T14:01:34.386Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:01:34.387Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-11T14:01:34.664Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:01:34.666Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-11T14:01:34.939Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:50:49.519Z] startDragOut called for kind=files
+[2026-07-11T14:50:49.520Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_drag.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_drag.mp4"]
+[2026-07-11T14:50:49.521Z] dragIcon called for kind=files
+[2026-07-11T14:50:49.521Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_drag.mp4"]
+[2026-07-11T14:50:49.522Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-11T14:50:49.969Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:50:49.970Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:50:49.970Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_drag.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_drag.mp4"]
+[2026-07-11T14:55:52.586Z] startDragOut called for kind=files
+[2026-07-11T14:55:52.587Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_drag.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_drag.mp4"]
+[2026-07-11T14:55:52.587Z] dragIcon called for kind=files
+[2026-07-11T14:55:52.589Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_drag.mp4"]
+[2026-07-11T14:55:52.589Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T14:55:52.590Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:55:52.590Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_drag.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_drag.mp4"]
+[2026-07-11T14:57:49.757Z] startDragOut called for kind=files
+[2026-07-11T14:57:49.758Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_copy.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_copy.mp4"]
+[2026-07-11T14:57:49.758Z] dragIcon called for kind=files
+[2026-07-11T14:57:49.759Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_copy.mp4"]
+[2026-07-11T14:57:49.759Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T14:57:49.759Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T14:57:49.760Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_copy.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_copy.mp4"]
+[2026-07-11T15:01:07.016Z] startDragOut called for kind=files
+[2026-07-11T15:01:07.017Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_stacks.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_stacks.mp4"]
+[2026-07-11T15:01:07.017Z] dragIcon called for kind=files
+[2026-07-11T15:01:07.018Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_stacks.mp4"]
+[2026-07-11T15:01:07.019Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T15:01:07.019Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:01:07.020Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_stacks.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_stacks.mp4"]
+[2026-07-11T15:03:31.216Z] startDragOut called for kind=files
+[2026-07-11T15:03:31.217Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_merge.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:03:31.220Z] dragIcon called for kind=files
+[2026-07-11T15:03:31.220Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:03:31.221Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T15:03:31.221Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:03:31.222Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_merge.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:03:42.238Z] startDragOut called for kind=files
+[2026-07-11T15:03:42.239Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_copy.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_copy.mp4"]
+[2026-07-11T15:03:42.239Z] dragIcon called for kind=files
+[2026-07-11T15:03:42.240Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_copy.mp4"]
+[2026-07-11T15:03:42.241Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T15:03:42.241Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:03:42.242Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_copy.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_copy.mp4"]
+[2026-07-11T15:06:49.642Z] startDragOut called for kind=files
+[2026-07-11T15:06:49.643Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_merge.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:06:49.643Z] dragIcon called for kind=files
+[2026-07-11T15:06:49.644Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:06:49.644Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T15:06:49.645Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:06:49.645Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_merge.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:06:57.580Z] startDragOut called for kind=files
+[2026-07-11T15:06:57.581Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_merge.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:06:57.581Z] dragIcon called for kind=files
+[2026-07-11T15:06:57.581Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:06:57.582Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T15:06:57.583Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:06:57.583Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_merge.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_merge.mp4"]
+[2026-07-11T15:28:25.635Z] startDragOut called for kind=files
+[2026-07-11T15:28:25.637Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_ungroup.mp4, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_ungroup.mp4"]
+[2026-07-11T15:28:25.637Z] dragIcon called for kind=files
+[2026-07-11T15:28:25.638Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_ungroup.mp4"]
+[2026-07-11T15:28:25.639Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T15:28:25.640Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:28:25.640Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\placeholder_ungroup.mp4, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\placeholder_ungroup.mp4"]
+[2026-07-11T15:37:54.450Z] startDragOut called for kind=files
+[2026-07-11T15:37:54.451Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T15:37:54.452Z] dragIcon called for kind=files
+[2026-07-11T15:37:54.452Z] files check: count=6, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T15:37:54.452Z] createFileStackDragIcon calling Resvg for count=6
+[2026-07-11T15:37:55.926Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:37:55.927Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:37:55.928Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T15:38:15.571Z] startDragOut called for kind=files
+[2026-07-11T15:38:15.573Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T15:38:15.573Z] dragIcon called for kind=files
+[2026-07-11T15:38:15.574Z] files check: count=6, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T15:38:15.575Z] createFileStackDragIcon returning cached for stack|dark|video-video-video|6
+[2026-07-11T15:38:15.575Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T15:38:15.576Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T17:34:42.916Z] startDragOut called for kind=files
+[2026-07-11T17:34:42.918Z] staged: file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230244.jpg, files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230244.jpg"]
+[2026-07-11T17:34:42.919Z] dragIcon called for kind=files
+[2026-07-11T17:34:42.919Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230244.jpg"]
+[2026-07-11T17:34:42.920Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T17:34:42.920Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T17:34:42.921Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230244.jpg, item.files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230244.jpg"]
+[2026-07-11T17:34:45.131Z] startDragOut called for kind=files
+[2026-07-11T17:34:45.132Z] staged: file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230229.jpg, files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230229.jpg"]
+[2026-07-11T17:34:45.133Z] dragIcon called for kind=files
+[2026-07-11T17:34:45.133Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230229.jpg"]
+[2026-07-11T17:34:45.134Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T17:34:45.134Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T17:34:45.135Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230229.jpg, item.files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230229.jpg"]
+[2026-07-11T17:34:48.455Z] startDragOut called for kind=files
+[2026-07-11T17:34:48.456Z] staged: file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230229.jpg, files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230229.jpg"]
+[2026-07-11T17:34:48.457Z] dragIcon called for kind=files
+[2026-07-11T17:34:48.457Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230229.jpg"]
+[2026-07-11T17:34:48.458Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T17:34:48.458Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T17:34:48.459Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230229.jpg, item.files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230229.jpg"]
+[2026-07-11T17:51:08.845Z] startDragOut called for kind=files
+[2026-07-11T17:51:08.849Z] staged: file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230244.jpg, files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230244.jpg"]
+[2026-07-11T17:51:08.849Z] dragIcon called for kind=files
+[2026-07-11T17:51:08.850Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230244.jpg"]
+[2026-07-11T17:51:08.851Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T17:51:08.851Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T17:51:08.852Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Mobile Devices\Screenshot_20260711_230244.jpg, item.files=["C:\\Users\\yadav\\Downloads\\Mobile Devices\\Screenshot_20260711_230244.jpg"]
+[2026-07-11T19:24:06.424Z] startDragOut called for kind=files
+[2026-07-11T19:24:06.425Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T19:24:06.426Z] dragIcon called for kind=files
+[2026-07-11T19:24:06.426Z] files check: count=6, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T19:24:06.427Z] createFileStackDragIcon returning cached for stack|dark|video-video-video|6
+[2026-07-11T19:24:06.427Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:24:06.428Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T19:25:27.693Z] startDragOut called for kind=files
+[2026-07-11T19:25:27.694Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm"]
+[2026-07-11T19:25:27.694Z] dragIcon called for kind=files
+[2026-07-11T19:25:27.695Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm"]
+[2026-07-11T19:25:27.695Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T19:25:27.695Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:25:27.696Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm"]
+[2026-07-11T19:25:38.707Z] startDragOut called for kind=files
+[2026-07-11T19:25:38.708Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm"]
+[2026-07-11T19:25:38.708Z] dragIcon called for kind=files
+[2026-07-11T19:25:38.709Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm"]
+[2026-07-11T19:25:38.709Z] createFileStackDragIcon returning cached for stack|dark|video|1
+[2026-07-11T19:25:38.709Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:25:38.711Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\ungroup.webm, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\ungroup.webm"]
+[2026-07-11T19:25:47.278Z] startDragOut called for kind=files
+[2026-07-11T19:25:47.279Z] staged: file=C:\Users\yadav\Downloads\Edge-Drop Videos\merge.webm, files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T19:25:47.280Z] dragIcon called for kind=files
+[2026-07-11T19:25:47.280Z] files check: count=5, paths=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T19:25:47.282Z] createFileStackDragIcon calling Resvg for count=5
+[2026-07-11T19:25:47.829Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:25:47.830Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:25:47.831Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\Edge-Drop Videos\merge.webm, item.files=["C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\merge.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\copy.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\stack.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\drag.webm","C:\\Users\\yadav\\Downloads\\Edge-Drop Videos\\welcome.webm"]
+[2026-07-11T19:54:12.938Z] startDragOut called for kind=image
+[2026-07-11T19:54:12.942Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs94sk-raclphdh.png, files=undefined
+[2026-07-11T19:54:12.943Z] dragIcon called for kind=image
+[2026-07-11T19:54:12.945Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T19:54:12.946Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T19:54:12.946Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:12.947Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs94sk-raclphdh.png, item.files=undefined
+[2026-07-11T19:54:14.020Z] startDragOut called for kind=image
+[2026-07-11T19:54:14.024Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs8vku-09qibh64.png, files=undefined
+[2026-07-11T19:54:14.025Z] dragIcon called for kind=image
+[2026-07-11T19:54:14.027Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T19:54:14.028Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T19:54:14.029Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:14.029Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs8vku-09qibh64.png, item.files=undefined
+[2026-07-11T19:54:15.128Z] startDragOut called for kind=image
+[2026-07-11T19:54:15.131Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs8krx-0z1pdvyt.png, files=undefined
+[2026-07-11T19:54:15.131Z] dragIcon called for kind=image
+[2026-07-11T19:54:15.132Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T19:54:15.133Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T19:54:15.133Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:15.134Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs8krx-0z1pdvyt.png, item.files=undefined
+[2026-07-11T19:54:16.127Z] startDragOut called for kind=image
+[2026-07-11T19:54:16.132Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs8ajc-fv7c6fw2.png, files=undefined
+[2026-07-11T19:54:16.133Z] dragIcon called for kind=image
+[2026-07-11T19:54:16.135Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T19:54:16.136Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T19:54:16.138Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:16.138Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs8ajc-fv7c6fw2.png, item.files=undefined
+[2026-07-11T19:54:17.094Z] startDragOut called for kind=image
+[2026-07-11T19:54:17.098Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs82b3-36yssl9m.png, files=undefined
+[2026-07-11T19:54:17.098Z] dragIcon called for kind=image
+[2026-07-11T19:54:17.100Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T19:54:17.101Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T19:54:17.102Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:17.104Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs82b3-36yssl9m.png, item.files=undefined
+[2026-07-11T19:54:19.974Z] startDragOut called for kind=image
+[2026-07-11T19:54:19.975Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs82b3-36yssl9m.png, files=undefined
+[2026-07-11T19:54:19.976Z] dragIcon called for kind=image
+[2026-07-11T19:54:19.977Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T19:54:19.978Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T19:54:19.979Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:19.979Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs82b3-36yssl9m.png, item.files=undefined
+[2026-07-11T19:54:21.053Z] startDragOut called for kind=image-collection
+[2026-07-11T19:54:21.059Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs985w-4k2cz8pv.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs985w-4k2cz8pv.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs94sk-raclphdh.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8vku-09qibh64.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8krx-0z1pdvyt.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8ajc-fv7c6fw2.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs82b3-36yssl9m.png"]
+[2026-07-11T19:54:21.061Z] dragIcon called for kind=image-collection
+[2026-07-11T19:54:21.061Z] image drag requested: count=6. Returning custom image card stack icon!
+[2026-07-11T19:54:21.062Z] createFileStackDragIcon calling Resvg for count=6
+[2026-07-11T19:54:21.471Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:21.472Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:21.472Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs985w-4k2cz8pv.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs985w-4k2cz8pv.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs94sk-raclphdh.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8vku-09qibh64.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8krx-0z1pdvyt.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8ajc-fv7c6fw2.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs82b3-36yssl9m.png"]
+[2026-07-11T19:54:52.343Z] startDragOut called for kind=image-collection
+[2026-07-11T19:54:52.352Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs6iye-etlmr3i2.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs6iye-etlmr3i2.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs985w-4k2cz8pv.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs94sk-raclphdh.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8vku-09qibh64.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8krx-0z1pdvyt.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8ajc-fv7c6fw2.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs82b3-36yssl9m.png"]
+[2026-07-11T19:54:52.354Z] dragIcon called for kind=image-collection
+[2026-07-11T19:54:52.356Z] image drag requested: count=7. Returning custom image card stack icon!
+[2026-07-11T19:54:52.356Z] createFileStackDragIcon calling Resvg for count=7
+[2026-07-11T19:54:52.554Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:52.555Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T19:54:52.555Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgs6iye-etlmr3i2.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs6iye-etlmr3i2.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs985w-4k2cz8pv.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs94sk-raclphdh.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8vku-09qibh64.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8krx-0z1pdvyt.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs8ajc-fv7c6fw2.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mrgs82b3-36yssl9m.png"]
+[2026-07-11T20:00:32.089Z] startDragOut called for kind=image
+[2026-07-11T20:00:32.093Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgsdlel-cik02t00.png, files=undefined
+[2026-07-11T20:00:32.095Z] dragIcon called for kind=image
+[2026-07-11T20:00:32.096Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-11T20:00:32.098Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-11T20:00:32.099Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-11T20:00:32.099Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mrgsdlel-cik02t00.png, item.files=undefined
diff --git a/electron/main/ipc.ts b/electron/main/ipc.ts
index 9213da9..134edc8 100644
--- a/electron/main/ipc.ts
+++ b/electron/main/ipc.ts
@@ -51,14 +51,22 @@ function toast(message: string, tone: 'info' | 'error' = 'info'): void {
/** Simulate pressing Ctrl+V via PowerShell after returning focus to the previous active window. */
function simulatePaste(): void {
- execFile('powershell.exe', [
- '-NoProfile',
- '-NonInteractive',
- '-Command',
- "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^v')"
- ], (err) => {
- if (err) console.error('[Main] simulatePaste error:', err)
- })
+ if (process.platform === 'win32') {
+ // Run via the persistent powershell host for near-zero latency (no process spawn overhead)
+ psHost.run("Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^v')", 2000)
+ .catch((err) => {
+ console.error('[Main] simulatePaste psHost failed, using fallback:', err)
+ // Fallback to spawning a new powershell process
+ execFile('powershell.exe', [
+ '-NoProfile',
+ '-NonInteractive',
+ '-Command',
+ "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^v')"
+ ], (fallbackErr) => {
+ if (fallbackErr) console.error('[Main] simulatePaste fallback error:', fallbackErr)
+ })
+ })
+ }
}
/**
@@ -277,13 +285,14 @@ export function registerIpc(): void {
// genuinely copies the content from a source app (detected by the watcher).
// Pasting from Edge-Drop is a retrieval action, not a new copy.
- // Close panel so focus returns to the user's active input/text box
- pushState.togglePanel()
+ // Close panel so focus returns to the user's active input/text box.
+ // Pass false to explicitly close and avoid toggle race conditions.
+ pushState.togglePanel(false)
- // Wait 200ms for OS focus to settle, then simulate Ctrl+V
+ // Wait 50ms for layout updates, then simulate Ctrl+V
setTimeout(() => {
simulatePaste()
- }, 200)
+ }, 50)
} finally {
// Invalidate (not resync) the watcher signature after the pause expires.
// This ensures that if the user re-copies the SAME content from the source
@@ -333,11 +342,13 @@ export function registerIpc(): void {
// DO NOT promote/bump hitCount here — same reason as item:paste.
// Only the watcher (genuine user Ctrl+C) should increment hitCount.
- pushState.togglePanel()
+ // Pass false to explicitly close and avoid toggle race conditions.
+ pushState.togglePanel(false)
+ // Wait 50ms for layout updates, then simulate Ctrl+V
setTimeout(() => {
simulatePaste()
- }, 200)
+ }, 50)
} finally {
setTimeout(() => {
watcher.invalidateSignature()
diff --git a/electron/main/state.ts b/electron/main/state.ts
index 4cf50f8..df44c7b 100644
--- a/electron/main/state.ts
+++ b/electron/main/state.ts
@@ -96,9 +96,9 @@ export const pushState = {
settings(next: Settings): void {
send('state:settings', next)
},
- togglePanel(): void {
- console.log('[Main] Sending window:toggle event to renderer')
- send('window:toggle')
+ togglePanel(open?: boolean): void {
+ console.log(`[Main] Sending window:toggle event to renderer with open=${open}`)
+ send('window:toggle', open)
},
openSettings(): void {
console.log('[Main] Sending window:open-settings event to renderer')
diff --git a/electron/preload/index.ts b/electron/preload/index.ts
index 7a36336..f304552 100644
--- a/electron/preload/index.ts
+++ b/electron/preload/index.ts
@@ -114,7 +114,7 @@ const api = {
/* Main -> Renderer */
onItems: (cb: (items: EventArgs<'state:items'>[0]) => void) => on('state:items', cb),
onSettings: (cb: (settings: EventArgs<'state:settings'>[0]) => void) => on('state:settings', cb),
- onToggle: (cb: () => void) => on('window:toggle', cb),
+ onToggle: (cb: (open?: boolean) => void) => on('window:toggle', cb),
onOpenSettings: (cb: () => void) => on('window:open-settings', cb),
onDragEnd: (cb: () => void) => on('item:drag-end', cb),
onInternalDrop: (cb: (pos: { x: number; y: number }) => void) => on('item:internal-drop', cb),
diff --git a/electron/store/ItemStore.ts b/electron/store/ItemStore.ts
index 3fbf058..34e2332 100644
--- a/electron/store/ItemStore.ts
+++ b/electron/store/ItemStore.ts
@@ -9,7 +9,7 @@
* - Persist the index to JSON and image bytes to per-item PNG files.
* - Convert internal items to the serializable DTO form for the renderer.
*/
-import { existsSync, readFileSync, writeFileSync, rmSync, statSync, readdirSync, mkdirSync } from 'node:fs'
+import { existsSync, readFileSync, writeFileSync, rmSync, statSync, readdirSync } from 'node:fs'
import { join, extname, basename as pathBasename } from 'node:path'
import { nativeImage } from 'electron'
import {
@@ -529,7 +529,6 @@ function buildFileEntry(p: string): FileEntry {
* the main thread from blocking when the user copies large images.
*/
const THUMB_SIZE = 240 // px — enough for the card UI, tiny IPC payload
-const THUMB_QUALITY = 80 // JPEG quality
function fileToDataUrl(p: string): string {
if (fileDataUrlCache.has(p)) return fileDataUrlCache.get(p)!
diff --git a/shared/bridge.ts b/shared/bridge.ts
index 990fb27..14370d2 100644
--- a/shared/bridge.ts
+++ b/shared/bridge.ts
@@ -31,14 +31,16 @@ export interface EdgeApi {
setInteractive: (value: boolean) => Promise<void>
minimizeWindow: () => Promise<void>
setInternalDrag: (active: boolean) => void
+ broadcastTutorialStep: (step: number) => void
/* Main -> Renderer */
onItems: (cb: (items: import('./types').ClipboardItemDto[]) => void) => () => void
onSettings: (cb: (settings: Settings) => void) => () => void
- onToggle: (cb: () => void) => () => void
+ onToggle: (cb: (open?: boolean) => void) => () => void
onOpenSettings: (cb: () => void) => () => void
onDragEnd: (cb: () => void) => () => void
onInternalDrop: (cb: (pos: { x: number; y: number }) => void) => () => void
onCursorEdge: (cb: (data: { x: number; y: number; inEdge: boolean; inZone: boolean }) => void) => () => void
onToast: (cb: (toast: { id: string; message: string; tone: 'info' | 'error' }) => void) => () => void
+ onTutorialStep: (cb: (step: number) => void) => () => void
}
diff --git a/shared/ipc.ts b/shared/ipc.ts
index a50548a..807594b 100644
--- a/shared/ipc.ts
+++ b/shared/ipc.ts
@@ -73,11 +73,13 @@ export interface EventMap {
/** Settings changed (e.g. from the tray menu). */
'state:settings': [settings: Settings]
/** Toggle the panel open/closed from the main process (e.g. tray). */
- 'window:toggle': []
+ 'window:toggle': [open?: boolean]
/** Open the panel directly to settings from the main process (e.g. tray). */
'window:open-settings': []
/** Fired when an OS drag initiated by the app has completed. */
'item:drag-end': []
+ /** Tutorial step sync */
+ 'tutorial:step': [step: number]
/** Internal drop triggered by the main process when startDrag ends inside the window */
'item:internal-drop': [pos: { x: number; y: number }]
/**
@@ -106,6 +108,8 @@ export interface EventMap {
export interface SendMap {
/** Begin a native OS drag of an item (or one file of a bundle) out of the app. */
'item:start-drag': { args: [req: DragRequest] }
+ /** Synchronize tutorial step */
+ 'tutorial:set-step': { args: [step: number] }
}
/* ------------------------------------------------------------------ */
diff --git a/src/App.tsx b/src/App.tsx
index cc4e3b8..59c3e6c 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -31,8 +31,8 @@ export default function App() {
const offItems = edge.onItems((items) => setItems(items))
const offSettings = edge.onSettings((next) => setSettings(next))
const offToast = edge.onToast((t) => pushToast(t))
- const offToggle = edge.onToggle(() => {
- const next = !useStore.getState().open
+ const offToggle = edge.onToggle((forceOpen) => {
+ const next = forceOpen !== undefined ? forceOpen : !useStore.getState().open
useStore.getState().setOpen(next)
edge.setInteractive(next)
})
@@ -41,12 +41,16 @@ export default function App() {
useStore.getState().setSettingsOpen(true)
edge.setInteractive(true)
})
+ const offTutorialStep = edge.onTutorialStep((step) => {
+ useStore.getState().setTutorialStep(step)
+ })
return () => {
offItems()
offSettings()
offToast()
offToggle()
offOpenSettings()
+ offTutorialStep()
}
}, [hydrate, setItems, setSettings, pushToast])
diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsx
index 2b6cf39..6628636 100644
--- a/src/components/ClipboardItem.tsx
+++ b/src/components/ClipboardItem.tsx
@@ -14,7 +14,7 @@
* clamped preview; file items list names or bundle badge. Motion is handled by
* the parent list (layout/AnimatePresence), so this component stays presentational.
*/
-import { memo, useState, useCallback, useEffect, useRef } from 'react'
+import { memo, useState, useCallback, useEffect } from 'react'
import { motion, AnimatePresence } from 'framer-motion'
import type { ClipboardItemDto } from '../../shared/types'
import { MAX_STACK } from '../../shared/types'
@@ -47,45 +47,9 @@ interface Props {
item: ClipboardItemDto
}
-let textDragPreviewEl: HTMLDivElement | null = null
-
-function setupTextDragImage(e: React.DragEvent, text: string, isUrl?: boolean) {
- if (!textDragPreviewEl) {
- textDragPreviewEl = document.createElement('div')
- textDragPreviewEl.style.position = 'absolute'
- textDragPreviewEl.style.top = '-9999px'
- textDragPreviewEl.style.left = '-9999px'
- textDragPreviewEl.style.width = '260px'
- textDragPreviewEl.style.padding = '12px 14px'
- textDragPreviewEl.style.background = 'linear-gradient(135deg, #2c2c30 0%, #1c1c1e 100%)'
- textDragPreviewEl.style.border = '1.5px solid rgba(255, 255, 255, 0.15)'
- textDragPreviewEl.style.borderRadius = '12px'
- textDragPreviewEl.style.boxShadow = '0 12px 32px rgba(0, 0, 0, 0.5)'
- textDragPreviewEl.style.color = '#FFFFFF'
- textDragPreviewEl.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
- textDragPreviewEl.style.fontSize = '13px'
- textDragPreviewEl.style.fontWeight = '500'
- textDragPreviewEl.style.lineHeight = '1.4'
- textDragPreviewEl.style.display = 'flex'
- textDragPreviewEl.style.alignItems = 'flex-start'
- textDragPreviewEl.style.gap = '10px'
- textDragPreviewEl.style.pointerEvents = 'none'
- textDragPreviewEl.style.zIndex = '9999'
- document.body.appendChild(textDragPreviewEl)
- }
- const cleaned = text.replace(/[\r\n]+/g, ' ').trim()
- const iconSvg = isUrl
- ? `<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#8E8E93" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-top: 2px; flex-shrink: 0;"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>`
- : `<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="#8E8E93" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="margin-top: 2px; flex-shrink: 0;"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>`
- textDragPreviewEl.innerHTML = `
- ${iconSvg}
- <div style="display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; flex-grow: 1;">${cleaned}</div>
- `
- e.dataTransfer.setDragImage(textDragPreviewEl, 20, 20)
-}
/* ------------------------------------------------------------------ */
/* Main item card */
@@ -100,7 +64,7 @@ function ClipboardItemBase({ item }: Props) {
const startDrag = useDragOut()
const [copied, setCopied] = useState(false)
const [expanded, setExpanded] = useState(false)
- const clickTimerRef = useRef<number | undefined>(undefined)
+
const open = useStore((s) => s.open)
useEffect(() => {
@@ -342,25 +306,8 @@ function BundleFluidPreview({
onRemove: () => void
onCollapse: (e?: React.MouseEvent) => void
}) {
- const pasteSubitem = useStore((s) => s.pasteSubitem)
- const [, setCopied] = useState(false)
- const clickTimerRef = useRef<number | undefined>(undefined)
- const onSubitemClick = useCallback((e: React.MouseEvent, req: import('../../shared/types').DragRequest) => {
- e.stopPropagation()
- if (clickTimerRef.current !== undefined) {
- window.clearTimeout(clickTimerRef.current)
- clickTimerRef.current = undefined
- window.edge.copySubitem(req)
- setCopied(true)
- window.setTimeout(() => setCopied(false), 900)
- return
- }
- clickTimerRef.current = window.setTimeout(() => {
- clickTimerRef.current = undefined
- pasteSubitem(req)
- }, 220)
- }, [pasteSubitem])
+
if (item.data.kind === 'image-collection') {
const more = item.data.images.length - 1
diff --git a/src/store/appStore.ts b/src/store/appStore.ts
index 4d75558..e0ee06a 100644
--- a/src/store/appStore.ts
+++ b/src/store/appStore.ts
@@ -8,7 +8,7 @@
*/
import { create } from 'zustand'
import { edge } from '../lib/edge'
-import type { ClipboardItemDto, Settings } from '../../shared/types'
+import type { ClipboardItemDto, Settings, DragRequest } from '../../shared/types'
import { DEFAULT_SETTINGS } from '../../shared/types'
/** A transient user-facing notice shown as a toast. */
@@ -35,6 +35,7 @@ interface AppState {
internalDragReq: import('../../shared/types').DragRequest | null
/** Active toasts (auto-dismissed after a short delay). */
toasts: ToastMsg[]
+ tutorialStep: number
/* hydration + sync */
hydrate: () => Promise<void>
@@ -60,6 +61,7 @@ interface AppState {
paste: (id: string) => Promise<void>
pasteSubitem: (req: DragRequest) => Promise<void>
patchSettings: (patch: Partial<Settings>) => Promise<void>
+ setTutorialStep: (step: number) => void
}
export const useStore = create<AppState>((set, get) => ({
@@ -72,6 +74,7 @@ export const useStore = create<AppState>((set, get) => ({
dragActive: false,
internalDragReq: null,
toasts: [],
+ tutorialStep: 0,
async hydrate() {
const { items, settings } = await edge.loadState()
@@ -144,5 +147,10 @@ export const useStore = create<AppState>((set, get) => ({
async patchSettings(patch) {
const next = await edge.updateSettings(patch)
set({ settings: next })
+ },
+
+ setTutorialStep: (step) => {
+ set({ tutorialStep: step })
+ edge.broadcastTutorialStep(step)
}
}))