fix(agentic): repair AX refactor regressions
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
3d2fa035a9
commit
a2ff1ce19a
2 changed files with 3 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue