- sanitize PTY output before persisting transcript history - handle chunk-split control sequences and reset pending state on restart/exit - add regression tests for reopened sessions
- sanitize PTY output before persisting transcript history - handle chunk-split control sequences and reset pending state on restart/exit - add regression tests for reopened sessions