Audit of 5eab259
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user