AutocompleteProvider.triggerCharacters so editor autocomplete can naturally trigger on provider-defined token prefixes (#4703).Shift+Enter in Apple Terminal by detecting local macOS modifier state when Terminal.app sends plain Return.koffi dependency for Windows VT input with a tiny vendored native helper, reducing install size while preserving Shift+Tab handling (#4480).ProcessTerminal to fall back to COLUMNS and LINES before defaulting to 80x24 dimensions (#4004)setProgress(active: boolean) to the Terminal interface for OSC 9;4 progress indicator supportAutocompleteProvider.shouldTriggerFileCompletion?() and # as a natural autocomplete trigger alongside @ (#2983)@ autocomplete fuzzy search to follow symlinked directories and include symlinked paths in results (#3507)LoaderIndicatorOptions and Loader.setIndicator() support for custom loader frames and animation intervals, allowing TUI consumers to use animated, static, or hidden loader indicators (#3413)@ autocomplete fuzzy search to stop matching against the full base path for plain queries, so worktree or cwd paths containing the query text no longer crowd out real results such as @plan suggestions (#2778)modifyOtherKeys printable input so shifted uppercase letters insert correctly in the editor and shifted letter bindings parse and match consistently (#3436)hyperlink(text, url) helper and a setCapabilities() test override in packages/tui (#3248 by @ofa1).argumentHint to SlashCommand interface, displayed before the description in the autocomplete dropdown (#2780 by @andresvi94)detectCapabilities() to default hyperlinks: false for unknown terminals and to force hyperlinks: false under tmux/screen (including nested sessions where the outer terminal would otherwise advertise OSC 8). Prevents markdown link URLs from disappearing on terminals that silently swallow OSC 8 sequences (#3248).Shift+Enter regressions by reverting the Zellij-specific Kitty keyboard query bypass and restoring the previous keyboard negotiation behavior (#3259)~~text~~) with non-whitespace boundaries, preventing accidental strikethrough from loose tilde usage.super-modified shortcuts, including combinations such as super+k, super+enter, and ctrl+super+k (#2979)modifyOtherKeys parsing when the legacy form does not match (#2989 by @kaofelix)Container.render() stack overflow on long sessions by replacing Array.push(...spread) with a loop-based push, preventing RangeError: Maximum call stack size exceeded when child output exceeds the V8 call stack argument limit (#2651)VirtualTerminal.waitForRender() helper that waits for the 16ms throttled render pipeline to settle before asserting viewport state (#3076 by @aliou)requestRender() calls to a 16ms frame budget while preserving immediate requestRender(true) behavior.getArgumentCompletions() results and ignore invalid return values, preventing crashes when extension commands provide asynchronous completions (#2719)CSI 6 ; height ; width t replies, so bare Escape is no longer swallowed while waiting for terminal image metadata (#2661)PI_TUI_WRITE_LOG directory paths, creating a unique log file (tui-<timestamp>-<pid>.log) per instance for easier debugging of multiple pi sessions (#2508 by @mrexodia)/model that submit into a selector dialog (#2577)@ autocomplete to debounce editor-triggered searches, cancel in-flight fd lookups cleanly, and keep suggestions visible while results refresh (#1278)truncateToWidth() to stream truncation for very large strings, keep contiguous prefixes, and always terminate truncated SGR styling safely (#2447)@mariozechner/pi-tui. TUI keybinding ids are now namespaced: cursorUp -> tui.editor.cursorUp, cursorDown -> tui.editor.cursorDown, cursorLeft -> tui.editor.cursorLeft, cursorRight -> tui.editor.cursorRight, cursorWordLeft -> tui.editor.cursorWordLeft, cursorWordRight -> tui.editor.cursorWordRight, cursorLineStart -> tui.editor.cursorLineStart, cursorLineEnd -> tui.editor.cursorLineEnd, jumpForward -> tui.editor.jumpForward, jumpBackward -> tui.editor.jumpBackward, pageUp -> tui.editor.pageUp, pageDown -> tui.editor.pageDown, deleteCharBackward -> tui.editor.deleteCharBackward, deleteCharForward -> tui.editor.deleteCharForward, deleteWordBackward -> tui.editor.deleteWordBackward, deleteWordForward -> tui.editor.deleteWordForward, deleteToLineStart -> tui.editor.deleteToLineStart, deleteToLineEnd -> tui.editor.deleteToLineEnd, yank -> tui.editor.yank, yankPop -> tui.editor.yankPop, undo -> tui.editor.undo, newLine -> tui.input.newLine, submit -> tui.input.submit, tab -> tui.input.tab, copy -> tui.input.copy, selectUp -> tui.select.up, selectDown -> tui.select.down, selectPageUp -> tui.select.pageUp, selectPageDown -> tui.select.pageDown, selectConfirm -> tui.select.confirm, selectCancel -> tui.select.cancel. keybindings.json stays backward compatible because each keybinding definition maps the new internal id back to the existing public config key. Apps extend interface Keybindings via declaration merging, create one manager with both TUI and app definitions, then install it with setKeybindings(...) (#2391)modifyOtherKeys matching for Backspace, Escape, and Space, and resolved raw \x08 backspace ambiguity by treating Windows Terminal sessions differently from legacy terminals (#2293)SelectList primary column sizing via SelectListLayoutOptions, including custom primary-label truncation hooks (#2154 by @markusylisiurunen)./ prefix when completing relative paths (#2087)ctrl+backspace being indistinguishable from plain backspace on Windows Terminal. 0x08 is now recognized as ctrl+backspace instead of backspace, making ctrl+backspace bindable on terminals where it produces a distinct byte (#2139)Input horizontal scrolling for wide Unicode text (CJK, fullwidth characters) to use visual column width and strict slice boundaries, preventing rendered line overflow and TUI crashes (#1982)modifyOtherKeys handling for Tab in matchesKey(), restoring shift+tab and other modified Tab bindings in tmux when extended-keys-format is left at the default xtermsetText() and input paths not being normalized to spaces (#2027 by @haoqixu)wordWrapLine overflow when wide characters (CJK, fullwidth) fall exactly at the wrap boundary (#2082 by @haoqixu)Input paste not being normalized to spaces (#1975 by @haoqixu)treeFoldOrUp and treeUnfoldOrDown editor actions with default bindings for Ctrl+←/Ctrl+→ and Alt+←/Alt+→ (#1724 by @Perlence)0-9) to the keybinding system, including Kitty CSI-u and xterm modifyOtherKeys support for bindings like ctrl+1 (#1905)modifyOtherKeys parsing in matchesKey() and parseKey(), restoring Ctrl-based keybindings and modified Enter keys in tmux when extended-keys-format is left at the default xterm (#1872)OverlayOptions.nonCapturing and new OverlayHandle methods: focus(), unfocus(), and isFocused() for programmatic overlay focus control (#1916 by @nicobailon)hideOverlay() to only reassign focus when the popped overlay had focus (#1916 by @nicobailon)decodeKittyPrintable() from keys.ts for decoding Kitty CSI-u sequences into printable charactersInput component not accepting typed characters when Kitty keyboard protocol is active (e.g., VS Code 1.110+), causing model selector filter to ignore keystrokes (#1857)🇨 during streaming) to prevent wrap drift and stale character artifacts in differential rendering.@ autocomplete scans during paste (#1812)visibleWidth() to ignore generic OSC escape sequences (including OSC 133 semantic prompt markers), preventing width drift when terminals emit semantic zone markers (#1805)koffi via createRequire, restoring VT input mode while keeping koffi externalized from compiled binaries (#1627 by @kaste)enableWindowsVTInput() to prevent bun from embedding all 18 platform .node files (~74MB) into every compiled binary. Koffi is only needed on Windows.TUI (addInputListener and removeInputListener) to let callers intercept, transform, or consume raw input before component handling.@ autocomplete fuzzy matching to score against path segments and prefixes, reducing irrelevant matches for nested paths (#1423)pasteToEditor to EditorComponent API for programmatic paste support (#1351 by @kaofelix)/settings crashing in narrow terminals by handling small widths in the settings list (#1246 by @haoqixu)Terminal.drainInput() to drain stdin before exit (prevents Kitty key release events leaking over slow SSH)PI_DEBUG_REDRAW=1 env var for debugging full redraws (logs triggers to ~/.pi/agent/pi-debug.log)clearOnShrink now defaults to false (use PI_CLEAR_ON_SHRINK=1 or setClearOnShrink(true) to enable)Fixed emoji cursor positioning in Input component (#1183 by @haoqixu)
Fixed unnecessary full redraws when appending many lines after content had previously shrunk (viewport check now uses actual previous content size instead of stale maximum)
Fixed Ctrl+D exit closing the parent SSH session due to stdin buffer race condition (#1185)
isImageLine() with startsWith short-circuit for faster image line detection/tree, clearing multi-line editor) (#1095 by @marckrenn)stop() when a render was pending (#1099 by @haoqixu)isImageLine() to check for image escape sequences anywhere in a line, not just at the start. This prevents TUI crashes when rendering lines containing image data. (#1091 by @zedrdave)autocompleteMaxVisible option to EditorOptions with getter/setter methods for configurable autocomplete dropdown height (#972 by @masonc15)alt+b and alt+f as alternative keybindings for word navigation (cursorWordLeft, cursorWordRight) and ctrl+d for deleteCharForward (#1043 by @jasonish)extractCursorPosition performance: scans lines in reverse order, early-outs when cursor is above viewport, and limits scan to bottom terminal height (#1004 by @can1357)fullRedraws readonly property to TUI class for tracking full screen redrawsPI_TUI_WRITE_LOG environment variable to capture raw ANSI output for debuggingcodeBlockIndent property on MarkdownTheme to customize code block content indentation (default: 2 spaces) (#855 by @terrorobe)(mailto:...) suffix in markdown output (#888 by @terrorobe)/ characters (e.g., folder1/folder2) (#882 by @richardgill)@ file attachments no longer add trailing space, allowing continued autocomplete into subdirectoriesshowHardwareCursor getter and setter to control cursor visibility while keeping IME positioning active. (#800 by @ghoulr)EditorOptions with optional paddingX for horizontal content padding, plus getPaddingX()/setPaddingX() methods (#791 by @ferologics)PI_HARDWARE_CURSOR=1 to enable (replaces PI_NO_HARDWARE_CURSOR=1 which disabled it).@, ?) work in terminals that enable Kitty keyboard protocol (#779 by @iamd3vil)Editor constructor now requires TUI as first parameter: new Editor(tui, theme). This enables automatic vertical scrolling when content exceeds terminal height. (#732)Editor and Input components. The terminal cursor now follows the text cursor position, enabling proper IME candidate window placement for CJK input. (#719)Focusable interface for components that need hardware cursor positioning. Implement focused: boolean and emit CURSOR_MARKER in render output when focused.CURSOR_MARKER constant and isFocusable() type guard exported from the packagevisibleWidth() and extractAnsiCode() now handle APC escape sequences (ESC _ ... BEL), fixing width calculation and string slicing for strings containing cursor markersOverlayOptions API for overlay positioning and sizing with CSS-like values: width, maxHeight, row, col accept numbers (absolute) or percentage strings (e.g., "50%"). Also supports minWidth, anchor, offsetX, offsetY, margin. (#667 by @nicobailon)OverlayOptions.visible callback for responsive overlays - receives terminal dimensions, return false to hide (#667 by @nicobailon)showOverlay() now returns OverlayHandle with hide(), setHidden(boolean), isHidden() for programmatic visibility control (#667 by @nicobailon)OverlayAnchor, OverlayHandle, OverlayMargin, OverlayOptions, SizeValue (#667 by @nicobailon)truncateToWidth() now accepts optional pad parameter to pad result with spaces to exactly maxWidth (#667 by @nicobailon)SettingsListOptions with enableSearch for fuzzy filtering in SettingsList (#643 by @ninlds)pageUp and pageDown key support with selectPageUp/selectPageDown editor actions (#662 by @aliou)fuzzyFilter() and fuzzyMatch() utilities for fuzzy text matching:3F in MAC addresses) was incorrectly filtered out (#623 by @ogulcancelik)ctx.ui.custom() with { overlay: true } option (#558 by @nicobailon)EditorComponent interface for custom editor implementationsStdinBuffer class to split batched stdin into individual sequences (adapted from OpenTUI, MIT license)Component.wantsKeyRelease property to opt-in to key release events (default false)matchesKey() now correctly matches Kitty protocol sequences for unmodified letter keys (needed for key release events)isKeyRelease(data), isKeyRepeat(data), KeyEventType type. Terminals supporting Kitty protocol (Kitty, Ghostty, WezTerm) now send proper key-up events.SymbolKey type with 32 symbol keys, Key constants (e.g., Key.backtick, Key.comma), updated matchesKey() and parseKey() to handle symbol input (#450 by @kaofelix)Editor.getExpandedText() method that returns text with paste markers expanded to their actual content (#444 by @aliou)isXxx() key detection functions (isEnter(), isEscape(), isCtrlC(), etc.) have been removed. Use matchesKey(data, keyId) instead (e.g., matchesKey(data, "enter"), matchesKey(data, "ctrl+c")). This affects hooks and custom tools that use ctx.ui.custom() with keyboard input handling. (#405)Editor.insertTextAtCursor(text) method for programmatic text insertion (#419)EditorKeybindingsManager for configurable editor keybindings. Components now use matchesKey() and keybindings manager instead of individual isXxx() functions. (#405 by @hjanuschka)is*() functions into generic matchesKey(data, keyId) function that accepts key identifiers like "ctrl+c", "shift+enter", "alt+left", etc.., -, or _ (e.g., /.land, /-foo) (#422)visibleWidth() now strips OSC 8 hyperlink sequences, fixing text wrapping for clickable links (#396 by @Cursivez)isShiftCtrlO() key detection function for Shift+Ctrl+O (Kitty protocol)isShiftCtrlD() key detection function for Shift+Ctrl+D (Kitty protocol)TUI.onDebug callback for global debug key handling (Shift+Ctrl+D)wrapTextWithAnsi() utility now exported (wraps text to width, preserving ANSI codes)visibleWidth() reimplemented with grapheme-based width calculation, 10x faster on Bun and ~15% faster on Node (#369 by @nathyong)visibleWidth() and grapheme iteration when encountering undefined code points (#372 by @HACKE-RC)/, ~, or .) and the cursor is after a word character, a space is automatically prepended for better readability. Useful when dragging screenshots from macOS. (#307 by @mitsuhiko)