Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tui/component_render_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,17 @@ func TestRenderBytemindRunCardCollapsedLiveInspectSummaryAcrossTools(t *testing.
}
}

func TestRenderLiveInspectGroupDetailPrefixHasSpace(t *testing.T) {
group := []chatEntry{
{Kind: "tool", Title: toolEntryTitle("search_text"), Status: "running", CompactBody: `"finalizeAssistantTurnForTool"`},
}

view := stripANSI(renderLiveInspectGroup(group, 100, true, model{}))
if !strings.Contains(view, `└ "finalizeAssistantTurnForTool"`) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low: this only asserts that the spaced form appears somewhere in the rendered output. If a regression ever rendered both └"... and └ "... in the same view, this test would still pass. Asserting on the exact detail line, or also rejecting the unspaced variant, would make the regression coverage tighter.

t.Fatalf("expected live inspect detail prefix to include a space after tree marker, got %q", view)
}
}

func TestRenderBytemindRunCardCollapsedDoneInspectGroupKeepsSingleLine(t *testing.T) {
entries := []chatEntry{
{Kind: "tool", Title: toolEntryTitle("search_text"), Status: "done", CompactBody: `17 matches for "toolDetailsExpanded"`},
Expand Down
Loading