56 commits since v0.8.2. 959 tests passing.
v0.9.0 is a major feature, performance, and reliability release. It introduces configurable per-pane scrollback history limits (history-limit) powered by a circular ring-buffer deque with zero-allocation steady-state line recycling, dynamic runtime log level control via the SZN_LOG environment variable, robust command-line argument quoting and escape parsing, extended terminal input compatibility (kitty keyboard normalization, DECSET 1003 mouse_any, alternate-screen mouse wheel arrow forwarding), and closes 44 bug entries (#395–#439) across memory safety, rendering, and IPC dispatch.
history-limit Option: Added history-limit session option (default: 2000, min: 0, max: 1000000) configurable via ~/.szn.conf / ~/.tmux.conf or dynamically at runtime using szn set-option -g history-limit <N>.GridLine circular indexing).Pane.saveGrid and updated restoreSavedGrid to recycle visible line buffers in-place when dimensions match, eliminating multi-megabyte heap churn during clock-mode and choose-buffer mode toggles.Grid.setHistoryLimit to dynamically resize active ring buffers across running panes, supporting instant eviction on limit reduction and linear normalization on expansion.SZN_LOG)SZN_LOG environment variable support (debug, info, warn, err) to control log verbosity at runtime without recompiling or modifying config files..info to .debug, keeping standard operational logs clean and informative.cmd.parse supporting single quotes ('...'), double quotes ("..."), and backslash escapes (\ ). Complex commands such as bind-key X "split-window -h; select-pane -R" now parse and execute seamlessly.-d -v), flag routing (-g, -w, -s), set-environment, and if-shell directives.EINTR retry handling to the load-buffer file read loop.cmdNewSession if active window or pane setup fails.less, vim, man) forwards Up/Down arrow key sequences (\x1bOA / \x1bOB), matching tmux behavior.mouse_any tracking (all cursor motion events reported).u-mode key codepoints for Tab, Enter, Escape, Backspace, arrow keys, Home, End, PageUp/Down, and F1–F12 into .special, .arrow, and .function variants so standard keybindings match predictably.ESC P $ q) instead of misrouting them into the Sixel parser.status.visibleLen accurately measures multi-byte UTF-8 CJK and combining characters using char_width.charWidth to prevent status range hit-test misalignments.handleClient packet loop and ensured immediate return upon client detachment.appendClientOutFrame with high-watermark backpressure checks and output buffer limits.Pty.spawn fork failures, ensured idempotent Pty.deinit, bound PTY input buffer queuing to 1 MiB, and cleared reaped process IDs on pane destruction.| Category | Bugs Resolved |
|---|---|
| Memory Lifecycle & Safety | #395, #396, #398, #407, #408, #411, #428, #438, #439 |
| Grid & Scrollback Deque | #360, #361, #405, #421 |
| Sixel Graphics & Screen | #399, #406, #419, #420, #434, #435 |
| Server IPC & Flow Control | #400, #401, #402, #403, #404, #418, #423, #425, #431 |
| Command & Config Parsers | #397, #410, #413, #414, #415, #417, #433, #436, #437 |
| Input & Terminal Emulation | #409, #416, #422, #426, #427, #429, #430, #432 |
| Metric | v0.8.2 | v0.9.0 |
|---|---|---|
| Total Passing Tests | 927 | 959 |
| New Regression Tests | — | 32 |
| Open Bugs in Tracker | 0 | 0 |
| Build Status | Debug & ReleaseSafe | Debug, ReleaseSafe & ReleaseFast passing |