diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index e9767e669f3..9f5a62a9984 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -2788,10 +2788,6 @@ export function isBackgroundSubagent( return status === "completed" && metadata.status === "running" } -export function formatSubagentRetry(attempt: number, message: string) { - return `Retrying (attempt ${attempt}) · ${message}` -} - type ExecuteCall = { tool: string; status: "running" | "completed" | "error"; input?: Record } function executeCalls(value: unknown): ExecuteCall[] { diff --git a/packages/tui/test/cli/tui/inline-tool-wrap-snapshot.test.tsx b/packages/tui/test/cli/tui/inline-tool-wrap-snapshot.test.tsx index 1f44f926004..675008b400a 100644 --- a/packages/tui/test/cli/tui/inline-tool-wrap-snapshot.test.tsx +++ b/packages/tui/test/cli/tui/inline-tool-wrap-snapshot.test.tsx @@ -2,7 +2,6 @@ import { afterEach, describe, expect, test } from "bun:test" import { For } from "solid-js" import { testRender, type JSX } from "@opentui/solid" import { - formatSubagentRetry, InlineToolRow, isBackgroundSubagent, parseApplyPatchFiles, @@ -198,10 +197,6 @@ describe("TUI inline tool wrapping", () => { ).toEqual([{ message: "valid", range: { start: { line: 2, character: 3 } } }]) }) - test("keeps retry status ahead of wrapping messages", () => { - expect(formatSubagentRetry(2, "Rate limited by provider")).toBe("Retrying (attempt 2) · Rate limited by provider") - }) - test("labels only detached or async subagents as background", () => { expect(isBackgroundSubagent({ status: "running" }, "running")).toBeFalse() expect(isBackgroundSubagent({ status: "running" }, "completed")).toBeTrue()