style(lint): satisfy gci and golines for review fixes

This commit is contained in:
lc6464
2026-04-10 00:02:20 +08:00
parent bd13092831
commit 58f634b582
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ import "fmt"
// same markdown shape used by live tool feedback and session reconstruction.
func FormatToolFeedbackMessage(toolName, argsPreview string) string {
return fmt.Sprintf("\U0001f527 `%s`\n```\n%s\n```", toolName, argsPreview)
}
}
+1 -1
View File
@@ -8,4 +8,4 @@ func TestFormatToolFeedbackMessage(t *testing.T) {
if got != want {
t.Fatalf("FormatToolFeedbackMessage() = %q, want %q", got, want)
}
}
}
+4 -1
View File
@@ -313,7 +313,10 @@ func assistantMessageInternalOnly(msg providers.Message) bool {
return strings.TrimSpace(msg.Content) == handledToolResponseSummaryText
}
func visibleAssistantToolSummaryMessages(toolCalls []providers.ToolCall, toolFeedbackMaxArgsLength int) []sessionChatMessage {
func visibleAssistantToolSummaryMessages(
toolCalls []providers.ToolCall,
toolFeedbackMaxArgsLength int,
) []sessionChatMessage {
if len(toolCalls) == 0 {
return nil
}