Repository navigation
fix(tui): session list garbled on arrow-key navigation - #43
Merged
Merged
Conversation
Add Windows support for all three profile targets: - profile-agent / profile-quick: set RUSTFLAGS via cmd syntax; fix --config quoting for cmd compatibility; use PowerShell scripts with blondie (ETW CPU profiler) fallback - profile-heap: fix --config quoting; add ; use debug=2 on Windows for better backtrace capture New scripts: - scripts/agent-profile-bench.ps1: profile-agent runner using blondie for CPU flamegraph + gRPC load driving - scripts/profile-quick.ps1: profile-quick runner with blondie fallback (admin required for flamegraph) Unix/macOS paths are preserved unchanged in ifeq branches.
- compositeOverlays: two-pass render so overlay content is drawn at layout.width (was termW), preventing content from spilling out of the overlay box and mixing with background text - doRender: extract cursor position BEFORE overlay compositing so the editor cursor marker is never dropped, keeping hardwareCursorRow accurate for diff rendering (fixes rows written at wrong offsets) - SelectList: fill every row with a solid background color via applyBackgroundToLine so the overlay forms an opaque box and underlying chat text can't bleed through - SelectList overlays: pass explicit width (min(80, cols-4)) matching the model picker - session list/tree: description shows only 'current' for the active session, consistent with the model list
Collapse all whitespace runs (newlines, tabs, multiple spaces) into a single space and trim leading/trailing whitespace. Session names derived from multi-line first messages no longer break list layout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
TUI 中 ctrl+r 打开会话列表后,按上下键整个列表内容错乱(行偏移、内容叠写、底层文字透出)。
根因(3 个渲染 bug)
compositeOverlays用全终端宽度渲染组件,但覆盖层布局宽度默认只有 80 列,内容溢出盒子右边界extractCursorPosition在覆盖层合成之后执行,编辑器行的光标标记被extractSegments丢弃,cursorPos为 null,hardwareCursorRow追踪失准,diff 渲染时行写入位置偏移(表现为 AABD 式错位)修复
compositeOverlays两遍渲染:先测高,再用layout.width重渲染doRender:extractCursorPosition移到覆盖层合成之前SelectList:所有行通过applyBackgroundToLine填充背景色,覆盖层成为实心盒子min(80, cols-4),与模型选择器一致"current",与模型列表视觉一致验证
tsc --noEmit通过