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

Commit a06902b

Browse files
committed
wip
1 parent 3967dd3 commit a06902b

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

‎lib/msgfmt/format_tool_call.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
func removeClaudeReportTaskToolCall(msg string) (string, []string) {
88
msg = "\n" + msg // This handles the case where the message starts with a tool call
99

10-
// Remove all tool calls that start with `● coder - coder_report_task (MCP)` till we encounter the next line starting with ●
10+
// Remove all tool calls that start with `● coder - coder_report_task (MCP)`
1111
lines := strings.Split(msg, "\n")
1212

1313
toolCallStartIdx := -1

‎lib/msgfmt/msgfmt.go‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,6 @@ func formatGenericMessage(message string, userInput string, agentType AgentType)
254254
return message
255255
}
256256

257-
//func formatClaudeMessage(message string, userInput string) string {
258-
// message = RemoveUserInput(message, userInput, AgentTypeClaude)
259-
// message = removeMessageBox(message)
260-
// message = removeClaudeReportTaskToolCall(message)
261-
// message = trimEmptyLines(message)
262-
// return message
263-
//}
264-
265257
func formatCodexMessage(message string, userInput string) string {
266258
message = RemoveUserInput(message, userInput, AgentTypeCodex)
267259
message = removeCodexInputBox(message)

‎lib/screentracker/conversation.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ type ConversationConfig struct {
4444
SkipSendMessageStatusCheck bool
4545
// ReadyForInitialPrompt detects whether the agent has initialized and is ready to accept the initial prompt
4646
ReadyForInitialPrompt func(message string) bool
47-
FormatToolCall func(message string) (string, []string)
48-
// Logger for logging tool calls and other events
49-
Logger *slog.Logger
47+
// FormatToolCall removes the coder report_task tool call from the agent message and also returns the array of removed tool calls
48+
FormatToolCall func(message string) (string, []string)
49+
Logger *slog.Logger
5050
}
5151

5252
type ConversationRole string
@@ -86,7 +86,7 @@ type Conversation struct {
8686
InitialPromptSent bool
8787
// ReadyForInitialPrompt keeps track if the agent is ready to accept the initial prompt
8888
ReadyForInitialPrompt bool
89-
//
89+
// toolCallMessageSet keeps track of the tool calls that have been detected & logged in the current agent message
9090
toolCallMessageSet map[string]bool
9191
}
9292

0 commit comments

Comments
 (0)