Show injected Claude input as agent reports and notices, not operator bubbles
Claude Code records subagent/peer reports, task notifications, reminders and skill bodies as user-role entries. Classify them server-side (history and live stream) by origin/isMeta/queued_command mode: reports become kind agent_report, task notifications kind notice, harness meta is hidden, and the mid-turn wrapper is unwrapped to the operator's text. The app draws a collapsed Agent report card and a one-line system notice on the agent's side.
This commit is contained in:
@@ -62,6 +62,10 @@ func (h *chatHub) finalReplyTextLocked(sessionID string) string {
|
||||
if message.role == protocol.ChatRoleUser {
|
||||
return ""
|
||||
}
|
||||
if message.kind != "" {
|
||||
// An agent report or notice the harness delivered is not the reply.
|
||||
continue
|
||||
}
|
||||
var text strings.Builder
|
||||
for _, id := range message.order {
|
||||
part := message.parts[id]
|
||||
|
||||
Reference in New Issue
Block a user