@linxiraos/pi-tui 1.4.11 → 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/CHANGELOG.md +30 -233
  2. package/README.md +4 -1
  3. package/THIRD-PARTY-NOTICES.txt +4 -5
  4. package/dist/types/apps/shell-visualizer.d.ts +24 -0
  5. package/dist/types/autocomplete.d.ts +20 -0
  6. package/dist/types/chat/cache-invalidation-marker.d.ts +15 -7
  7. package/dist/types/chat/chat-transcript-builder.d.ts +5 -3
  8. package/dist/types/chat/display-preferences.d.ts +2 -0
  9. package/dist/types/chat/extension-types.d.ts +72 -1
  10. package/dist/types/chat/image-loading.d.ts +2 -2
  11. package/dist/types/chat/messages.d.ts +2 -3
  12. package/dist/types/chat/read-tool-group.d.ts +15 -2
  13. package/dist/types/chat/skill-message.d.ts +1 -0
  14. package/dist/types/chat/spotlight.d.ts +203 -0
  15. package/dist/types/chat/tool-execution.d.ts +26 -5
  16. package/dist/types/chat/transcript-actions.d.ts +11 -0
  17. package/dist/types/chat/transcript-browser.d.ts +9 -0
  18. package/dist/types/chat/transcript-presentation.d.ts +164 -0
  19. package/dist/types/chat/ttsr-notification.d.ts +2 -0
  20. package/dist/types/chrome/message-frame.d.ts +2 -0
  21. package/dist/types/chrome/transcript-container.d.ts +27 -6
  22. package/dist/types/components/loader.d.ts +0 -2
  23. package/dist/types/components/markdown.d.ts +11 -1
  24. package/dist/types/components/settings-list.d.ts +12 -2
  25. package/dist/types/frame-rate.d.ts +18 -0
  26. package/dist/types/hotkeys-markdown.d.ts +2 -0
  27. package/dist/types/index.d.ts +3 -0
  28. package/dist/types/keybinding-matchers.d.ts +4 -1
  29. package/dist/types/kitty-graphics.d.ts +1 -1
  30. package/dist/types/motion-effects.d.ts +10 -0
  31. package/dist/types/native/encode.d.ts +2 -0
  32. package/dist/types/native/measure.d.ts +10 -0
  33. package/dist/types/native/overlay.d.ts +1 -1
  34. package/dist/types/native/quiet.d.ts +5 -0
  35. package/dist/types/native/reconcile.d.ts +6 -1
  36. package/dist/types/native/spans.d.ts +6 -0
  37. package/dist/types/native/state.d.ts +4 -0
  38. package/dist/types/overlays/agent-hub.d.ts +6 -0
  39. package/dist/types/overlays/link-browser.d.ts +55 -0
  40. package/dist/types/overlays/running-subagent-badge.d.ts +1 -4
  41. package/dist/types/overlays/spotlight-sheet.d.ts +36 -0
  42. package/dist/types/prompt/composer-attachments.d.ts +5 -2
  43. package/dist/types/prompt/composer-cache.d.ts +7 -2
  44. package/dist/types/prompt/composer.d.ts +6 -11
  45. package/dist/types/prompt/custom-editor.d.ts +8 -2
  46. package/dist/types/prompt/gradient-highlight.d.ts +2 -2
  47. package/dist/types/prompt/magic-keywords.d.ts +2 -0
  48. package/dist/types/prompt/model-mention-autocomplete.d.ts +9 -7
  49. package/dist/types/prompt/model-mention-syntax.d.ts +6 -0
  50. package/dist/types/prompt/prompt-action-autocomplete.d.ts +2 -1
  51. package/dist/types/prompt/welcome.d.ts +19 -0
  52. package/dist/types/render/extension-links.d.ts +0 -6
  53. package/dist/types/render/index.d.ts +1 -0
  54. package/dist/types/render/link-hints.d.ts +78 -0
  55. package/dist/types/render/render-utils.d.ts +0 -2
  56. package/dist/types/setup/scenes/types.d.ts +8 -0
  57. package/dist/types/setup/scenes/updates.d.ts +6 -0
  58. package/dist/types/setup/wizard.d.ts +7 -2
  59. package/dist/types/spinner-clock.d.ts +34 -0
  60. package/dist/types/status-line/component.d.ts +8 -4
  61. package/dist/types/status-line/host.d.ts +62 -0
  62. package/dist/types/status-line/index.d.ts +1 -0
  63. package/dist/types/status-line/prompt-cache.d.ts +14 -0
  64. package/dist/types/status-line/schema.d.ts +1 -1
  65. package/dist/types/status-line/startup.d.ts +6 -0
  66. package/dist/types/status-line/types.d.ts +8 -21
  67. package/dist/types/theme/schema.d.ts +28 -1
  68. package/dist/types/theme/symbols.d.ts +1 -1
  69. package/dist/types/theme/theme-class.d.ts +12 -2
  70. package/dist/types/theme/theme.d.ts +1 -1
  71. package/dist/types/theme/tui-adapters.d.ts +7 -0
  72. package/dist/types/thinking.d.ts +12 -0
  73. package/dist/types/tools/ask.d.ts +1 -1
  74. package/dist/types/tools/bash.d.ts +21 -0
  75. package/dist/types/tools/find.d.ts +9 -1
  76. package/dist/types/tools/grep.d.ts +2 -1
  77. package/dist/types/tools/grouped-file-output.d.ts +17 -0
  78. package/dist/types/tools/job-widget.d.ts +2 -2
  79. package/dist/types/tools/lsp.d.ts +4 -2
  80. package/dist/types/tools/native-view.d.ts +4 -0
  81. package/dist/types/tools/renderer.d.ts +9 -1
  82. package/dist/types/tools/shell-trace.d.ts +10 -0
  83. package/dist/types/tools/shell-viz-render.d.ts +6 -0
  84. package/dist/types/tools/shell-viz.d.ts +16 -0
  85. package/dist/types/tools/wait.d.ts +2 -2
  86. package/dist/types/tools/web-search-types.d.ts +1 -0
  87. package/dist/types/tools/write.d.ts +2 -0
  88. package/dist/types/tui.d.ts +15 -1
  89. package/package.json +15 -11
  90. package/src/apps/shell-visualizer.d.ts +24 -0
  91. package/src/apps/shell-visualizer.ts +167 -0
  92. package/src/autocomplete.d.ts +20 -0
  93. package/src/autocomplete.ts +14 -0
  94. package/src/chat/assistant-message.ts +11 -6
  95. package/src/chat/cache-invalidation-marker.d.ts +15 -7
  96. package/src/chat/cache-invalidation-marker.ts +18 -9
  97. package/src/chat/chat-transcript-builder.d.ts +5 -3
  98. package/src/chat/chat-transcript-builder.ts +16 -12
  99. package/src/chat/display-preferences.d.ts +2 -0
  100. package/src/chat/display-preferences.ts +3 -0
  101. package/src/chat/extension-types.d.ts +72 -1
  102. package/src/chat/extension-types.ts +74 -1
  103. package/src/chat/image-loading.d.ts +2 -2
  104. package/src/chat/image-loading.ts +2 -2
  105. package/src/chat/messages.d.ts +2 -3
  106. package/src/chat/messages.ts +3 -8
  107. package/src/chat/read-tool-group.d.ts +15 -2
  108. package/src/chat/read-tool-group.ts +201 -41
  109. package/src/chat/skill-message.d.ts +1 -0
  110. package/src/chat/skill-message.ts +4 -0
  111. package/src/chat/spotlight.d.ts +203 -0
  112. package/src/chat/spotlight.ts +460 -0
  113. package/src/chat/tool-execution.d.ts +26 -5
  114. package/src/chat/tool-execution.ts +360 -38
  115. package/src/chat/transcript-actions.d.ts +11 -0
  116. package/src/chat/transcript-actions.ts +13 -1
  117. package/src/chat/transcript-browser.d.ts +9 -0
  118. package/src/chat/transcript-browser.ts +18 -0
  119. package/src/chat/transcript-presentation.d.ts +164 -0
  120. package/src/chat/transcript-presentation.ts +642 -0
  121. package/src/chat/ttsr-notification.d.ts +25 -0
  122. package/src/chat/ttsr-notification.ts +5 -0
  123. package/src/chrome/message-frame.d.ts +2 -0
  124. package/src/chrome/message-frame.ts +7 -0
  125. package/src/chrome/message-notice.d.ts +58 -0
  126. package/src/chrome/transcript-container.d.ts +27 -6
  127. package/src/chrome/transcript-container.ts +317 -66
  128. package/src/components/editor.ts +25 -1
  129. package/src/components/loader.d.ts +0 -2
  130. package/src/components/loader.ts +30 -18
  131. package/src/components/markdown.d.ts +11 -1
  132. package/src/components/markdown.ts +41 -16
  133. package/src/components/settings-list.d.ts +12 -2
  134. package/src/components/settings-list.ts +29 -13
  135. package/src/frame-rate.d.ts +18 -0
  136. package/src/frame-rate.ts +36 -0
  137. package/src/hotkeys-markdown.ts +9 -2
  138. package/src/index.d.ts +3 -0
  139. package/src/index.ts +3 -0
  140. package/src/keybinding-matchers.d.ts +4 -1
  141. package/src/keybinding-matchers.ts +13 -12
  142. package/src/kitty-graphics.d.ts +1 -1
  143. package/src/kitty-graphics.ts +3 -2
  144. package/src/motion-effects.d.ts +10 -0
  145. package/src/motion-effects.ts +27 -0
  146. package/src/native/backend.ts +66 -7
  147. package/src/native/encode.d.ts +2 -0
  148. package/src/native/encode.ts +2 -0
  149. package/src/native/measure.d.ts +10 -0
  150. package/src/native/measure.ts +185 -0
  151. package/src/native/overlay.d.ts +1 -1
  152. package/src/native/overlay.ts +1 -1
  153. package/src/native/quiet.d.ts +5 -0
  154. package/src/native/quiet.ts +105 -0
  155. package/src/native/reconcile.d.ts +6 -1
  156. package/src/native/reconcile.ts +16 -10
  157. package/src/native/spans.d.ts +6 -0
  158. package/src/native/spans.ts +40 -0
  159. package/src/native/state.d.ts +4 -0
  160. package/src/native/state.ts +18 -0
  161. package/src/overlays/agent-hub.ts +15 -2
  162. package/src/overlays/ask-dialog.ts +1 -0
  163. package/src/overlays/btw-history-panel.ts +73 -6
  164. package/src/overlays/link-browser.ts +295 -0
  165. package/src/overlays/running-subagent-badge.ts +2 -9
  166. package/src/overlays/settings-defs.ts +1 -1
  167. package/src/overlays/settings-selector.ts +17 -3
  168. package/src/overlays/spotlight-sheet.ts +478 -0
  169. package/src/overlays/usage-dashboard.ts +6 -5
  170. package/src/prompt/composer-attachments.d.ts +5 -2
  171. package/src/prompt/composer-attachments.ts +6 -6
  172. package/src/prompt/composer-cache.ts +17 -16
  173. package/src/prompt/composer.ts +30 -123
  174. package/src/prompt/custom-editor.ts +17 -13
  175. package/src/prompt/gradient-highlight.d.ts +2 -2
  176. package/src/prompt/gradient-highlight.ts +5 -4
  177. package/src/prompt/magic-keywords.d.ts +2 -0
  178. package/src/prompt/magic-keywords.ts +4 -1
  179. package/src/prompt/model-mention-autocomplete.ts +73 -20
  180. package/src/prompt/model-mention-syntax.d.ts +6 -0
  181. package/src/prompt/model-mention-syntax.ts +9 -0
  182. package/src/prompt/prompt-action-autocomplete.ts +49 -33
  183. package/src/prompt/tips.txt +1 -0
  184. package/src/prompt/welcome.ts +104 -2
  185. package/src/render/extension-links.d.ts +0 -6
  186. package/src/render/extension-links.ts +0 -20
  187. package/src/render/index.d.ts +1 -0
  188. package/src/render/index.ts +1 -0
  189. package/src/render/link-hints.d.ts +78 -0
  190. package/src/render/link-hints.ts +299 -0
  191. package/src/render/render-utils.d.ts +0 -2
  192. package/src/render/render-utils.ts +0 -5
  193. package/src/setup/scenes/glyph.ts +1 -1
  194. package/src/setup/scenes/types.ts +8 -0
  195. package/src/setup/scenes/updates.ts +116 -0
  196. package/src/setup/wizard.ts +19 -8
  197. package/src/spinner-clock.d.ts +34 -0
  198. package/src/spinner-clock.ts +79 -0
  199. package/src/status-line/component.ts +145 -53
  200. package/src/status-line/host.ts +51 -0
  201. package/src/status-line/index.ts +1 -0
  202. package/src/status-line/presets.ts +3 -1
  203. package/src/status-line/prompt-cache.ts +154 -0
  204. package/src/status-line/schema.ts +1 -1
  205. package/src/status-line/segments.ts +33 -22
  206. package/src/status-line/startup.ts +22 -4
  207. package/src/status-line/types.ts +8 -22
  208. package/src/stdin-buffer.ts +89 -46
  209. package/src/terminal-capabilities.ts +3 -3
  210. package/src/terminal.ts +1 -8
  211. package/src/theme/loader.ts +3 -2
  212. package/src/theme/schema.d.ts +28 -1
  213. package/src/theme/schema.ts +30 -1
  214. package/src/theme/symbols.d.ts +1 -1
  215. package/src/theme/symbols.ts +15 -3
  216. package/src/theme/theme-class.d.ts +12 -2
  217. package/src/theme/theme-class.ts +23 -0
  218. package/src/theme/theme-schema.json +1 -1
  219. package/src/theme/theme.d.ts +1 -1
  220. package/src/theme/theme.ts +3 -7
  221. package/src/theme/tui-adapters.d.ts +7 -0
  222. package/src/theme/tui-adapters.ts +33 -1
  223. package/src/thinking.d.ts +12 -0
  224. package/src/thinking.ts +31 -0
  225. package/src/tools/ask.d.ts +1 -1
  226. package/src/tools/ask.ts +99 -38
  227. package/src/tools/ast-edit.ts +51 -32
  228. package/src/tools/ast-grep.ts +31 -19
  229. package/src/tools/bash.d.ts +21 -0
  230. package/src/tools/bash.ts +166 -24
  231. package/src/tools/find.d.ts +9 -1
  232. package/src/tools/find.ts +23 -2
  233. package/src/tools/grep.d.ts +2 -1
  234. package/src/tools/grep.ts +52 -36
  235. package/src/tools/grouped-file-output.d.ts +17 -0
  236. package/src/tools/grouped-file-output.ts +20 -2
  237. package/src/tools/job-widget.d.ts +2 -2
  238. package/src/tools/job-widget.ts +2 -2
  239. package/src/tools/lsp.d.ts +4 -2
  240. package/src/tools/lsp.ts +537 -642
  241. package/src/tools/native-view.d.ts +4 -0
  242. package/src/tools/native-view.ts +8 -2
  243. package/src/tools/renderer.d.ts +9 -1
  244. package/src/tools/renderer.ts +9 -1
  245. package/src/tools/shell-trace.d.ts +10 -0
  246. package/src/tools/shell-trace.ts +80 -0
  247. package/src/tools/shell-viz-render.d.ts +6 -0
  248. package/src/tools/shell-viz-render.ts +156 -0
  249. package/src/tools/shell-viz.d.ts +16 -0
  250. package/src/tools/shell-viz.ts +181 -0
  251. package/src/tools/streaming-output.ts +18 -8
  252. package/src/tools/wait.d.ts +2 -2
  253. package/src/tools/wait.ts +39 -34
  254. package/src/tools/web-search-types.d.ts +1 -0
  255. package/src/tools/web-search-types.ts +1 -0
  256. package/src/tools/write.d.ts +2 -0
  257. package/src/tools/write.ts +2 -0
  258. package/src/tui.d.ts +15 -1
  259. package/src/tui.ts +63 -6
  260. package/src/windows-input-mode.ts +7 -1
  261. package/dist/types/chat/collab-prompt-message.d.ts +0 -14
  262. package/dist/types/chrome/collab-qrcode.d.ts +0 -35
  263. package/src/chat/collab-prompt-message.d.ts +0 -14
  264. package/src/chat/collab-prompt-message.ts +0 -46
  265. package/src/chrome/collab-qrcode.ts +0 -99
package/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
- ## [1.4.11] - 2026-11-06
3
+ ## [1.4.13] - 2026-11-08
4
4
 
5
- - Released as part of Zeta 1.4.11; no package-specific user-visible changes.
5
+ - Released as part of Zeta 1.4.13.
6
6
 
7
7
  ## [9.4.0] - 2026-01-31
8
8
 
@@ -48,10 +48,6 @@
48
48
 
49
49
  ## [5.6.7] - 2026-01-18
50
50
 
51
- ### Added
52
-
53
- - Added configurable editor padding via `editorPaddingX` theme option
54
-
55
51
  ### Changed
56
52
 
57
53
  - Updated tab bar rendering to wrap text across multiple lines when content exceeds available width
@@ -96,26 +92,10 @@
96
92
 
97
93
  ## [3.20.0] - 2026-01-06
98
94
 
99
- ### Changed
100
-
101
- - Settings list descriptions now wrap to the available width instead of truncating
102
-
103
95
  ### Fixed
104
96
 
105
97
  - Fixed Shift+Enter detection in legacy terminals that send ESC+CR sequence
106
98
 
107
- ## [3.15.0] - 2026-01-05
108
-
109
- ### Added
110
-
111
- - Added `inputCursor` symbol for customizing the text input cursor character
112
-
113
- ## [3.9.1337] - 2026-01-04
114
-
115
- ### Changed
116
-
117
- - Changed Editor component to use proper box borders with vertical side borders instead of horizontal-only borders
118
-
119
99
  ## [1.500.0] - 2026-01-03
