Stream Claude Code subagent activity inline in the transcript
This commit is contained in:
@@ -146,6 +146,14 @@ func (e Event) Blocks() ([]Block, error) {
|
||||
return blocks, nil
|
||||
}
|
||||
|
||||
func (e Event) ParentToolUseID() (string, error) {
|
||||
msg := struct {
|
||||
ParentToolUseID string `json:"parent_tool_use_id"`
|
||||
}{}
|
||||
err := json.Unmarshal(e.Raw, &msg)
|
||||
return msg.ParentToolUseID, err
|
||||
}
|
||||
|
||||
func (e Event) TextDelta() (string, error) {
|
||||
msg := struct {
|
||||
ParentToolUseID *string `json:"parent_tool_use_id"`
|
||||
|
||||
Reference in New Issue
Block a user