Sync tool-call titles and task summaries

This commit is contained in:
Shantur Rathore
2025-12-12 13:51:40 +00:00
parent 90c6835ee7
commit 0da2e1d7bb
6 changed files with 286 additions and 68 deletions

View File

@@ -192,3 +192,33 @@ export function readToolStatePayload(state?: ToolState): {
output: isToolStateCompleted(state) ? state.output : undefined,
}
}
export function getDefaultToolAction(toolName: string) {
switch (toolName) {
case "task":
return "Delegating..."
case "bash":
return "Writing command..."
case "edit":
return "Preparing edit..."
case "webfetch":
return "Fetching from the web..."
case "glob":
return "Finding files..."
case "grep":
return "Searching content..."
case "list":
return "Listing directory..."
case "read":
return "Reading file..."
case "write":
return "Preparing write..."
case "todowrite":
case "todoread":
return "Planning..."
case "patch":
return "Preparing patch..."
default:
return "Working..."
}
}