File tree Expand file tree Collapse file tree
apps/sim/lib/copilot/tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1448,7 +1448,7 @@ function statesTerminalOutcome(title: string): boolean {
14481448function 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
You can’t perform that action at this time.
0 commit comments