diff --git a/apps/desktop/electron/main.cjs b/apps/desktop/electron/main.cjs index 6af34b653..b07e53ee0 100644 --- a/apps/desktop/electron/main.cjs +++ b/apps/desktop/electron/main.cjs @@ -8,6 +8,8 @@ const { ipcMain, nativeImage, nativeTheme, + net: electronNet, + protocol, safeStorage, session, shell, @@ -364,6 +366,66 @@ app.setAboutPanelOptions({ copyright: 'Copyright © 2026 Nous Research' }) +// Custom scheme for streaming local media (video/audio) into the renderer. +// Reading large media through `readFileDataUrl` failed: it base64-loads the +// whole file into memory and is hard-capped at DATA_URL_READ_MAX_BYTES (16 MB), +// so any non-trivial video silently refused to load. Streaming via a protocol +// handler removes the size cap and gives the