summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-23 13:34:43 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-23 13:34:43 +0300
commitae62c2c8d86025bb9cfb30dc88d5c950e7b15c2c (patch)
treee6d717519e4e2aa5d3fff107c969d5039cd8655f /bot.go
parent04db7c2f01355f2c43843794522380607e807716 (diff)
Enha: tool use indicator
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot.go b/bot.go
index baa8325..085fc39 100644
--- a/bot.go
+++ b/bot.go
@@ -1198,6 +1198,8 @@ func findCall(msg, toolCall string) bool {
chatRoundChan <- crr
return true
}
+ // Show tool call progress indicator before execution
+ fmt.Fprintf(textView, "\n[yellow::i][tool: %s...][-:-:-]", fc.Name)
resp := callToolWithAgent(fc.Name, fc.Args)
toolMsg := string(resp) // Remove the "tool response: " prefix and %+v formatting
logger.Info("llm used a tool call", "tool_name", fc.Name, "too_args", fc.Args, "id", fc.ID, "tool_resp", toolMsg)