fix(desktop): externalize grammy in Vite Electron build

grammy was not in rollupOptions.external, causing the channels IPC
handlers to fail at runtime with 'No handler registered'.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jiang Bohan 2026-02-09 15:08:11 +08:00
parent 19fed71f09
commit 5c7d913128

View file

@ -38,6 +38,7 @@ export default defineConfig({
'@mariozechner/pi-agent-core',
'@mariozechner/pi-ai',
'@mariozechner/pi-coding-agent',
'grammy',
],
},
},