From f9171e715840dd620d2757b8ce73546373647a94 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Mon, 23 Mar 2026 08:37:33 +0200 Subject: [PATCH] mitigated fmt warnings --- cmd/sidekick-tui/main.go | 3 ++- cmd/sidekick-tui/repro_test.go | 4 +++- mcp.go | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/cmd/sidekick-tui/main.go b/cmd/sidekick-tui/main.go index 9c97fc7..0f9ee0a 100644 --- a/cmd/sidekick-tui/main.go +++ b/cmd/sidekick-tui/main.go @@ -211,7 +211,8 @@ func initialModel() model { pool: pool, historyIndex: -1, history: []sidekick.Message{ - {Role: sidekick.MessageRoleSystem, Content: banner + "\n\nSidekick initialized. " + mcpStats + "\nType a message below."}, + {Role: sidekick.MessageRoleSystem, Content: banner + + "\n\nSidekick initialized. " + mcpStats + "\nType a message below."}, }, } } diff --git a/cmd/sidekick-tui/repro_test.go b/cmd/sidekick-tui/repro_test.go index 331de82..94e8564 100644 --- a/cmd/sidekick-tui/repro_test.go +++ b/cmd/sidekick-tui/repro_test.go @@ -47,7 +47,9 @@ func TestRenderMessageReasoningGap(t *testing.T) { rendered := m.renderMessage(msg) // Check if there is a gap between Thinking and Response - if !strings.Contains(rendered, "Thinking") || !strings.Contains(rendered, "Actual") || !strings.Contains(rendered, "response") { + if !strings.Contains(rendered, "Thinking") || + !strings.Contains(rendered, "Actual") || + !strings.Contains(rendered, "response") { t.Errorf("rendered message missing content: %s", rendered) } diff --git a/mcp.go b/mcp.go index fc8671e..99c8522 100644 --- a/mcp.go +++ b/mcp.go @@ -168,7 +168,8 @@ var defaultMCPFactory MCPClientFactory = func(toolset string) (MCPClientInterfac // Use WithCommandFunc to configure the command environment c, err = client.NewStdioMCPClientWithOptions(command, env, args, - transport.WithCommandFunc(func(ctx context.Context, command string, env []string, args []string) (*exec.Cmd, error) { + transport.WithCommandFunc(func(ctx context.Context, command string, + env []string, args []string) (*exec.Cmd, error) { cmd := exec.CommandContext(ctx, command, args...) cmd.Env = env return cmd, nil