Skip to content

Commit b23f548

Browse files
committed
chore(copilot): remove unused outcome title wrappers
1 parent cf34cd2 commit b23f548

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

apps/sim/lib/copilot/tools/tool-display.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ function statesTerminalOutcome(title: string): boolean {
14481448
function getToolOutcomeTitle(
14491449
title: string,
14501450
outcome: 'Failed' | 'Stopped' | 'Skipped',
1451-
preserveExistingOutcome = true
1451+
preserveExistingOutcome: boolean
14521452
): string {
14531453
if (preserveExistingOutcome && statesTerminalOutcome(title)) return title
14541454
const firstWord = firstWordOf(title)
@@ -1458,21 +1458,6 @@ function getToolOutcomeTitle(
14581458
return `${outcome}: ${title}`
14591459
}
14601460

1461-
/**
1462-
* Rewrite a resolved display title for a FAILED tool call. A gerund title
1463-
* becomes "Failed <gerund>…" ("Searching for X" → "Failed searching for X");
1464-
* anything else gets a "Failed: " prefix. Without this, an errored row kept
1465-
* its present-tense activity title verbatim and read as still running.
1466-
*/
1467-
export function getToolFailedTitle(title: string): string {
1468-
return getToolOutcomeTitle(title, 'Failed')
1469-
}
1470-
1471-
/** Rewrite a resolved display title for a CANCELLED tool call ("Stopped <gerund>…"). */
1472-
export function getToolStoppedTitle(title: string): string {
1473-
return getToolOutcomeTitle(title, 'Stopped')
1474-
}
1475-
14761461
/**
14771462
* Resolve the final title for a tool status at a rendering boundary. Persisted
14781463
* and live snapshots intentionally keep the present-tense activity title so a

0 commit comments

Comments
 (0)