mitigated fmt warnings
This commit is contained in:
@@ -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."},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user