CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

文案展示不全

Open DingYong4223 opened this issue 6 months ago • 11 comments

Image 展示不全的地方,希望鼠标移动到上面能给完整提示

DingYong4223 avatar May 07 '26 08:05 DingYong4223

用/model命令选择模型的时候也有类似的问题

formp3 avatar May 07 '26 13:05 formp3

Confirmed this is still useful to track. v0.8.17 does not fully solve hover/full-text disclosure for clipped labels.

The likely fix should cover at least command menus and /model, since the same truncation pattern shows up there too. We should avoid only widening one table column; the better behavior is a consistent tooltip/detail surface for truncated cells in narrow terminals.

Hmbown avatar May 07 '26 19:05 Hmbown

Reviewed again for v0.8.18 and leaving this open.

The issue is real, but the safer fix is a shared clipped-cell detail/tooltip behavior across command menus and /model, not a one-off width tweak for a single screenshot. #1094 includes readability and scrollbar/viewport work, but it does not implement hover/full-text disclosure for clipped labels.

Hmbown avatar May 07 '26 20:05 Hmbown

Reviewed again for v0.8.18 and leaving this open.

The issue is real, but the safer fix is a shared clipped-cell detail/tooltip behavior across command menus and /model, not a one-off width tweak for a single screenshot. #1094 includes readability and scrollbar/viewport work, but it does not implement hover/full-text disclosure for clipped labels.

This issue occurs not only in the model and todos windows; if the text inside table cells in the chat window is excessively long, it will also get truncated. As a result, I have no choice but to ask the agent to output content in list format instead of a table every time.

AiurArtanis avatar May 09 '26 03:05 AiurArtanis

other similar issue: https://github.com/Hmbown/DeepSeek-TUI/issues/963

AiurArtanis avatar May 09 '26 03:05 AiurArtanis

Thank you!

Hmbown avatar May 09 '26 06:05 Hmbown

Release triage note: keeping this in v0.8.70 as clipped-cell / full-text disclosure validation. Some narrow-layout readability work may already have improved the old screenshots, but we still need to verify current behavior across command menus, model selection, todos, and chat tables. Before adding new UI work, identify any landed code or commits that already fixed the reported truncation. If the issue remains, the desired follow-up is a shared detail or tooltip surface rather than a one-off column-width tweak.

Hmbown avatar Jun 30 '26 20:06 Hmbown

