chore(cleanup): remove document drag-and-drop

Remove the feature that let a user drop a .txt/.md/.csv/.docx/.pdf file
onto the avatar to feed its text into the chat: the dropped-files IPC
handler and extractText() in main, and getPathForFile/sendDroppedFiles
in the preload API and renderer App.tsx. This fed documents into the
general-purpose chat loop, which is being phased out in favor of the
server-side coach pipeline. Uninstall mammoth and pdf-parse, now unused.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-31 20:38:19 +01:00
co-authored by Claude Sonnet 5
parent 6cb38a2f36
commit acdd8a08d3
8 changed files with 12 additions and 266 deletions
+1 -5
View File
@@ -1,4 +1,4 @@
import { contextBridge, ipcRenderer, webUtils } from 'electron'
import { contextBridge, ipcRenderer } from 'electron'
import { electronAPI } from '@electron-toolkit/preload'
import type { VoiceTurnResult } from '../shared/voice'
import type { AuthStatus, LoginResult } from '../shared/auth'
@@ -28,10 +28,6 @@ const api = {
ipcRenderer.on('proactive-speech', handler)
return () => ipcRenderer.removeListener('proactive-speech', handler)
},
getPathForFile: (file: File): string => webUtils.getPathForFile(file),
sendDroppedFiles: (paths: string[]): void => {
ipcRenderer.send('dropped-files', paths)
},
onUpdateAvailable: (callback: () => void): (() => void) => {
const handler = (): void => callback()
ipcRenderer.on('update:available', handler)