style(lint): satisfy gci and golines for review fixes
This commit is contained in:
parent
bd13092831
commit
58f634b582
3 changed files with 6 additions and 3 deletions
|
|
@ -6,4 +6,4 @@ import "fmt"
|
||||||
// same markdown shape used by live tool feedback and session reconstruction.
|
// same markdown shape used by live tool feedback and session reconstruction.
|
||||||
func FormatToolFeedbackMessage(toolName, argsPreview string) string {
|
func FormatToolFeedbackMessage(toolName, argsPreview string) string {
|
||||||
return fmt.Sprintf("\U0001f527 `%s`\n```\n%s\n```", toolName, argsPreview)
|
return fmt.Sprintf("\U0001f527 `%s`\n```\n%s\n```", toolName, argsPreview)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ func TestFormatToolFeedbackMessage(t *testing.T) {
|
||||||
if got != want {
|
if got != want {
|
||||||
t.Fatalf("FormatToolFeedbackMessage() = %q, want %q", got, want)
|
t.Fatalf("FormatToolFeedbackMessage() = %q, want %q", got, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -313,7 +313,10 @@ func assistantMessageInternalOnly(msg providers.Message) bool {
|
||||||
return strings.TrimSpace(msg.Content) == handledToolResponseSummaryText
|
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 {
|
if len(toolCalls) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue