Add change summaries, inline diff hunks and screenshots to reviews
This commit is contained in:
@@ -55,7 +55,7 @@ type claudeProcess struct {
|
||||
s *claude.Session
|
||||
}
|
||||
|
||||
func (m *Manager) startClaude(ctx context.Context, sess api.AgentSession, l *live, g string, servers []*mcp.Server, env []string) (agentProcess, error) {
|
||||
func (m *Manager) startClaude(ctx context.Context, sess api.AgentSession, l *live, g string, servers []*mcp.Server, stdio []mcp.Stdio, env []string) (agentProcess, error) {
|
||||
hooks := map[string][]claude.HookMatcher{
|
||||
"UserPromptSubmit": {{Func: remindGuidance(g)}},
|
||||
"Stop": {{Func: m.bounceProseQuestion(l)}},
|
||||
@@ -79,6 +79,7 @@ func (m *Manager) startClaude(ctx context.Context, sess api.AgentSession, l *liv
|
||||
Env: env,
|
||||
Guidance: g,
|
||||
MCPServers: servers,
|
||||
StdioMCP: stdio,
|
||||
Hooks: hooks,
|
||||
OnBadLine: func(line []byte, reason string) { m.recordBadLine(l, line, reason) },
|
||||
}
|
||||
@@ -151,7 +152,7 @@ type codexProcess struct {
|
||||
s *codex.Session
|
||||
}
|
||||
|
||||
func (m *Manager) startCodex(ctx context.Context, sess api.AgentSession, l *live, g string, servers []*mcp.Server, env []string) (agentProcess, error) {
|
||||
func (m *Manager) startCodex(ctx context.Context, sess api.AgentSession, l *live, g string, servers []*mcp.Server, stdio []mcp.Stdio, env []string) (agentProcess, error) {
|
||||
err := os.MkdirAll(m.codexHome, 0o700)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -166,6 +167,7 @@ func (m *Manager) startCodex(ctx context.Context, sess api.AgentSession, l *live
|
||||
Guidance: g,
|
||||
Reminder: g,
|
||||
MCPServers: servers,
|
||||
StdioMCP: stdio,
|
||||
OnBadLine: func(line []byte, reason string) { m.recordBadLine(l, line, reason) },
|
||||
}
|
||||
switch {
|
||||
|
||||
Reference in New Issue
Block a user