Skip to content

Commit d544ab4

Browse files
committed
feat(tui): show background label on subagent line
1 parent ce228bf commit d544ab4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/tui/src/routes/session/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,7 @@ export function formatSubagentToolcalls(count: number) {
22622262
}
22632263

22642264
export function formatSubagentTitle(agent: string, description: string, background: boolean) {
2265-
return `${agent} Subagent${background ? " (background)" : ""}${description}`
2265+
return `${agent} Subagent${description}${background ? " [background]" : ""}`
22662266
}
22672267

22682268
export function formatSubagentRetry(attempt: number, message: string) {

packages/tui/test/cli/tui/inline-tool-wrap-snapshot.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe("TUI inline tool wrapping", () => {
175175
test("keeps background state attached to the subagent identity", () => {
176176
expect(formatSubagentTitle("Explore", "Inspect renderer", false)).toBe("Explore Subagent — Inspect renderer")
177177
expect(formatSubagentTitle("Explore", "Inspect renderer", true)).toBe(
178-
"Explore Subagent (background) — Inspect renderer",
178+
"Explore Subagent — Inspect renderer [background]",
179179
)
180180
})
181181

0 commit comments

Comments
 (0)