Closing the loop on the verification the June note called for — here is what has actually landed, checked against the current tree (the project is CodeWhale now; binary codewhale, 0.9.1):

  • Sidebar Work/Tasks/Agents rows (the todos case from your screenshot): hovering a truncated row opens a bordered, wrapping popover with the full underlying text (0.8.54, #2694/#2734). That is the hover disclosure you originally asked for, on those surfaces.
  • CJK word-wrap landed in 0.8.61 via the sibling issue linked above (#963).
  • Chat tables (@AiurArtanis' case): markdown table cells now wrap inside their column instead of truncating with …, keeping separators on continuation rows — pinned by tests in crates/tui/src/tui/markdown_render.rs, so the ask-for-lists-instead-of-tables workaround should no longer be needed.
  • /model picker (@formp3's case): narrow rows drop secondary hint text before ever clipping the model id, and footers wrap instead of clipping (crates/tui/src/tui/model_picker.rs); 0.9.0 also enforced minimum modal sizes with wrapped action footers.

Not landed: one shared full-text disclosure for every clipped cell — slash-command menu rows, for instance, still have no hover popover. That shared surface is what this issue continues to track, queued in the v0.9.2 release lane.

Most useful thing now: on the current release, tell us which surface still clips for you — a screenshot plus your terminal size pins the remaining scope.


中文摘要:

  • 已落地:侧栏 Work/Tasks/Agents 行(即你截图的 todos 场景)悬停会弹出带边框、可换行的完整内容提示(0.8.54);中文按词换行 0.8.61(#963);对话里 Markdown 表格单元格改为列内换行、不再用 … 截断(有测试保障);/model 选择器窄屏时优先保住模型 id、底部操作栏改为换行。
  • 未落地:所有被截断单元格通用的「查看全文」机制(例如斜杠命令菜单行还没有悬停提示),本 issue 继续跟踪这一部分,已排入 v0.9.2 队列。
  • 请求:在当前版本(codewhale 0.9.1)里确认一下,哪个界面对你来说仍会截断——请附截图和终端尺寸,这样就能锁定剩余范围。

Generated by Claude Code

Hmbown avatar Jul 18 '26 21:07 Hmbown

Verified against main (474dfe6dc): not implemented — truncated labels still have no way to reveal the full text.

The relevant infrastructure does exist now, which makes this more actionable than when it was filed. crates/tui/src/tui/hover_layer.rs is a frame-scoped hover registry built on hover_hit primitives, and its own module doc says surfaces adopt it incrementally — it currently carries #![allow(dead_code)] precisely because most surfaces have not. So a "show the full string on hover when it was truncated" affordance has somewhere to live; nothing has wired the truncating call sites into it.

What makes this non-trivial rather than a one-liner: truncation happens in many independent places (sidebar rows, tool cards, path displays, footer chips), each doing its own width math and … cut. A tooltip that only covers one of them would look arbitrary. The useful version registers the pre-truncation string at the point the truncation decision is made, so any truncated cell can reveal itself.

Keeping this open. It is a real gap, the screenshot is clear, and the hover layer is the right home for it.

已确认此问题仍然存在。悬停基础设施(hover_layer.rs)已经就位,但截断文本的调用点还没有接入。难点在于截断逻辑分散在多个位置,需要在截断发生处登记完整字符串,而不是只修某一个界面。

Hmbown avatar Jul 26 '26 05:07 Hmbown

Re-verified against landed main (37a2efd02, after this session's merges of #4929 and #4904): still not implemented, and unchanged since the 2026-07-26 audit.

Symbol-level evidence, not commit messages:

  • crates/tui/src/tui/hover_layer.rs still opens with #![allow(dead_code)] // Public hover API; surfaces adopt pieces incrementally. — the frame-scoped hover registry exists but no truncating surface has been wired into it. git log --since=2026-07-26 -- crates/tui/src/tui/hover_layer.rs is empty.
  • No truncation call site consults a hover target to reveal the full string.

Proposed disposition: move to v0.9.3

This is a real, wanted enhancement — I am not arguing it away. But it is not a v0.9.2 acceptance slice, for reasons that are structural rather than schedule-driven:

  1. It is not one change. Truncation happens independently in sidebar rows, tool cards, path displays, and footer chips, each with its own width math. A credible fix is a cross-surface convention (truncating renderers register a hover target carrying the untruncated string), not a patch. That is a design decision about the hover layer's contract, which is precisely what its #![allow(dead_code)] marker is deferring.
  2. It overlaps #4785. The dead-code sweep owns the question of whether hover_layer gets adopted or retired. Landing a partial adoption during v0.9.2 would put the two lanes in conflict.
  3. The issue as filed has no bounded acceptance criteria — "展示不全的地方" is every truncating surface in the TUI. v0.9.2 closes on verifiable slices.

The parts of the original report that were bounded have already shipped and were documented above: sidebar hover popovers (0.8.54), CJK word-wrap (0.8.61), and wrapping markdown table cells. What remains is the general convention.

Moving to the v0.9.3 milestone. Reopen the argument here if you disagree — the milestone is the only thing changing, not the priority.

Hmbown avatar Jul 28 '26 00:07 Hmbown

Rescope after v0.9.3 release: v0.9.3 shipped (tag v0.9.3). This issue is no longer tracked against a released milestone.

Moved to v0.9.4 — user report — current train after 0.9.3 ship.

If this already landed in 0.9.3 and we missed it, comment and we will close.

Hmbown avatar Aug 03 '26 01:08 Hmbown