refactor(tui): remove unused subagent formatters (#36732)
This commit is contained in:
parent
41349ff20a
commit
2096adae12
2 changed files with 0 additions and 19 deletions
|
|
@ -2398,10 +2398,6 @@ function Subagent(props: ToolProps) {
|
|||
)
|
||||
}
|
||||
|
||||
export function formatSubagentToolcalls(count: number) {
|
||||
return `${count} toolcall${count === 1 ? "" : "s"}`
|
||||
}
|
||||
|
||||
export function formatSubagentTitle(agent: string, description: string, background: boolean) {
|
||||
return `${agent} Subagent — ${description}${background ? " [background]" : ""}`
|
||||
}
|
||||
|
|
@ -2410,11 +2406,6 @@ export function formatSubagentRetry(attempt: number, message: string) {
|
|||
return `Retrying (attempt ${attempt}) · ${message}`
|
||||
}
|
||||
|
||||
export function formatCompletedSubagentDetail(toolcalls: number, duration: string) {
|
||||
if (toolcalls === 0) return duration
|
||||
return `${formatSubagentToolcalls(toolcalls)} · ${duration}`
|
||||
}
|
||||
|
||||
type ExecuteCall = { tool: string; status: "running" | "completed" | "error"; input?: Record<string, unknown> }
|
||||
|
||||
function executeCalls(value: unknown): ExecuteCall[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue