Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(windows): attach the clipboard file-drop stdin error listener unconditionally

review881041fd41d9
diff --git a/src/main/clipboard-files-win.ts b/src/main/clipboard-files-win.ts
index bddbb9d4c..b0b48f11b 100644
--- a/src/main/clipboard-files-win.ts
+++ b/src/main/clipboard-files-win.ts
@@ -58,7 +58,7 @@ export type ExecFileLike = (
options: { timeout: number; windowsHide: boolean },
callback: (error: Error | null) => void
) => {
- stdin?: { end(data: string): void; on?(event: 'error', listener: () => void): unknown } | null
+ stdin?: { end(data: string): void; on(event: 'error', listener: () => void): unknown } | null
} | undefined
export function windowsPowerShellPath(env: Record<string, string | undefined> = process.env): string {
@@ -84,7 +84,7 @@ export function writeWindowsFileDrop(
return
}
// A spawn failure surfaces in the callback; swallow the paired EPIPE on stdin.
- child.stdin.on?.('error', () => undefined)
+ child.stdin.on('error', () => undefined)
child.stdin.end(asciiJson(paths))
} catch {
resolve(false)