Long input hints overflow horizontally (e.g. field-value hints on insert)
#12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Observed
A hint that doesn't fit on the available width simply runs off to the right. Field-value hints on
insert(simple mode) trigger this readily.Design call needed
Several options, not mutually exclusive:
Pedagogy-vs-screen-space tradeoff: hints help learners, but truncating the most useful bit defeats the purpose. Wrapping (option 1 or 3) is probably the right default; a length cap is a backstop, not a primary mechanism.
Fixed in
f7ca288.Root cause: the Hint panel was a fixed one content row. Long prose hints (field-value hints on
insert, theparse.usage.*synopses) wrapped but everything past the first line was clipped, hiding the most useful tail. The candidate-list path was already safe — it scrolls horizontally with</>markers.Fix (ADR-0022 Amendment 5):
…so overflow is signalled rather than silently dropped. (Verified: the worst-case 299-char synopsis → 3 rows + ellipsis at 80 cols, full 3 rows at 160 cols.)parse.usage.sql_create_tablewas a 299-char synopsis (~4× the next longest). It is now a terse one-liner; the full column- and table-level grammar remains inhelp.ddl.sql_create_table(reachable viahelp). The longinsert.form_b_*notes render in the scrollable Output panel, not the Hint panel, so they were left as-is.Covered by
long_prose_hint_shows_tail_across_multiple_rows,short_hint_keeps_panel_at_one_content_row(reclaim),long_hint_grows_panel_but_caps_at_max_rows,clamp_wrapped_truncates_with_ellipsis_past_max, plus six re-baselined full-screen snapshots.