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:
@@ -373,7 +373,8 @@ class ChatThreadController extends ChangeNotifier {
|
||||
_running = next['running'] == true;
|
||||
if (!_running) {
|
||||
_liveAssistantMessageId = null;
|
||||
} else if (const ['text', 'reasoning', 'tool'].contains(body['kind'])) {
|
||||
} else if (const ['text', 'reasoning', 'tool'].contains(body['kind']) &&
|
||||
chatInjectedKind({'kind': body['message_kind']}) == null) {
|
||||
_liveAssistantMessageId = body['message_id'] as String?;
|
||||
}
|
||||
if (body['kind'] == 'step' &&
|
||||
|
||||
Reference in New Issue
Block a user