claude-prism/apps/desktop
delibae bdc57978ba fix: resolve macOS 12 window not showing due to WebKit top-level-await bug
On macOS 12 (Monterey), the app launches but no main window appears.
The root cause is WebKit bug #242740: Safari 15's WKWebView has a race
condition with top-level await in ES modules, causing silent JS failure
that prevents `getCurrentWindow().show()` from ever being called.

Three complementary fixes:

1. Change Vite build target from `esnext` to `safari14` (Tauri recommended)
   and add `vite-plugin-top-level-await` to transform TLA into compatible
   Promise chains, avoiding the WebKit bug entirely.

2. Replace top-level `await import("./App")` in main.tsx with a `.then()`
   chain, removing TLA dependency at the source level.

3. Add a Rust-side 8-second timeout safety net in `setup()` that
   force-shows the main window if the frontend JS fails to do so,
   preventing permanently hidden windows regardless of the failure cause.

Closes #95

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 19:57:52 +09:00
..
public feat: Enhance Claude installation process and permissions handling 2026-03-06 19:23:41 +09:00
scripts chore: fix all lint and formatting issues (biome check) 2026-03-16 17:04:36 +09:00
src fix: resolve macOS 12 window not showing due to WebKit top-level-await bug 2026-03-26 19:57:52 +09:00
src-tauri fix: resolve macOS 12 window not showing due to WebKit top-level-await bug 2026-03-26 19:57:52 +09:00
.gitignore Refactor desktop application to integrate Claude chat functionality 2026-02-20 17:28:08 +09:00
CHANGELOG.md chore: version bump 2026-03-10 12:27:44 +00:00
index.html feat: add macOS app icon support and update project configuration 2026-02-22 03:24:34 +09:00
package.json fix: resolve macOS 12 window not showing due to WebKit top-level-await bug 2026-03-26 19:57:52 +09:00
postcss.config.mjs Enhance desktop application setup with new components and configurations 2026-02-20 15:27:06 +09:00
tsconfig.json Enhance desktop application setup with new components and configurations 2026-02-20 15:27:06 +09:00
vite.config.ts fix: resolve macOS 12 window not showing due to WebKit top-level-await bug 2026-03-26 19:57:52 +09:00
vitest.config.ts test: add test infrastructure with Vitest (frontend) and Rust unit tests 2026-03-02 15:08:22 +09:00