7 // stopCommand is the input line that interrupts the running turn. The line
8 // "/stop NAME" stops the subagent NAME.
9 const stopCommand = "/stop"
11 // stopSubagentName returns NAME of a line "/stop NAME", or false for any other
13 func stopSubagentName(line string) (string, bool) {
14 name, found := strings.CutPrefix(strings.TrimSpace(line), stopCommand+" ")
15 name = strings.TrimSpace(name)
16 if !found || name == "" {