opcode icon indicating copy to clipboard operation
opcode copied to clipboard

fix: replace require() with static ESM import for Tauri events

Open jakeefr opened this issue 7 months ago • 0 comments

Fixes #462. Replaced require() call with static ESM import so Tauri events correctly reach the frontend in Vite/ESM context. The require() was failing silently, causing all macOS/Linux from-source users to never receive Tauri events.

Also fixed the same pattern in useClaudeMessages.ts for consistency, as noted in the issue.

I maintain PRISM, a post-session diagnostics tool for Claude Code — CLAUDE.md adherence analysis and session health scoring. Fixed this while testing opcode as a frontend for Claude Code sessions.

jakeefr avatar Apr 15 '26 08:04 jakeefr