diff --git a/app/cli/stream_tui/view.go b/app/cli/stream_tui/view.go index 4bbf9768..c1c7125b 100644 --- a/app/cli/stream_tui/view.go +++ b/app/cli/stream_tui/view.go @@ -103,6 +103,7 @@ func (m streamUIModel) doRenderBuild(outputStatic bool) string { sort.Strings(filePaths) var rows [][]string + rows = append(rows, []string{}) lineWidth := 0 lineNum := 0 rowIdx := 0 @@ -137,16 +138,13 @@ func (m streamUIModel) doRenderBuild(outputStatic bool) string { lineWidth = 0 lineNum++ rowIdx = 0 + rows = append(rows, []string{}) } else { block = maybePrefix + block } defBlockWidth := lipgloss.Width(block) - if len(rows) <= lineNum { - rows = append(rows, []string{}) - } - row := rows[lineNum] row = append(row, block) rows[lineNum] = row diff --git a/releases/cli/versions/0.9.1.md b/releases/cli/versions/0.9.1.md new file mode 100644 index 00000000..9e274048 --- /dev/null +++ b/releases/cli/versions/0.9.1.md @@ -0,0 +1 @@ +- Fix for occasional stream TUI panic during builds with long file paths (https://github.com/plandex-ai/plandex/issues/105)