Skip to content

v0.1.3 patch (already on main as efc2b9e)#21

Closed
akougkas wants to merge 1 commit intomainfrom
v0.1.3
Closed

v0.1.3 patch (already on main as efc2b9e)#21
akougkas wants to merge 1 commit intomainfrom
v0.1.3

Conversation

@akougkas
Copy link
Copy Markdown
Contributor

Auto-closed. The narrow-terminal thinking-preview fix is already on main as efc2b9e and on the v0.1.3 release branch as 8fa265d. This PR exists only to dismiss the GitHub 'Compare & pull request' banner.

The collapsed thinking preview built `thinking: <preview>` against a
fixed 60-column budget and ignored the actual terminal width. Terminals
narrower than ~70 columns crashed pi-tui's render with `Rendered line N
exceeds terminal width (60 > <cols>)` because the custom component
emitted a line wider than the terminal. Wrap the composed line in an
outer `truncateToWidth(line, max(1, width), "...", false)` so very
narrow terminals (33-col user report) get a clipped one-line preview
instead of an overflow throw. The inner 60-col preview budget still
hugs the wide-terminal target; the outer clip is a safety net.
@akougkas
Copy link
Copy Markdown
Contributor Author

Already shipped via direct push to v0.1.3 release branch and to main. Closing without merge.

@akougkas akougkas closed this Apr 28, 2026
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