Stream Claude Code subagent activity inline in the transcript
This commit is contained in:
@@ -580,6 +580,15 @@ func transcriptLine(ev api.Event, root string) string {
|
||||
p := ev.Payload
|
||||
text := func(k string) string { return fmt.Sprint(p[k]) }
|
||||
rel := func(s string) string { return strings.ReplaceAll(s, root+"/", "") }
|
||||
if p["parent_tool_use_id"] != nil {
|
||||
switch ev.Kind {
|
||||
case "agent.message":
|
||||
return "subagent: " + text("text")
|
||||
case "agent.tool_call":
|
||||
return "subagent tool " + text("name")
|
||||
}
|
||||
return ""
|
||||
}
|
||||
switch ev.Kind {
|
||||
case "user.message":
|
||||
if ev.Actor == "byre" {
|
||||
|
||||
Reference in New Issue
Block a user