Skip to content

Commit c384607

Browse files
committed
wip
1 parent f7a2863 commit c384607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/msgfmt/message_box.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ func removeClaudeReportTaskToolCall(msg string) string {
112112
// Iterate backwards to find all occurrences
113113
for i := len(lines) - 1; i >= 0; i-- {
114114
line := strings.TrimSpace(lines[i])
115-
if line == "}" && toolCallEndIdx == -1 {
115+
if line == "}" {
116116
toolCallEndIdx = i
117117
}
118118
if toolCallEndIdx != -1 && strings.HasPrefix(line, "● coder - coder_report_task (MCP)") {
119119
// Store [start, end] pair
120120
toolCallIdxs = append(toolCallIdxs, []int{i, toolCallEndIdx})
121+
121122
// Reset to find the next tool call
122123
toolCallEndIdx = -1
123124
}

0 commit comments

Comments
 (0)