You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompt bounds beyond #85: GUI dialog text, total height and column width, display_banner #98
Part of #89. Found in the review of #85 (PR #93, finding C3: #93 (review)). These items were listed as out of scope in the approved plan for #85 and are filed together here.
1. GUI dialog text is unbounded and does not render plans
src/gui.rsformat_prompt_text prints pipeline_join(&req.pipeline) with no length bound, and does not render plan requests at all (the Command: field is empty). The zenity/kdialog path has no caller in the daemon today, but it should get the same clip as the TUI (and render plans) before it is wired in. (Pango markup handling in that path is a separate issue, #95.)
2. No total prompt-height budget; widths counted in chars, not columns
#85 bounds each line and caps the Steps: and Resolves: blocks, so the prompt has a constant maximum size, but that maximum (about 70 lines, plus wrapping at 80 columns) does not fit a 24-row terminal. Widths are also counted in chars: wide CJK glyphs take two columns, and tabs (allowed by has_dangerous_chars) can each expand to up to 8 columns, so a 160-char Steps: line of tabs can render about 1 280 columns. See the Sn4.3 residual in docs/assurance-case.md.
Possible direction: a total height budget that keeps Command: and the [y/N] question on screen, and width counting in terminal columns (with tabs expanded or rejected in displayed fields).
3. display_banner is unbounded
display_banner in src/tui.rs prints command_summary untruncated on the non-interactive banner. It is not the approval prompt, but the same clip (clip(…, MAX_DISPLAY_CMD_CHARS)) could apply there.
Activity
docs: clipped tail can hide redirections and group closers (#85)
docs: clipped tail can hide redirections and group closers (#85)