From 9b31bcc72180cbd0d700ef433df269775e55cd0e Mon Sep 17 00:00:00 2001 From: Ido Frizler Date: Sat, 28 Feb 2026 00:22:27 +0200 Subject: [PATCH 1/2] chore(build): add node-pty to asarUnpack for electron packaging --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8421a51..80ed951 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "asarUnpack": [ "node_modules/@github/copilot-*/**/*", "node_modules/ffmpeg-static/**/*", + "node_modules/node-pty/**/*", "public/whisper-cpp/**/*", "public/whisper-model/**/*" ], From 9790e8e9b81741c0d63f4da4a04b2cb6c675d3c0 Mon Sep 17 00:00:00 2001 From: Ido Frizler Date: Sat, 28 Feb 2026 00:32:25 +0200 Subject: [PATCH 2/2] fix: open lightbox on image click and filter canonical messages for attachments - Replace no-op console.log in handleImageClick with setLightboxImage call - Filter tab.messages to user/assistant roles before computing attachments Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/renderer/App.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 7d96a5b..962ab93 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -969,7 +969,10 @@ const App: React.FC = () => { // Save message attachments whenever tabs/messages change useEffect(() => { tabs.forEach((tab) => { - const attachments = tab.messages + const canonicalMessages = tab.messages.filter( + (msg) => msg.role === 'user' || msg.role === 'assistant' + ); + const attachments = canonicalMessages .map((msg, index) => ({ messageIndex: index, imageAttachments: msg.imageAttachments, @@ -2974,10 +2977,9 @@ Only when ALL the above are verified complete, output exactly: ${RALPH_COMPLETIO [commitModal] ); - // Handle image click (for now, just a no-op - can be extended for image viewer modal) + // Handle image click const handleImageClick = useCallback((src: string, alt: string) => { - // Placeholder for future image viewer modal - console.log('Image clicked:', src, alt); + setLightboxImage({ src, alt }); }, []); // Handle confirmation from shrink modal