pi-mono/packages/tui/test
Mikhail f. Shiryaev 7f30fb6136
Address edge-case with kitty protocol in wezterm
packages/tui/src/stdin-buffer.ts — in extractCompleteSequences, after finding \x1b\x1b as "complete" (legacy meta-key), check if the next character in the buffer would start a new escape sequence ([, ], O, P, _). If so, emit only the first \x1b and let the second ESC begin a new parse iteration.

packages/tui/test/stdin-buffer.test.ts — three new cases in the Kitty section:
- \x1b\x1b[27;129:3u (num_lock) splits into ["\x1b", "\x1b[27;129:3u"]
- \x1b\x1b[27;1:3u (no num_lock) splits into ["\x1b", "\x1b[27;1:3u"]
- \x1b\x1b alone (no following CSI) still emits as ["\x1b\x1b"] — preserves ctrl+alt+[
2026-05-13 18:43:42 +02:00
..
autocomplete.test.ts remove mom and pods packages 2026-04-30 23:01:19 +02:00
bug-regression-isimageline-startswith-bug.test.ts fix: make pre-commit hook fail on lint warnings, fix template literal warnings 2026-02-01 00:25:57 +01:00
chat-simple.ts fix(tui): add vertical scrolling to Editor when content exceeds terminal height 2026-01-16 04:12:21 +01:00
editor.test.ts fix(tui): handle Thai Sara Am width 2026-04-29 22:58:19 +02:00
fuzzy.test.ts fix(tui): prioritize exact fuzzy matches 2026-05-04 20:24:13 +02:00
image-test.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
input.test.ts fix(tui): stop wide input slice overflow closes #1982 (#2006) 2026-03-09 23:19:26 +01:00
key-tester.ts feat: configurable keybindings for all editor and app actions 2026-01-03 08:23:56 +01:00
keybindings.test.ts fix(tui): stop evicting unrelated default keybindings closes #2455 2026-03-20 12:54:20 +01:00
keys.test.ts fix(tui): restore shifted xterm input 2026-04-20 15:36:10 +02:00
markdown.test.ts fix(tui): render the checkboxes in the to-do list items 2026-05-10 22:20:40 +04:00
overlay-non-capturing.test.ts fix(tui): sync test awaits with throttled render pipeline (#3076) 2026-04-13 10:57:48 +02:00
overlay-options.test.ts fix(tui): sync test awaits with throttled render pipeline (#3076) 2026-04-13 10:57:48 +02:00
overlay-short-content.test.ts fix(tui): sync test awaits with throttled render pipeline (#3076) 2026-04-13 10:57:48 +02:00
regression-regional-indicator-width.test.ts fix(tui): stabilize regional indicator width to prevent streaming render drift (#1783) 2026-03-03 21:59:56 +01:00
select-list.test.ts feat(tui): make select list column sizing configurable (#2154) 2026-03-14 15:50:00 +01:00
stdin-buffer.test.ts Address edge-case with kitty protocol in wezterm 2026-05-13 18:43:42 +02:00
terminal-image.test.ts fix(tui): cap portrait image render height 2026-05-13 16:12:48 +02:00
terminal.test.ts fix(tui): respect environment terminal dimensions 2026-04-30 10:29:42 +02:00
test-themes.ts Add CI workflow and fix workspace tests 2025-12-02 12:53:53 +00:00
truncate-to-width.test.ts fix(tui): normalize Thai AM terminal output 2026-04-29 23:01:04 +02:00
truncated-text.test.ts Enable more biome lints and fix things 2025-12-21 22:56:20 +01:00
tui-cell-size-input.test.ts fix(tui): stop swallowing escape during cell size detection closes #2661 2026-03-29 13:22:23 +02:00
tui-overlay-style-leak.test.ts fix(tui): sync test awaits with throttled render pipeline (#3076) 2026-04-13 10:57:48 +02:00
tui-render.test.ts fix(tui): keep kitty image redraws inside TUI 2026-05-07 10:34:37 +02:00
viewport-overwrite-repro.ts fix(tui): fix scrollback overwrite when appending lines past viewport 2026-01-26 16:51:28 +01:00
virtual-terminal.ts feat(tui,coding-agent): add OSC 9;4 terminal progress indicators 2026-04-22 11:55:52 +02:00
wrap-ansi.test.ts fix(tui): preserve OSC 8 hyperlink terminators 2026-05-05 13:48:15 +02:00