Added
- ⚡ Configurable log flush strategy — new
OPEN_TERMINAL_LOG_FLUSH_INTERVALandOPEN_TERMINAL_LOG_FLUSH_BUFFERenvironment variables (orlog_flush_interval/log_flush_bufferin config.toml) control how frequently process output is flushed to disk. Default0preserves the existing per-chunk flush behaviour. SettingOPEN_TERMINAL_LOG_FLUSH_INTERVAL=1reduces fsyncs from ~250/sec to ~1/sec for high-output commands, preventing I/O storms that can make ARM/eMMC systems unresponsive. (#65)
Changed
- 🔧 Centralized flush control — per-chunk
flush()calls removed fromPtyRunner,PipeRunner, andWinPtyRunner; flushing is now managed entirely byBoundedLogWriterbased on the configured interval and buffer settings. An explicit final flush is performed before writing the process end marker.