Add change summaries, inline diff hunks and screenshots to reviews

This commit is contained in:
Ian Gulliver
2026-10-15 19:02:33 -07:00
parent ed40d91a42
commit a2067c2ba0
14 changed files with 442 additions and 32 deletions
+4 -2
View File
@@ -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 {