120
100
 
121
101
  ### Added
@@ -126,230 +106,44 @@
126
106
 
127
107
  Initial release under @oh-my-pi scope. See previous releases at [badlogic/pi-mono](https://github.com/badlogic/pi-mono).
128
108
 
129
- ## [1.4.10] - 2026-11-05
109
+ ## [1.4.12] - 2026-11-08
130
110
 
131
- - Released as part of Zeta 1.4.10; no package-specific user-visible changes.
111
+ - Synced with upstream OMP v18.18.0.
112
+ - Released as part of Zeta 1.4.12; no package-specific user-visible changes.
132
113
 
133
- ## [1.4.9] - 2026-11-03
114
+ ### Added
134
115
 
135
- - Synced with upstream OMP v18.16.0: composer predictions, status glyph changes, and TUI link handling.
116
+ - Added configurable editor padding via `editorPaddingX` theme option
117
+ - Added `inputCursor` symbol for customizing the text input cursor character
136
118
 
137
- ### Breaking Changes
119
+ ### Changed
138
120
 
139
- - Removed `KeyEventType` export from public API
140
- - `Editor` constructor now requires `TUI` as first parameter: `new Editor(tui, theme)`. This enables automatic vertical scrolling when content exceeds terminal height. ([#732](https://github.com/badlogic/pi-mono/issues/732))
141
- - Removed `Key` helper object from public API; use string literals like `"ctrl+c"` instead of `Key.ctrl("c")`
142
- - **Key detection functions removed**: All `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](https://github.com/badlogic/pi-mono/pull/405))
121
+ - Settings list descriptions now wrap to the available width instead of truncating
122
+ - Changed Editor component to use proper box borders with vertical side borders instead of horizontal-only borders
143
123
 
144
- ### Added
124
+ ### Fixed
145
125
 
146
- - Added `Alt+D` keybinding to delete words forward
147
- - Added `Ctrl+Y` keybinding to yank from kill ring
148
- - Added `waitForRender()` method to await pending renders
149
- - Added Focusable interface and hardware cursor marker support for IME positioning
150
- - Added support for shifted symbol keys in keybindings
151
- - Added `symbols` property to `EditorTheme`, `MarkdownTheme`, and `SelectListTheme` interfaces for component-level symbol customization
152
- - Overlay compositing via `TUI.showOverlay()` and `TUI.hideOverlay()` for `ctx.ui.custom()` with `{ overlay: true }`
153
- - Kitty keyboard protocol flag 2 support for key release events (`isKeyRelease()`, `isKeyRepeat()`, `KeyEventType`)
154
- - `setKittyProtocolActive()`, `isKittyProtocolActive()` for Kitty protocol state management
155
- - `kittyProtocolActive` property on Terminal interface to query Kitty protocol state
156
- - `Component.wantsKeyRelease` property to opt-in to key release events (default false)
157
- - Input component `onEscape` callback for handling escape key presses
158
- - Emergency terminal restore to prevent corrupted state on crashes
159
- - Overhauled UI with welcome screen and powerline footer
160
- - Theme-configurable HTML export colors
161
- - `ctx.ui.theme` getter for styling status text with theme colors
162
- - Added `PI_TUI_WRITE_LOG` environment variable to capture raw ANSI output for debugging
163
- - Added legacy Alt+letter handling and Alt+D delete word forward support in the editor keymap. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence))
164
- - `showOverlay()` now returns `OverlayHandle` with `hide()`, `setHidden(boolean)`, `isHidden()` for programmatic visibility control ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
165
- - New exported types: `OverlayAnchor`, `OverlayHandle`, `OverlayMargin`, `OverlayOptions`, `SizeValue` ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
166
- - `truncateToWidth()` now accepts optional `pad` parameter to pad result with spaces to exactly `maxWidth` ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
167
- - **Experimental:** Overlay compositing for `ctx.ui.custom()` with `{ overlay: true }` option ([#558](https://github.com/badlogic/pi-mono/pull/558) by [@nicobailon](https://github.com/nicobailon))
168
- - `EditorComponent` interface for custom editor implementations
169
- - `StdinBuffer` class to split batched stdin into individual sequences (adapted from [OpenTUI](https://github.com/anomalyco/opentui), MIT license)
170
- - `Editor.getExpandedText()` method that returns text with paste markers expanded to their actual content ([#444](https://github.com/badlogic/pi-mono/pull/444) by [@aliou](https://github.com/aliou))
171
- - Added mermaid block extraction and deduplication utilities (extractMermaidBlocks)
172
- - Added `Alt+Delete` as a delete-word-forward shortcut
173
- - Added configurable code block indentation for Markdown rendering
174
- - Added undo support in the editor via `Ctrl+-`.
175
- - Added configurable code block indentation for Markdown rendering.
176
- - Added `Alt+Delete` as a delete-word-forward shortcut.
177
- - Added `isPageUp()` and `isPageDown()` helper functions
178
- - Added `SizeValue` type for CSS-like overlay sizing (absolute or percentage strings like `"50%"`)
179
- - Added `OverlayHandle` interface with `hide()`, `setHidden()`, `isHidden()` methods for overlay visibility control
180
- - Added `visible` callback to `OverlayOptions` for dynamic visibility based on terminal dimensions
181
- - Added `pad` parameter to `truncateToWidth()` for padding result with spaces to exact width
182
- - `StdinBuffer` class to split batched stdin into individual sequences
183
- - Added `isCtrlY` helper function for detecting Ctrl+Y keyboard input
184
- - Added configurable editor keybindings with typed key identifiers and action matching
185
- - Added word-wrapped editor rendering for long lines
186
- - Added `getText()` method to Text component for retrieving current text content
187
- - Added `fullRedraws` readonly property to TUI class for tracking full screen redraws
188
- - Added `showHardwareCursor` getter and setter to control cursor visibility while keeping IME positioning active. ([#800](https://github.com/badlogic/pi-mono/pull/800) by [@ghoulr](https://github.com/ghoulr))
189
- - Added Emacs-style kill ring editing with yank and yank-pop keybindings. ([#810](https://github.com/badlogic/pi-mono/pull/810) by [@Perlence](https://github.com/Perlence))
190
- - `EditorOptions` with optional `paddingX` for horizontal content padding, plus `getPaddingX()`/`setPaddingX()` methods ([#791](https://github.com/badlogic/pi-mono/pull/791) by [@ferologics](https://github.com/ferologics))
191
- - Expanded keymap coverage for terminal compatibility: added support for Home/End keys in tmux, additional modifier combinations, and improved key sequence parsing ([#752](https://github.com/badlogic/pi-mono/pull/752) by [@richardgill](https://github.com/richardgill))
192
- - `OverlayOptions.visible` callback for responsive overlays - receives terminal dimensions, return false to hide ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
193
- - `pageUp` and `pageDown` key support with `selectPageUp`/`selectPageDown` editor actions ([#662](https://github.com/badlogic/pi-mono/pull/662) by [@aliou](https://github.com/aliou))
194
- - `fuzzyFilter()` and `fuzzyMatch()` utilities for fuzzy text matching
195
- - Slash command autocomplete now uses fuzzy matching instead of prefix matching
196
- - Added setAutocompleteMaxVisible() configuration (3-20 items)
197
- - Added image detection to terminal capabilities (containsImage method)
198
- - Added stdin monitoring to detect stalled input events and log warnings
199
- - Added `pageUp` and `pageDown` key support with `selectPageUp`/`selectPageDown` editor actions
200
- - Add `getExpandedText()` to editor for expanding paste markers
201
- - Added `SymbolTheme` interface for customizing UI symbols including cursors, borders, spinners, and box-drawing characters
202
- - Added support for custom spinner frames in the Loader component
203
- - Added `setTopBorder()` method to Editor component for displaying custom status content in the top border
204
- - Added `getWidth()` method to TUI class for retrieving terminal width
205
- - Added rounded corner box-drawing characters to Editor component borders
206
- - Added legacy terminal support for Ctrl+symbol keys (Ctrl+\, Ctrl+], Ctrl+-) and their Ctrl+Alt variants. ([#831](https://github.com/badlogic/pi-mono/pull/831) by [@Perlence](https://github.com/Perlence))
207
- - Kitty keyboard protocol flag 2 support for key release events. New exports: `isKeyRelease(data)`, `isKeyRepeat(data)`, `KeyEventType` type. Terminals supporting Kitty protocol (Kitty, Ghostty, WezTerm) now send proper key-up events.
208
- - `SettingsListOptions` with `enableSearch` for fuzzy filtering in `SettingsList` ([#643](https://github.com/badlogic/pi-mono/pull/643) by [@ninlds](https://github.com/ninlds))
209
- - `Editor.insertTextAtCursor(text)` method for programmatic text insertion ([#419](https://github.com/badlogic/pi-mono/issues/419))
210
- - `EditorKeybindingsManager` for configurable editor keybindings. Components now use `matchesKey()` and keybindings manager instead of individual `isXxx()` functions. ([#405](https://github.com/badlogic/pi-mono/pull/405) by [@hjanuschka](https://github.com/hjanuschka))
211
- - Symbol key support in keybinding system: `SymbolKey` type with 32 symbol keys, `Key` constants (e.g., `Key.backtick`, `Key.comma`), updated `matchesKey()` and `parseKey()` to handle symbol input ([#450](https://github.com/badlogic/pi-mono/pull/450) by [@kaofelix](https://github.com/kaofelix))
212
- - Editor now supports Page Up/Down keys (Fn+Up/Down on MacBook) for scrolling through large content ([#732](https://github.com/badlogic/pi-mono/issues/732))
213
- - Added terminal graphics encoding (iTerm2/Kitty) for mermaid diagrams with automatic width scaling
214
- - Added `setMaxHeight()` method to limit editor height with scrolling
215
- - Added Emacs-style kill ring for text deletion operations
216
- - Added `isCapsLock` helper function for detecting Caps Lock key press via Kitty protocol
217
- - TabBar component for horizontal tab navigation
218
- - `AssistantMessageComponent`'s native turn footer leads with a Copy icon (`zeta.turn.copy`) and a dot instead of the clock icon; it copies the answer's text and shows when the host handles transcript actions
219
- - Add backslash+enter newline fallback for terminals without Kitty protocol
220
- - `codeBlockIndent` property on `MarkdownTheme` to customize code block content indentation (default: 2 spaces) ([#855](https://github.com/badlogic/pi-mono/pull/855) by [@terrorobe](https://github.com/terrorobe))
221
- - Added Alt+Delete as hotkey for delete word forwards ([#878](https://github.com/badlogic/pi-mono/pull/878) by [@Perlence](https://github.com/Perlence))
126
+ - TUI now filters out key release events by default, preventing double-processing of keys in editors and other components
222
127
 
223
- ### Changed
128
+ ## [1.4.11] - 2026-11-06
224
129
 
225
- - Updated TypeScript configuration for better publish-time configuration handling with tsconfig.publish.json
226
- - `UserMessageComponent`'s native hover toolbar (`zeta.user.tools`) leads with Copy and Rewind icon buttons (`copy`, `rewind`) instead of text labels, then a dot and the time, like the turn usage footer
227
- - `ContextUsageView`'s native body (on terminals with `meter`) leads with the tokens used and the room left before auto-compaction, then one stacked bar ticked at the threshold, the breakdown as rows (`zeta.context.cat`, `.cat.free`, `.cat.buffer`: swatch, name, tokens, share; the exact count in the row's `title`) and the snapcompact estimate as labelled rows (`zeta.context.snap`); the blocks meter and legend `kv` are gone, and `contextUsageHead` no longer repeats the window size
228
- - `AskDialogComponent`'s native root is `zeta.editor.ask` (collapsed: `zeta.editor.ask.hidden`, the countdown, the question as `zeta.ask.summary`, Skip and Show): a chosen answer is the `accent`-toned row (a check also carries the check icon) instead of the highlighted one; multi-select Other… is `zeta.ask.other.check`; the question tabs check answered questions and say their keys in the strip's `title`; the countdown moves from the head to the action bar beside Hide; the preview is `zeta.ask.preview`; the Review tab leads with `zeta.ask.notice` and lists answers (`zeta.ask.answers`) by question name with inline code mono and no `(Recommended)` suffix; option descriptions run inline code mono, notes ride the row's detail as `em`; Submit/Next's tooltip names only Enter (and Space on a multi-select)
229
- - `MCPAddWizard`'s native sheet asks one question per step: a phase strip (`zeta.mcpAdd.progress` of `zeta.mcpAdd.phase`, toned done/current/upcoming and `neutral` when no auth was needed), the question and its lead (`zeta.mcpAdd.title`, `zeta.mcpAdd.tag` for optional fields, `zeta.mcpAdd.lead`), then a mono field with a placeholder and its rule or refusal (`zeta.mcpAdd.field`, `tone: "error"`; `zeta.mcpAdd.note`), choice rows with icons and mono tags (`zeta.mcpAdd.choices`), status lines (`zeta.mcpAdd.status`, `zeta.mcpAdd.checks`, `zeta.mcpAdd.error`) or the review rows (`zeta.mcpAdd.summary`). Cancel, Back and Continue / Save server buttons run Ctrl+C, Esc and Enter instead of a key-hint strip. The connection test shows its own busy step, the OAuth client secret field is masked, and the review saves on Enter (no Yes/No choice)
230
- - `ReportPanel`'s native body carries the role `zeta.report.body`
231
- - `HookInputComponent` describes a dock sheet (`zeta.overlay.hook-input` col) like `HookEditorComponent`'s: the title's first line (`zeta.hook-input.title`, the countdown as `zeta.hook-input.timer`) over its further lines (`zeta.hook-input.detail`), the field (`zeta.hook-input.field`, `tone: "error"` while a submit was refused) with its placeholder, and Cancel / Submit buttons that run Esc / Enter; the key legend under the field is terminal-only
232
- - `JobsSheet`'s native body is a master–detail split (`zeta.jobs.split`: `zeta.jobs.master` | `zeta.jobs.detail`): the job list grouped Running / Recent (`zeta.jobs.group` labels), each row a type icon tinted by status with its duration, beside the selected job's status pill, live elapsed and Cancel job (`zeta.jobs.status`), its task title or command (`zeta.jobs.title` / `zeta.jobs.command`), facts (`zeta.jobs.facts`: agent, directory, pids, exit code, artifact) and output (`zeta.jobs.out`, `zeta.jobs.nooutput`); the footer counts running and recent jobs (`zeta.jobs.summary`), and no jobs shows an empty state (`zeta.jobs.empty`). Task jobs no longer draw an `agent` node here
233
- - `BtwHistoryPanel`'s native sheet is centered and reads like a mail reader: the questions as two-line rows (`zeta.btw.history`, list `zeta.btw.list` / `zeta.btw.list.idle` while the answer has the keys) beside the selected thread (`zeta.btw.reader` › `zeta.btw.thread` › `zeta.btw.turn`: `zeta.btw.question` / `zeta.btw.followup`, `zeta.btw.meta`, `zeta.btw.answer`, `zeta.btw.error`), the follow-up field under the last answer (`zeta.btw.composer`), and footer buttons Stop answer, Copy answer, Close and Follow up (Cancel and Send while composing) in place of the focus labels and key-hint strip; an empty history is an `md` sheet (`zeta.btw.empty`)
234
- - The `wait` tool's native job rows (`zeta.wait.job`) are a single `row`: badge, id and label, progress and clock, without the output preview or capture notice beneath
235
- - The native bash run foot reads In background with a live clock (`zeta.run.time` without `stopped`) while a parked job's frames stream (`details.async.state === "running"`, partial), instead of Running
236
- - Moved `wrapTextWithAnsi` export to `@linxiraos/pi-natives` package
237
- - Default editor `newLine` binding now uses `shift+enter` only
238
- - Hardware cursor is now disabled by default for better terminal compatibility. Set `PI_HARDWARE_CURSOR=1` to enable (replaces `PI_NO_HARDWARE_CURSOR=1` which disabled it).
239
- - Migrated key parsing and matching logic to native implementation for improved performance
240
- - Simplified `isKeyRelease()` and `isKeyRepeat()` to use regex pattern matching instead of string inclusion checks
241
- - Refactored `visibleWidth` function to use caching wrapper around new `visibleWidthRaw` implementation for improved performance
242
- - Improved performance of key ID parsing with optimized cache lookup strategy
243
- - Simplified `visibleWidth` calculation to use consistent Bun.stringWidth approach for all string lengths
244
- - Replaced external `fd` binary with native fuzzy path search for `@`-prefixed autocomplete
245
- - Restructured terminal capabilities from interface-based to class-based model
246
- - Improved table column width calculation with word-aware wrapping
247
- - Refactored text utilities to use native WASM implementations for strings >256 chars with JS fast path
248
- - Added Ctrl+Backspace as a delete-word-backward keybinding and improved modified backspace matching
249
- - Migrated file system operations from synchronous to asynchronous APIs in autocomplete provider for non-blocking I/O
250
- - Migrated node module imports from named to namespace imports across all packages for consistency with project guidelines
251
- - Normalized keybinding definitions to lowercase internally
252
- - Improved fuzzy matching to handle alphanumeric swaps.
253
- - Normalized keybinding definitions to lowercase internally.
254
- - Changed `showOverlay()` to return `OverlayHandle` for controlling overlay visibility
255
- - Removed `widthPercent`, `maxHeightPercent`, `rowPercent`, `colPercent` from `OverlayOptions` (use percentage strings instead)
256
- - Improved file autocomplete to show directory listing when typing `@` with no query, and fall back to prefix matching when fuzzy search returns no results
257
- - Terminal startup now queries Kitty protocol support before enabling event reporting
258
- - Changed cursor style from block to thin blinking bar (▏) at end of line
259
- - Editor component now uses word wrapping instead of character-level wrapping for better readability ([#382](https://github.com/badlogic/pi-mono/pull/382) by [@nickseelert](https://github.com/nickseelert))
260
- - Renamed `EllipsisKind` enum to `Ellipsis` for clearer API naming
261
- - Changed hardcoded ellipsis character from theme-configurable to literal "…" in editor truncation
262
- - Improved blockquote rendering with text wrapping in Markdown component
263
- - Expanded Kitty keyboard protocol coverage for non-Latin layouts and legacy Alt sequences
264
- - Improved cursor positioning with safer bounds checking
265
- - Updated editor layout to respect configurable padding
266
- - Refactored scrolling logic for better viewport management
267
- - Key detection refactored: consolidated `is*()` functions into generic `matchesKey(data, keyId)` function that accepts key identifiers like `"ctrl+c"`, `"shift+enter"`, `"alt+left"`, etc.
268
- - Forked to @oh-my-pi scope with unified versioning across all packages
269
- - Fuzzy matching now scores consecutive matches higher and penalizes gaps more heavily for better relevance ([#860](https://github.com/badlogic/pi-mono/pull/860) by [@mitsuhiko](https://github.com/mitsuhiko))
270
- - Improved fuzzy file search performance by using native implementation instead of spawning external process
130
+ - Released as part of Zeta 1.4.11; no package-specific user-visible changes.
271
131
 
272
- ### Fixed
132
+ ## [1.4.10] - 2026-11-05
273
133
 
274
- - Crash on Unicode format characters in `visibleWidth()`
275
- - Markdown code block syntax highlighting
276
- - Fixed width overflow protection in overlay compositing to prevent TUI crashes
277
- - Key presses no longer dropped when batched with other events over SSH
278
- - Fixed `fd` tool detection to automatically find `fd` or `fdfind` in PATH when not explicitly configured
279
- - Fixed editor multi-line insertion handling and lastAction tracking ([#945](https://github.com/badlogic/pi-mono/pull/945) by [@Perlence](https://github.com/Perlence))
280
- - Fixed editor word wrapping to reserve a cursor column ([#934](https://github.com/badlogic/pi-mono/pull/934) by [@Perlence](https://github.com/Perlence))
281
- - Fixed editor word wrapping to use single-pass backtracking for whitespace handling ([#924](https://github.com/badlogic/pi-mono/pull/924) by [@Perlence](https://github.com/Perlence))
282
- - Fixed Kitty image ID allocation and cleanup to prevent image ID collisions between modules
283
- - Fixed viewport tracking and cursor positioning for overlays and content shrink scenarios
284
- - Autocomplete now allows searches with `/` characters (e.g., `folder1/folder2`) ([#882](https://github.com/badlogic/pi-mono/pull/882) by [@richardgill](https://github.com/richardgill))
285
- - Directory completions for `@` file attachments no longer add trailing space, allowing continued autocomplete into subdirectories
286
- - `visibleWidth()` and `extractAnsiCode()` now handle APC escape sequences (`ESC _ ... BEL`), fixing width calculation and string slicing for strings containing cursor markers
287
- - SelectList now handles multi-line descriptions by replacing newlines with spaces ([#728](https://github.com/badlogic/pi-mono/pull/728) by [@richardgill](https://github.com/richardgill))
288
- - Reset ANSI styles after each rendered line to prevent style leakage
289
- - Cursor position tracking when content shrinks with unchanged remaining lines
290
- - TUI renders with wrong dimensions after suspend/resume if terminal was resized while suspended ([#599](https://github.com/badlogic/pi-mono/issues/599))
291
- - Pasted content containing Kitty key release patterns (e.g., `:3F` in MAC addresses) was incorrectly filtered out ([#623](https://github.com/badlogic/pi-mono/pull/623) by [@ogulcancelik](https://github.com/ogulcancelik))
292
- - `visibleWidth()` now strips OSC 8 hyperlink sequences, fixing text wrapping for clickable links ([#396](https://github.com/badlogic/pi-mono/pull/396) by [@Cursivez](https://github.com/Cursivez))
293
-
294
- Older entries are archived in [packages/tui/CHANGELOG.md@9caccab691ce](https://github.com/can1357/oh-my-pi/blob/9caccab691ce575007f4b6bcbaf8f944723d5457/packages/tui/CHANGELOG.md).
295
- Older entries are archived in [packages/tui/CHANGELOG.md@58141d4e5fa8](https://github.com/can1357/oh-my-pi/blob/58141d4e5fa892166024e2168866c45e0baacde3/packages/tui/CHANGELOG.md).
296
- - Corrected editor end-of-line cursor rendering assertion to use includes() instead of endsWith()
297
- - Fixed potential errors during emergency terminal restore when terminal is already dead
298
- - Fixed autocomplete race condition by tracking request ID to prevent stale suggestion results
299
- - Added legacy terminal support for `Ctrl+` symbol key combinations
300
- - Added legacy terminal support for `Ctrl+` symbol key combinations.
301
- - Fixed backspace handling with additional codepoint support
302
- - Fixed Alt+letter key combinations for better recognition
303
- - TUI now filters out key release events by default, preventing double-processing of keys
304
- - `matchesKey()` now correctly matches Kitty protocol sequences for unmodified letter keys
305
- - Crash when pasting text with trailing whitespace exceeding terminal width through Markdown rendering
306
- - Slash command menu now only triggers when the editor input is otherwise empty ([#904](https://github.com/badlogic/pi-mono/issues/904))
307
- - Center-anchored overlays now stay vertically centered when resizing the terminal taller after a shrink ([#950](https://github.com/badlogic/pi-mono/pull/950) by [@nicobailon](https://github.com/nicobailon))
308
- - Shift+Space, Shift+Backspace, and Shift+Delete now work correctly in Kitty-protocol terminals (Kitty, WezTerm, etc.) instead of being silently ignored ([#411](https://github.com/badlogic/pi-mono/pull/411) by [@nathyong](https://github.com/nathyong))
309
- - Improved Kitty terminal key sequence parsing to correctly handle text field codepoints in CSI-u sequences
310
- - Fixed handling of private use Unicode codepoints (U+E000 to U+F8FF) in Kitty key decoding to prevent invalid character interpretation
311
- - Simplified terminal write error handling to mark terminal as dead on any write failure
312
- - Fixed multi-line strings in renderOutputBlock causing width overflow
313
- - Fixed slash command autocomplete applying stale completion when typing quickly
314
- - Reserved cursor space for zero padding and corrected end-of-line cursor rendering to prevent wrap glitches
315
- - Fixed viewport tracking after partial renders to prevent autocomplete list artifacts
316
- - Rendering optimizations: only re-render changed lines
317
- - Refactor input component to use keybindings manager
318
- - Fixed editor cursor blinking by allowing terminal cursor positioning when enabled.
319
- - Editor no longer corrupts terminal display when text exceeds screen height. Content now scrolls vertically with indicators showing lines above/below the viewport. Max height is 30% of terminal (minimum 5 lines). ([#732](https://github.com/badlogic/pi-mono/issues/732))
320
- - Cursor now moves to end of content on exit, preventing status line from being overwritten ([#629](https://github.com/badlogic/pi-mono/pull/629) by [@tallshort](https://github.com/tallshort))
321
- - Slash command autocomplete now triggers for commands starting with `.`, `-`, or `_` (e.g., `/.land`, `/-foo`) ([#422](https://github.com/badlogic/pi-mono/issues/422))
322
- - Numbered list items showing "1." for all items when code blocks break list continuity ([#660](https://github.com/badlogic/pi-mono/pull/660) by [@ogulcancelik](https://github.com/ogulcancelik))
323
- - Reduced flicker by only re-rendering changed lines ([#617](https://github.com/badlogic/pi-mono/pull/617) by [@ogulcancelik](https://github.com/ogulcancelik))
324
- - Crash when pasting text with trailing whitespace exceeding terminal width through Markdown rendering ([#457](https://github.com/badlogic/pi-mono/pull/457) by [@robinwander](https://github.com/robinwander))
325
- - Fixed rendering issues on Windows by preventing re-entrant renders
326
- - Remove Kitty protocol query timeout that caused shift+enter delays
327
- - Add bracketed paste check to prevent false key release/repeat detection
328
- - Strip OSC 8 hyperlink sequences in `visibleWidth()`
329
- - Remove trailing space padding from Text, Markdown, and TruncatedText components when no background color is set (fixes copied text including unwanted whitespace)
330
- - Fixed Ctrl+Enter sequences to insert new lines in the editor
331
- - Fixed appended lines not being committed to scrollback, causing earlier content to be overwritten when viewport fills ([#954](https://github.com/badlogic/pi-mono/issues/954))
332
- - Autolinked emails no longer display redundant `(mailto:...)` suffix in markdown output ([#888](https://github.com/badlogic/pi-mono/pull/888) by [@terrorobe](https://github.com/terrorobe))
333
- - `matchesKey()` now correctly matches Kitty protocol sequences for unmodified letter keys (needed for key release events)
334
- - Key presses no longer dropped when batched with other events over SSH ([#538](https://github.com/badlogic/pi-mono/pull/538))
134
+ - Released as part of Zeta 1.4.10; no package-specific user-visible changes.
335
135
 
336
- ### Removed
136
+ ## [1.4.9] - 2026-11-03
337
137
 
338
- - The welcome/splash brand art is now generated with the standard FIGlet tool instead of being drawn by hand: `ZETA_LOGO` renders the mark `Z` (the ASCII form of `Ζ`), `ZETA_WORDMARK` renders `Zeta` (both in the standard `ANSI Shadow` font) and `ZETA_SUBLINE` renders the `Linxira-Zeta` identity line in `mini`, with the version under the wordmark. `bun scripts/brand/generate-logo-art.ts` regenerates the three constants from the vendored fonts, and the brand guard fails on any hand-edited glyph.
339
- - Removed `ellipsis` property from `SymbolTheme` interface
340
- - Removed `extractAnsiCode` function from public API
341
- - Removed TUI layout engine exports from public API (BoxNode, ColumnNode, LayoutNode, etc.)
342
- - Removed `visibleWidth` benchmark file in favor of Kitty sequence benchmarking
343
- - Removed `truncateToWidth`, `sliceWithWidth`, and `extractSegments` functions from public API (now re-exported directly from @linxiraos/pi-natives)
344
- - `SingleResult` (and the task tool's settled payload) carries the failure diagnostics an agent-driven model switch needs: optional `failureClass` (`usage-limit` / `auth` / `account-policy` / `context-overflow` / `transient` / `aborted` / `unknown`), optional `fallbackCandidates` (other selectors this session could run), and optional `modelChange` (`{ source: "spawn-param" | "wake-param", from?, to }`) recording that a caller-supplied model replaced the default one. All three stay absent unless a run actually reports them.
138
+ - Synced with upstream OMP v18.18.0.
345
139
 
346
140
  ## [1.4.7] - 2026-10-30
347
141
 
348
- - Synced with upstream OMP v18.14.0; no package-specific user-visible changes.
142
+ - Synced with upstream OMP v18.18.0.
349
143
 
350
144
  ## [1.4.5] - 2026-10-28
351
145
 
352
- - Synced with upstream OMP v18.13.2: `/context` is now a context viewer (overview + detail); the legacy grid renderer is gone.
146
+ - Synced with upstream OMP v18.18.0.
353
147
 
354
148
  ## [1.4.4] - 2026-10-26
355
149
 
@@ -571,12 +365,6 @@ Older entries are archived in [packages/tui/CHANGELOG.md@58141d4e5fa8](https://g
571
365
 
572
366
  - Overlay compositing crash when rendered lines exceed terminal width due to complex ANSI/OSC sequences (e.g., hyperlinks in subagent output) ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))
573
367
 
574
- ## [0.37.8] - 2026-01-07
575
-
576
- ### Fixed
577
-
578
- - TUI now filters out key release events by default, preventing double-processing of keys in editors and other components
579
-
580
368
  ## [0.31.1] - 2026-01-02
581
369
 
582
370
  Older entries are archived in [packages/tui/CHANGELOG.md@fa14205f838f](https://github.com/can1357/oh-my-pi/blob/fa14205f838f282fcea048c64fca74026789a492/packages/tui/CHANGELOG.md).
@@ -587,3 +375,12 @@ Older entries are archived in [packages/tui/CHANGELOG.md@89ad0a77d575](https://g
587
375
  - Fixed TUI shutdown leaving paint-time terminal state and Kitty image data behind by restoring synchronized-output/autowrap modes and purging all transmitted Kitty image ids on stop.
588
376
  - Fixed stdin buffering splitting surrogate-pair text into UTF-16 halves and reduced timing sensitivity for incomplete escape sequences.
589
377
  - Fixed terminal content not reflowing after a resize on terminals using DEC 2048 in-band resize (kitty/Ghostty/iTerm2/WezTerm). `ProcessTerminal.columns`/`rows` returned the last cached in-band report even after the OS already knew the new size, so a SIGWINCH whose in-band report was dropped or malformed (split past the stdin flush window, `:`-subparameter fields) re-rendered the whole transcript at the stale width. OS resize events now reconcile cached in-band geometry against the live `process.stdout` dimensions, dropping a stale cached value so the next render uses the true size; a valid in-band report still re-seeds pixel sizing.
378
+ - Fixed focus-changing in-place menus leaving stale Working/menu rows and parking the hardware cursor in the old menu viewport on terminals without a scroll-position oracle.
379
+ - Fixed redundant terminal cursor updates so repeated renders that do not change the cursor row, column, or visibility no longer emit ANSI move/hide sequences
380
+ - Fixed repeated cursor updates during no-op re-renders by reusing the last known cursor state, preventing unnecessary cursor position changes and hide/show sequences
381
+ - Fixed the kitty keyboard progressive-enhancement probe to honor the `CSI ? <flags> u` reply even when the terminal answers the DA1 sentinel first. Previously the kitty reply was discarded once the DA1-driven `modifyOtherKeys` fallback engaged, so terminals like Superset/xterm-on-Electron stayed on the fallback and delivered Shift+Enter as a bare `\r` ([#2042](https://github.com/can1357/oh-my-pi/issues/2042)).
382
+ - Bounded TUI line fitting for oversized raw rows so ANSI-heavy subagent output and zero-width-heavy text cannot grow render buffers independently of the viewport or hide visible suffix text ([#2045](https://github.com/can1357/oh-my-pi/issues/2045)).
383
+ - Fixed tmux offscreen-shrink frames to skip repainting when the visible tail is unchanged, avoiding intermittent blank/refresh flashes in pane terminals ([#2046](https://github.com/can1357/oh-my-pi/issues/2046)).
384
+ - Fixed Windows ConPTY hosts (Windows Terminal, Tabby, Hyper, VS Code) parking the viewport at the top of a full paint after a `/resume` or any long-session repaint. `ProcessTerminal#safeWrite` now splits oversized writes into ≤ 8 KiB pieces at line boundaries on `win32` and inside WSL (where stdout still crosses ConPTY at the `wslhost` boundary) so each underlying `WriteFile` stays below the ~32 KiB threshold where ConPTY stops tracking the cursor; the data was always delivered, but the host UI's scroll position would not follow until any focus event forced a re-query. ([#2034](https://github.com/can1357/oh-my-pi/issues/2034))
385
+
386
+ Older entries are archived in [packages/tui/CHANGELOG.md@bdbb5c920f69](https://github.com/can1357/oh-my-pi/blob/bdbb5c920f693caff287c50996c116e42e37992b/packages/tui/CHANGELOG.md).
package/README.md CHANGED
@@ -318,7 +318,7 @@ Renders markdown with syntax highlighting and theming support.
318
318
 
319
319
  ```typescript
320
320
  interface MarkdownTheme {
321
- heading: (text: string) => string;
321
+ heading: (text: string, depth: number) => string; // depth 1–6
322
322
  link: (text: string) => string;
323
323
  linkUrl: (text: string) => string;
324
324
  code: (text: string) => string;
@@ -332,6 +332,9 @@ interface MarkdownTheme {
332
332
  italic: (text: string) => string;
333
333
  strikethrough: (text: string) => string;
334
334
  underline: (text: string) => string;
335
+ strong?: (text: string) => string; // **strong**; defaults to bold
336
+ emphasis?: (text: string) => string; // *emphasis*; defaults to italic
337
+ tableHeader?: (text: string) => string; // defaults to bold
335
338
  highlightCode?: (code: string, lang?: string) => string[];
336
339
  symbols: SymbolTheme;
337
340
  }
@@ -20,7 +20,7 @@ Forked application trees:
20
20
  | Path | Upstream | Snapshot | License | What Zeta changed |
21
21
  |---|---|---|---|---|
22
22
  | `packages/ main/ crates/ python/ lsp/ sdk/ types/ skills/` | oh-my-pi (OMP), https://github.com/can1357/oh-my-pi | integrated through tag `v18.15.0` (`document/upstream-sync.md`) | see upstream files | product name, paths, command names and env prefixes; branded assets; internal identifiers renamed to `__zeta*` |
23
- | `web-ui/` | OMP Web, https://github.com/17380936778/omp-web | frozen snapshot + manual cherry-picks (`document/upstream-sync.md`) | see upstream files | gateway transport, theme token bridge, page routing |
23
+ | `web-ui/` | OMP Web, https://github.com/17380936778/omp-web | frozen snapshot, **abandoned 2026-11-05** (`document/upstream-sync.md`) | see upstream files | third-party UI, not maintained by Zeta: frozen as received, no builds, no fixes; the product renderer is `web-app/` (`Differences from Upstream` in README) |
24
24
  | `web-app/` (`src/studio`, `src/vendor/*`) | OMP Studio 0.1.17, https://github.com/the-snowpear/omp-studio | `0.1.17`, ported into the product renderer | MIT | maintained by Zeta now: the host contract is reimplemented in `studio-host` (pair/CSRF/query/command/events), the renderer was rebranded (`zeta-studio` wire name, Zeta links/fixtures), and Zeta adds windowed transcripts, precompressed static serving, the plugin registry, and the usage dashboard |
25
25
  | `termide/` | TermIDE, https://github.com/termide/termide | tag `0.46.0` = `a027ca788cd4c9d24f060cdcd3195ca2e475617b` | MIT | deviations listed in `termide/VENDOR.md` (28 entries) |
26
26
  | `editor/npm/*` (`@linxiraos/editor*`) | TermIDE `panel-editor` | same tree as `termide/` | MIT | built as the editor-only bin `termide-editor` (`editor/npm/editor/VENDOR.md`) |
@@ -44,10 +44,9 @@ Brand and assets:
44
44
  Frozen counterpart constants (interoperability, not branding):
45
45
 
46
46
  * Stencil OIDC `client-id "omp"`, its issuer and scopes; `catalog.stencil.so`;
47
- `docs.stencil.so/tern/protocol/`; `my.omp.sh` as the collaboration relay
48
- constant; the `__omp_judgment_images` upload key. These are wire-compatible
49
- identifiers Zeta must keep, listed here so that a brand sweep does not break
50
- them.
47
+ `docs.stencil.so/tern/protocol/`; the `__omp_judgment_images` upload key.
48
+ These are wire-compatible identifiers Zeta must keep, listed here so that a
49
+ brand sweep does not break them.
51
50
 
52
51
  PYTHON DEPENDENCY DISTRIBUTION ROLE
53
52
  ===================================
@@ -0,0 +1,24 @@
1
+ import type { ShellVizPresentation } from "@linxiraos/pi-wire";
2
+ import type { DescribeContext, NativeNode, NativeUiEvent } from "../native/node.js";
3
+ import type { Component } from "../tui.js";
4
+ /** Focused inspector host; state and replay timers remain owned by the transcript tool call. */
5
+ export interface ShellVisualizerHost {
6
+ presentation(): ShellVizPresentation | undefined;
7
+ replayEpoch(): number;
8
+ liveOrigin(): boolean;
9
+ action(value: string): void;
10
+ close(): void;
11
+ requestRender(): void;
12
+ height(): number;
13
+ }
14
+ /** Keyboard and native inspector for the exact presentation shown in the transcript. */
15
+ export declare class ShellVisualizer implements Component {
16
+ #private;
17
+ readonly host: ShellVisualizerHost;
18
+ constructor(host: ShellVisualizerHost);
19
+ invalidate(): void;
20
+ handleInput(data: string): void;
21
+ handleNativeEvent(event: NativeUiEvent): void;
22
+ describe(cx: DescribeContext): NativeNode;
23
+ render(width: number): string[];
24
+ }
@@ -47,6 +47,21 @@ export interface AutocompleteItem {
47
47
  descriptionMatch?: boolean;
48
48
  }
49
49
  type Awaitable<T> = T | Promise<T>;
50
+ /**
51
+ * `^` model mention completion at the cursor. `unhandled` means no mention token there, or
52
+ * another completion outranks it, so the async {@link AutocompleteProvider.getSuggestions} decides.
53
+ */
54
+ export type ModelMentionCompletion = {
55
+ kind: "unhandled";
56
+ } | {
57
+ kind: "no-match";
58
+ } | {
59
+ kind: "matched";
60
+ suggestions: {
61
+ items: AutocompleteItem[];
62
+ prefix: string;
63
+ };
64
+ };
50
65
  export interface SlashCommand {
51
66
  name: string;
52
67
  aliases?: string[];
@@ -94,6 +109,11 @@ export interface AutocompleteProvider {
94
109
  items: AutocompleteItem[];
95
110
  prefix: string;
96
111
  } | null;
112
+ /**
113
+ * Synchronously list `^` model mention completions for the token at the cursor, so a
114
+ * shown mention popup never lags the typed text.
115
+ */
116
+ trySyncModelMentionCompletion?(lines: string[], cursorLine: number, cursorCol: number): ModelMentionCompletion;
97
117
  /**
98
118
  * Synchronously try to expand text immediately before the cursor (no async I/O).
99
119
  * Called after every single-character insert. Implementations MUST cheaply
@@ -10,11 +10,16 @@ export interface CacheInvalidation {
10
10
  * reusing.
11
11
  *
12
12
  * The provider reports a warm prefix as `cacheRead`; a model/thinking/tool/
13
- * system-prompt change (or a history rewrite) breaks the prefix, so the next
14
- * request reads nothing from cache and re-pays for the whole prompt. We flag
13
+ * system-prompt change, a history rewrite or an expired entry breaks the
14
+ * prefix, so the next request re-pays for the prompt past the break. We flag
15
15
  * only the transition where a demonstrably warm cache goes cold: the previous
16
- * turn must have actually READ a meaningful prefix back, and this turn's
17
- * `cacheRead` collapsed to zero while it still reprocessed a non-trivial prompt.
16
+ * turn must have actually READ a meaningful prefix back, and this turn read
17
+ * back less than half of it while it still reprocessed a non-trivial prompt.
18
+ *
19
+ * A collapse need not reach zero: the leading system/tool block is shared with
20
+ * every concurrent session on the same prompt, which keeps it warm while this
21
+ * session's history expires, so a cold turn still reads that block (~15k
22
+ * tokens) back while re-writing hundreds of thousands behind it.
18
23
  *
19
24
  * Requiring a prior warm read is deliberate. A turn that merely WROTE the prefix
20
25
  * (`cacheRead` 0) has not proven the cache is live — that is the session's first
@@ -23,11 +28,14 @@ export interface CacheInvalidation {
23
28
  * call outliving the provider's 5-minute cache TTL surfaced a spurious "cache
24
29
  * miss" right under the opening message). It also collapses a run of consecutive
25
30
  * cold turns to the single marker at the moment the cache actually broke, instead
26
- * of repeating the banner on every turn while it re-warms.
31
+ * of repeating the banner on every turn while it re-warms. Measuring the loss
32
+ * against what the predecessor READ (not what it wrote) keeps both guarantees
33
+ * when only the shared block was warm: nothing proven live was lost.
27
34
  *
28
35
  * Returns `undefined` (no marker) for the first turn, turns whose predecessor
29
- * never read a warm prefix, tiny contexts, turns that reused any cache, and —
30
- * crucially — turns on providers with *implicit* best-effort caching. Only an
36
+ * never read a warm prefix, tiny contexts, turns that read back at least half
37
+ * of the predecessor's warm prefix, and — crucially — turns on providers with
38
+ * *implicit* best-effort caching. Only an
31
39
  * explicit, prefix-controlled cache (Anthropic / Bedrock `cache_control`)
32
40
  * re-creates the prefix on a cold turn (`cacheWrite > 0`); implicit caches
33
41
  * (Google / OpenAI / Fireworks) report `cacheWrite: 0` and drop `cacheRead` to
@@ -2,8 +2,8 @@
2
2
  * Builds transcript components from persisted session message entries — the
3
3
  * file/remote-backed counterpart to {@link UiHelpers.addMessageToChat} (which is
4
4
  * bound to the live InteractiveModeContext). Used by the fullscreen transcript
5
- * viewer ({@link AgentTranscriptViewer}) to render a parked subagent / advisor /
6
- * collab-guest transcript that has no live session.
5
+ * viewer ({@link AgentTranscriptViewer}) to render a parked subagent or advisor
6
+ * transcript that has no live session.
7
7
  *
8
8
  * Unlike incremental transcript sync, {@link ChatTranscriptBuilder.rebuild}
9
9
  * always discards prior components and rebuilds the whole transcript from the
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import type { AgentTool } from "@linxiraos/pi-agent-core";
15
15
  import { type TUI } from "../tui.js";
16
- import type { MessageRenderer } from "./extension-types.js";
16
+ import type { AssistantTextRenderer, MessageRenderer } from "./extension-types.js";
17
17
  import { type TranscriptEntryLike as TranscriptEntry } from "./transcript-entry.js";
18
18
  import { TranscriptContainer } from "../chrome/transcript-container.js";
19
19
  export interface ChatTranscriptBuilderDeps {
@@ -30,6 +30,8 @@ export interface ChatTranscriptBuilderDeps {
30
30
  linkTargets?: ReadonlyMap<string, string>;
31
31
  /** Draw charts under numeric tables; false for transcripts that are not the main session's. Default: true. */
32
32
  tableCharts?: boolean;
33
+ /** Extension assistant text renderers the replayed replies draw with, as the live transcript does. */
34
+ textRenderers?: readonly AssistantTextRenderer[];
33
35
  requestRender: () => void;
34
36
  }
35
37
  export declare class ChatTranscriptBuilder {
@@ -1,6 +1,8 @@
1
1
  /** Process-wide display preferences applied by the host settings hooks. */
2
2
  export interface ChatTranscriptDisplayPreferences {
3
3
  hideToolActivity: boolean;
4
+ /** Show the interactive shell execution visualization instead of the plain command. */
5
+ shellVisualization: boolean;
4
6
  readToolResultPreview: boolean;
5
7
  showImages: boolean;
6
8
  cacheMissMarker: boolean;
@@ -1,7 +1,10 @@
1
1
  import type { AssistantMessage } from "@linxiraos/pi-ai";
2
+ import type { TspText } from "@linxiraos/pi-wire";
2
3
  import type { Component, TUI } from "../tui.js";
3
4
  import type { Theme } from "../theme/theme.js";
4
- import type { CustomMessage, HookMessage } from "./messages.js";
5
+ import type { TodoItem } from "../tools/todo.js";
6
+ import type { BashExecutionMessage, CustomMessage, HookMessage, PythonExecutionMessage } from "./messages.js";
7
+ import type { NotificationRule } from "./ttsr-notification.js";
5
8
  export type ExtensionUiComponent = Component & {
6
9
  dispose?(): void;
7
10
  };
@@ -48,6 +51,74 @@ export interface AssistantTextRendering {
48
51
  /** Index in the full reply's `content` of this component's first block; a segment after a tool call starts past it. */
49
52
  contentOffset: number;
50
53
  }
54
+ /**
55
+ * One transcript block a {@link TranscriptPresenter} decides the display of. Later omp versions
56
+ * add block types; answer `undefined` for a `type` you do not know.
57
+ *
58
+ * - `toolCall`: a model tool call, `id` its `toolCallId`. `result` arrives with the call's first
59
+ * result frame; `isPartial` stays true while the call still streams progress.
60
+ * - `message`: a session message drawn as its own block, `id` the decimal `message.timestamp`
61
+ * (shared by messages recorded in the same millisecond).
62
+ * `custom` messages with `customType` `"advisor"`, `"skill-prompt"`, `"lsp-late-diagnostic"`,
63
+ * `"async-result"` or `"launch-completion"`, and `!`/`$` runs (`bashExecution`,
64
+ * `pythonExecution`). A `!`/`$` run still going has a provisional message and id; it is asked
65
+ * again with the recorded message once the session records the run. In Tern, late diagnostics
66
+ * an edit/write card takes are drawn with that card instead, so an `"lsp-late-diagnostic"`
67
+ * block appears only for the files no card took.
68
+ * - `event`: a TTSR rule hit or an incomplete-todo reminder, shaped like the extension event of
69
+ * the same `type`. These exist only in the session that raised them; `id` is unique per process.
70
+ *
71
+ * Read-only, and not a copy: `args`, `result`'s `content` and `details`, `message` and `event`
72
+ * are the live objects omp draws the block from, often the session's own message data. Never
73
+ * mutate them: the change would reach the block and possibly the session.
74
+ */
75
+ export type TranscriptBlock = {
76
+ readonly type: "toolCall";
77
+ readonly id: string;
78
+ readonly toolName: string;
79
+ readonly args: unknown;
80
+ readonly result?: {
81
+ readonly content: readonly unknown[];
82
+ readonly details?: unknown;
83
+ };
84
+ readonly isError: boolean;
85
+ readonly isPartial: boolean;
86
+ } | {
87
+ readonly type: "message";
88
+ readonly id: string;
89
+ readonly message: CustomMessage | BashExecutionMessage | PythonExecutionMessage;
90
+ } | {
91
+ readonly type: "event";
92
+ readonly id: string;
93
+ readonly event: {
94
+ readonly type: "ttsr_triggered";
95
+ readonly rules: readonly NotificationRule[];
96
+ } | {
97
+ readonly type: "todo_reminder";
98
+ readonly todos: readonly TodoItem[];
99
+ readonly attempt: number;
100
+ readonly maxAttempts: number;
101
+ };
102
+ };
103
+ /**
104
+ * How a transcript block is drawn: `undefined` defers to the next presenter (and, after the
105
+ * last, to `"full"`); `"full"` is omp's own card; `"hidden"` draws nothing, as hidden tool
106
+ * activity does; `"compact"` is one row from omp's own summary. `{ compact: { label, rows } }`
107
+ * replaces that row's text with `label` and adds one row per `rows` entry below it. Spans use the
108
+ * semantic tokens and theme colour names of {@link TspText}.
109
+ */
110
+ export type TranscriptPresentation = undefined | "full" | "hidden" | "compact" | {
111
+ readonly compact: {
112
+ readonly label?: TspText;
113
+ readonly rows?: readonly TspText[];
114
+ };
115
+ };
116
+ /**
117
+ * Display-only choice of how one transcript block is drawn. Presenters are asked in extension
118
+ * load order; the first answer other than `undefined` wins. A block the user expanded is always
119
+ * drawn in full.
120
+ */
121
+ export type TranscriptPresenter = (block: TranscriptBlock) => TranscriptPresentation;
51
122
  export interface HookMessageRenderOptions {
52
123
  /** Whether the view is expanded */
53
124
  expanded: boolean;