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:
2026-11-02 16:44:07 +00:00
parent d78cbe3f66
commit 07d4740d0c
15 changed files with 1208 additions and 16 deletions
@@ -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' &&