Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
Auto-fix formatting issues
GitHub Action5824cbc9a77b
diff --git a/.agents/skills/bugs/SKILL.md b/.agents/skills/bugs/SKILL.mdindex a6ed99fb..7559105c 100644--- a/.agents/skills/bugs/SKILL.md+++ b/.agents/skills/bugs/SKILL.md@@ -22,17 +22,17 @@ Aim it at a boundary, not at a file.Name the area and the depth. A whole-repo sweep with no budget produces speculation; pick one hotspot and go deep. Start from the Hotspot Map in `AGENTS.md` (Current Risk Areas + table below) rather than inventing a scope.-| Hotspot | Primary paths | Locked tests (examples) |-|---|---|---|-| Link / download heuristics | `src-tauri/src/inject/event.js` | `event-link-guard.test.js`, `download-http-status.test.ts` |-| Download success semantics | `src-tauri/src/app/invoke.rs`, `window.rs` `on_download` | `download-http-status.test.ts` |-| Menu / focused window | `src-tauri/src/app/menu.rs` | `menu-focused-window.test.ts` |-| Startup visibility | `src-tauri/src/lib.rs`, `setup.rs` | `startup-window-reveal.test.ts` |-| Auth / popup | `inject/auth.js`, `inject/event.js` | `auth-sso-patterns.test.js`, `new-window-macos.test.js` |-| Clipboard | `inject/event.js` | `event-clipboard-shortcuts.test.js` |-| Multi-window / icon | `window.rs`, `setup.rs` | `window-icon-reapply.test.ts` |-| Platform fake capability | `cert.rs`, proxy, WebKit flags in `lib.rs` | `macos-proxy-feature.test.ts`, Linux flag unit tests |-| CLI / config contract | `bin/`, `schema/pake.schema.json` | `config-file.test.ts`, `cli-options.test.ts` |+| Hotspot | Primary paths | Locked tests (examples) |+| -------------------------- | -------------------------------------------------------- | ---------------------------------------------------------- |+| Link / download heuristics | `src-tauri/src/inject/event.js` | `event-link-guard.test.js`, `download-http-status.test.ts` |+| Download success semantics | `src-tauri/src/app/invoke.rs`, `window.rs` `on_download` | `download-http-status.test.ts` |+| Menu / focused window | `src-tauri/src/app/menu.rs` | `menu-focused-window.test.ts` |+| Startup visibility | `src-tauri/src/lib.rs`, `setup.rs` | `startup-window-reveal.test.ts` |+| Auth / popup | `inject/auth.js`, `inject/event.js` | `auth-sso-patterns.test.js`, `new-window-macos.test.js` |+| Clipboard | `inject/event.js` | `event-clipboard-shortcuts.test.js` |+| Multi-window / icon | `window.rs`, `setup.rs` | `window-icon-reapply.test.ts` |+| Platform fake capability | `cert.rs`, proxy, WebKit flags in `lib.rs` | `macos-proxy-feature.test.ts`, Linux flag unit tests |+| CLI / config contract | `bin/`, `schema/pake.schema.json` | `config-file.test.ts`, `cli-options.test.ts` |## 2. Read the area's own fix history first@@ -50,17 +50,17 @@ Bugs recur by shape within a module. Two signals worth acting on:Highest historical yield first. For each, read the matching Risk Areas note in `AGENTS.md` before hypothesizing.-| Boundary | What to ask | Where it lives |-|---|---|---|-| Download / navigation heuristics | Would a SPA route under this path/extension be intercepted? Prefer extension + `download` attr + query hints over broad path roots. | `inject/event.js` |-| Success vs transport | Is HTTP non-2xx, empty body, or missing file still toasted as success? | `invoke.rs`, `on_download` |-| Window identity | Does this path hardcode `"pake"` when the user may be on `pake-N` or the focused window? | `menu.rs`, `invoke.rs`, `setup.rs`, `window.rs` |-| Eval on dead pages | Does this menu/shortcut need a page JS context? Error and blank shells have none; prefer native `reload` / `navigate` / platform history. | `menu.rs` |-| Startup vs user control | Can page-load or fallback re-show a window the user already hid? Latch every user visibility path. | `lib.rs`, `setup.rs` |-| Auth / popup | Does macOS auth still crash, strand about:blank, or open the system browser for SSO? Apple Sign-In stays native popup. | `auth.js`, `event.js` |-| Clipboard | Does keydown steal native paste (images/files)? Is fallback gated on trusted keyup + TTL? | `event.js` |-| Platform capability | Is this flag real on WKWebView / WebView2 / WebKitGTK, or a Chromium-only no-op? | `cert.rs`, `window.rs`, `lib.rs` |-| Config dual track | Can a config file smuggle a value the CLI flag rejects? | `bin/helpers/merge.ts`, schema |+| Boundary | What to ask | Where it lives |+| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |+| Download / navigation heuristics | Would a SPA route under this path/extension be intercepted? Prefer extension + `download` attr + query hints over broad path roots. | `inject/event.js` |+| Success vs transport | Is HTTP non-2xx, empty body, or missing file still toasted as success? | `invoke.rs`, `on_download` |+| Window identity | Does this path hardcode `"pake"` when the user may be on `pake-N` or the focused window? | `menu.rs`, `invoke.rs`, `setup.rs`, `window.rs` |+| Eval on dead pages | Does this menu/shortcut need a page JS context? Error and blank shells have none; prefer native `reload` / `navigate` / platform history. | `menu.rs` |+| Startup vs user control | Can page-load or fallback re-show a window the user already hid? Latch every user visibility path. | `lib.rs`, `setup.rs` |+| Auth / popup | Does macOS auth still crash, strand about:blank, or open the system browser for SSO? Apple Sign-In stays native popup. | `auth.js`, `event.js` |+| Clipboard | Does keydown steal native paste (images/files)? Is fallback gated on trusted keyup + TTL? | `event.js` |+| Platform capability | Is this flag real on WKWebView / WebView2 / WebKitGTK, or a Chromium-only no-op? | `cert.rs`, `window.rs`, `lib.rs` |+| Config dual track | Can a config file smuggle a value the CLI flag rejects? | `bin/helpers/merge.ts`, schema |For generic shapes (fail-open guards, recovery gated on the artifact it restores, watchdog tuned only to the fast path), invoke `/hunt` Recurring Failure mode. Do not re-derive that catalog here.diff --git a/AGENTS.md b/AGENTS.mdindex f2d2bce8..74bf5b0f 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -75,17 +75,17 @@ Goals and project facts only; trust the agent to find its own path.Proactive latent-bug sweeps use `.agents/skills/bugs/SKILL.md`. Pick one row and go deep; do not invent a whole-repo scope.-| Hotspot | Paths | What usually goes wrong |-|---|---|---|-| Link / download heuristics | `src-tauri/src/inject/event.js` | SPA routes intercepted as downloads; path roots too broad |+| Hotspot | Paths | What usually goes wrong |+| -------------------------- | -------------------------------------- | ---------------------------------------------------------------------------- |+| Link / download heuristics | `src-tauri/src/inject/event.js` | SPA routes intercepted as downloads; path roots too broad || Download success semantics | `invoke.rs`, `window.rs` `on_download` | Non-2xx toasted as success; toast/IPC pinned to `"pake"`; no session cookies |-| Menu / focused window | `menu.rs` | Commands hit the main window, not the focused one; eval dead on error pages |-| Startup visibility | `lib.rs`, `setup.rs` | Blank shell, `about:blank` false ready, user hide racing fallback reveal |-| Auth / popup | `auth.js`, `event.js` | macOS auth crash, SSO in system browser, Apple popup exception |-| Clipboard | `event.js` | keydown steals native paste; double-paste fallback |-| Multi-window / icon | `window.rs`, `setup.rs` | Missing `reapply_window_icon` on show; secondary window toast/target |-| Platform capability | `cert.rs`, proxy, WebKit flags | Flag name present, platform no-op |-| CLI / config contract | `bin/`, `schema/` | Config smuggles out-of-range values CLI rejects |+| Menu / focused window | `menu.rs` | Commands hit the main window, not the focused one; eval dead on error pages |+| Startup visibility | `lib.rs`, `setup.rs` | Blank shell, `about:blank` false ready, user hide racing fallback reveal |+| Auth / popup | `auth.js`, `event.js` | macOS auth crash, SSO in system browser, Apple popup exception |+| Clipboard | `event.js` | keydown steals native paste; double-paste fallback |+| Multi-window / icon | `window.rs`, `setup.rs` | Missing `reapply_window_icon` on show; secondary window toast/target |+| Platform capability | `cert.rs`, proxy, WebKit flags | Flag name present, platform no-op |+| CLI / config contract | `bin/`, `schema/` | Config smuggles out-of-range values CLI rejects |## Current Risk Areasdiff --git a/tests/unit/menu-focused-window.test.ts b/tests/unit/menu-focused-window.test.tsindex 28868c3b..b6d2f1f7 100644--- a/tests/unit/menu-focused-window.test.ts+++ b/tests/unit/menu-focused-window.test.ts@@ -29,6 +29,8 @@ describe('macOS menu window targeting', () => {it('copies the native webview URL without requiring page JS', () => {expect(handler).toContain('window.url()');expect(handler).toContain('copy_text_to_pasteboard');- expect(handler).not.toContain('navigator.clipboard.writeText(window.location.href)');+ expect(handler).not.toContain(+ 'navigator.clipboard.writeText(window.location.href)',+ );});});