返回 DeepSeek-Reasonix
acp_mcp_interaction_test.go
根目录 / internal / cli / acp_mcp_interaction_test.go
1 package cli
2
3 import (
4 "reasonix/internal/acp"
5 "reasonix/internal/plugin"
6 "testing"
7 )
8
9 func TestACPMCPProfileFollowsClientInteractionCapability(t *testing.T) {
10 factory := &acpFactory{}
11 for _, enabled := range []bool{false, true} {
12 opts, err := factory.sessionBootOptions(acp.SessionParams{Cwd: t.TempDir(), MCPInteractions: enabled})
13 if err != nil {
14 t.Fatal(err)
15 }
16 want := plugin.HostProfileCore
17 if enabled {
18 want = plugin.HostProfileInteractive
19 }
20 if opts.MCPHostProfile != want {
21 t.Fatalf("enabled=%v profile=%v, want %v", enabled, opts.MCPHostProfile, want)
22 }
23 }
24 }
25
25 lines GO