mitigated fmt warnings

This commit is contained in:
Luxferre
2026-03-23 08:37:33 +02:00
parent 4aeb84c9b1
commit f9171e7158
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -211,7 +211,8 @@ func initialModel() model {
pool: pool, pool: pool,
historyIndex: -1, historyIndex: -1,
history: []sidekick.Message{ 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."},
}, },
} }
} }
+3 -1
View File
@@ -47,7 +47,9 @@ func TestRenderMessageReasoningGap(t *testing.T) {
rendered := m.renderMessage(msg) rendered := m.renderMessage(msg)
// Check if there is a gap between Thinking and Response // 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) t.Errorf("rendered message missing content: %s", rendered)
} }
+2 -1
View File
@@ -168,7 +168,8 @@ var defaultMCPFactory MCPClientFactory = func(toolset string) (MCPClientInterfac
// Use WithCommandFunc to configure the command environment // Use WithCommandFunc to configure the command environment
c, err = client.NewStdioMCPClientWithOptions(command, env, args, 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 := exec.CommandContext(ctx, command, args...)
cmd.Env = env cmd.Env = env
return cmd, nil return cmd, nil