Stream Claude Code subagent activity inline in the transcript

This commit is contained in:
Ian Gulliver
2026-10-15 11:08:53 -07:00
parent 0e43a99115
commit d83212d46b
11 changed files with 325 additions and 35 deletions
+8
View File
@@ -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"`