diff --git a/pkg/agentic/dispatch.go b/pkg/agentic/dispatch.go index dd4fa80..389292e 100644 --- a/pkg/agentic/dispatch.go +++ b/pkg/agentic/dispatch.go @@ -105,7 +105,7 @@ func agentCommandResult(agent, prompt string) core.Result { "exec", "--dangerously-bypass-approvals-and-sandbox", "Review the last 2 commits via git diff HEAD~2. Check for bugs, security issues, missing tests, naming issues. Report pass/fail with specifics. Do NOT make changes.", - }}, OK: true + }}, OK: true} } // Container IS the sandbox — let codex run unrestricted inside it args := []string{ diff --git a/pkg/agentic/remote.go b/pkg/agentic/remote.go index 856a2ca..e002674 100644 --- a/pkg/agentic/remote.go +++ b/pkg/agentic/remote.go @@ -91,6 +91,7 @@ func (s *PrepSubsystem) dispatchRemote(ctx context.Context, _ *mcp.CallToolReque "arguments": callParams, }, } + body := []byte(core.JSONMarshalString(rpcReq)) url := core.Sprintf("http://%s/mcp", addr) @@ -114,6 +115,7 @@ func (s *PrepSubsystem) dispatchRemote(ctx context.Context, _ *mcp.CallToolReque Error: core.Sprintf("init failed: %v", err), }, err } + callResult := mcpCallResult(ctx, url, token, sessionID, body) if !callResult.OK { err, _ := callResult.Value.(error)