feat(agent): stop command

This commit is contained in:
afjcjsbx
2026-05-04 08:41:17 +02:00
parent be67aed4dc
commit f3ef7090c5
10 changed files with 260 additions and 2 deletions
+6
View File
@@ -274,6 +274,12 @@ func (al *AgentLoop) buildCommandsRuntime(
return nil
},
}
rt.StopActiveTurn = func() (commands.StopResult, error) {
if opts == nil {
return commands.StopResult{}, fmt.Errorf("process options not available")
}
return al.stopActiveTurnForSession(opts.Dispatch.SessionKey)
}
if agent != nil && agent.ContextBuilder != nil {
rt.ListSkillNames = agent.ContextBuilder.ListSkillNames
}