Skip to content
This repository was archived by the owner on Sep 13, 2026. It is now read-only.

Commit 8fb27f6

Browse files
committed
wip
1 parent 3955c3b commit 8fb27f6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎lib/msgfmt/format_tool_call.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package msgfmt
22

33
import (
4+
"fmt"
45
"strings"
56
)
67

@@ -29,6 +30,8 @@ func removeClaudeReportTaskToolCall(msg string) (string, []string) {
2930
}
3031
}
3132

33+
fmt.Println("ToolCallIdxs:", toolCallIdxs)
34+
3235
// If no tool calls found, return original message
3336
if len(toolCallIdxs) == 0 {
3437
return strings.TrimSuffix(msg, "\n"), []string{}
@@ -45,7 +48,7 @@ func removeClaudeReportTaskToolCall(msg string) (string, []string) {
4548

4649
lines = append(lines[:start], lines[end:]...)
4750
}
48-
return strings.TrimSuffix(strings.Join(lines, "\n"), "\n\n"), toolCallMessages
51+
return strings.Join(lines, "\n"), toolCallMessages
4952
}
5053

5154
func FormatToolCall(agentType AgentType, message string) (string, []string) {

0 commit comments

Comments
 (0)