mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 23:20:46 +00:00
* fix: implement real-time session logging via main process streams Fixes #394. Session logs previously only captured ~55 lines (the xterm serialize buffer) and were written only on session close. This change intercepts terminal data in the main process and writes it to a file stream in real-time, capturing the complete session output. - Add sessionLogStreamManager.cjs: manages per-session write streams with 500ms/64KB flush, supports txt/raw/html formats - sshBridge: start stream on shell open, append on data, stop on close - terminalBridge: same for local, telnet, mosh, serial sessions - Thread sessionLog config from renderer settings through IPC options - Skip old renderer-side auto-save when streaming is active - Cleanup all streams on app quit Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: remove stale renderer-side auto-save and async HTML finalization - Remove dead renderer-side auto-save code (main process handles it) - Make stopStream async, await writeStream finish before HTML conversion - Use fs.promises for HTML read/write/unlink Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>