This commit is contained in:
Ian Gulliver
2026-10-20 22:08:12 -07:00
parent 5eab2597e4
commit 02fb36e945
4 changed files with 10 additions and 23 deletions
+4 -9
View File
@@ -55,18 +55,13 @@ type claudeProcess struct {
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)}},
"PostToolUse": {{Func: m.afterTool(l)}},
}
if l.owner != "" {
hooks = map[string][]claude.HookMatcher{
"UserPromptSubmit": {{Func: remindGuidance(g)}},
"PostToolUse": {{Func: m.afterTool(l)}},
if l.reviewID == "" {
hooks["PostToolUse"] = []claude.HookMatcher{{Func: m.afterTool(l)}}
if l.owner == "" {
hooks["Stop"] = []claude.HookMatcher{{Func: m.bounceProseQuestion(l)}}
}
}
if l.reviewID != "" {
hooks = map[string][]claude.HookMatcher{"UserPromptSubmit": {{Func: remindGuidance(g)}}}
}
opts := claude.Options{
Cwd: l.dir,