|
|
@@ -46,7 +46,8 @@ export async function attemptCompletionTool(
|
|
|
// we have command string, which means we have the result as well, so finish it (doesnt have to exist yet)
|
|
|
await cline.say("completion_result", removeClosingTag("result", result), undefined, false)
|
|
|
|
|
|
- TelemetryService.instance.captureTaskCompleted(cline.taskId)
|
|
|
+ // kilocode_change: do not get instance
|
|
|
+ // TelemetryService.instance.captureTaskCompleted(cline.taskId)
|
|
|
cline.emit("taskCompleted", cline.taskId, cline.getTokenUsage(), cline.toolUsage)
|
|
|
|
|
|
await cline.ask("command", removeClosingTag("command", command), block.partial).catch(() => {})
|
|
|
@@ -72,7 +73,8 @@ export async function attemptCompletionTool(
|
|
|
if (lastMessage && lastMessage.ask !== "command") {
|
|
|
// Haven't sent a command message yet so first send completion_result then command.
|
|
|
await cline.say("completion_result", result, undefined, false)
|
|
|
- TelemetryService.instance.captureTaskCompleted(cline.taskId)
|
|
|
+ // kilocode_change: do not get instance
|
|
|
+ // TelemetryService.instance.captureTaskCompleted(cline.taskId)
|
|
|
cline.emit("taskCompleted", cline.taskId, cline.getTokenUsage(), cline.toolUsage)
|
|
|
}
|
|
|
|
|
|
@@ -97,7 +99,8 @@ export async function attemptCompletionTool(
|
|
|
commandResult = execCommandResult
|
|
|
} else {
|
|
|
await cline.say("completion_result", result, undefined, false)
|
|
|
- TelemetryService.instance.captureTaskCompleted(cline.taskId)
|
|
|
+ // kilocode_change: do not get instance
|
|
|
+ // TelemetryService.instance.captureTaskCompleted(cline.taskId)
|
|
|
cline.emit("taskCompleted", cline.taskId, cline.getTokenUsage(), cline.toolUsage)
|
|
|
}
|
|
|
|