Skip to content

fix(tui): Correctly render summary text in TUI Wizard - #11

Merged
starpia-forge merged 1 commit into
mainfrom
fix-tui-wizard-summary-2794920446308396535
Mar 6, 2026
Merged

fix(tui): Correctly render summary text in TUI Wizard#11
starpia-forge merged 1 commit into
mainfrom
fix-tui-wizard-summary-2794920446308396535

Conversation

@starpia-forge

Copy link
Copy Markdown
Owner

Fixes the TUI Wizard to show all summary lines without truncating them, and fixes the left/right arrow keys bug on the Confirm step.


PR created automatically by Jules for task 2794920446308396535 started by @starpia-forge

The previous final step of the TUI wizard combined a multiline summary
into a single Confirm component's TitleFunc, causing truncation and preventing
navigation with left/right arrow keys due to how the bubbletea/huh Confirm
component behaves with large multiline text.

This patch refactors the final step by splitting the multiline summary into
a dedicated `huh.NewNote` component with `DescriptionFunc` that depends
on all user input references to ensure consistent re-rendering upon backward
navigation. The `huh.NewConfirm` is kept strictly for the input logic with
a short title.

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
@starpia-forge
starpia-forge merged commit 5859016 into main Mar 6, 2026
2 checks passed
@starpia-forge
starpia-forge deleted the fix-tui-wizard-summary-2794920446308396535 branch March 6, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant