Accept Claude Code's command_lifecycle stream events
This commit is contained in:
@@ -56,6 +56,7 @@ var knownTypes = map[string]bool{
|
||||
"control_response": true,
|
||||
"control_cancel_request": true,
|
||||
"keep_alive": true,
|
||||
"command_lifecycle": true,
|
||||
}
|
||||
|
||||
type Event struct {
|
||||
@@ -585,7 +586,7 @@ func (s *Session) handleLine(line []byte) {
|
||||
}
|
||||
return
|
||||
|
||||
case "keep_alive":
|
||||
case "keep_alive", "command_lifecycle":
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user