App: dark-aware HTML views, run cards, changed/missing file notes, one card width, dense diff rows

show_html documents that declare dark support follow the app theme; others
stay light. Tool description and skill docs say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 19:54:58 +00:00
parent d204ce3187
commit f02ff56dfe
27 changed files with 1086 additions and 61 deletions
@@ -2,15 +2,18 @@ import '../../../core/api_gateway.dart';
import 'chat_transcript.dart';
/// Entries a chat's model showed the operator through the Pipelines tools
/// (`show_file`, `show_image`, `show_html`, `show_diff`, `notify`).
/// (`show_file`, `show_image`, `show_html`, `show_diff`, `show_run`,
/// `notify`).
///
/// The server keeps them per chat, outside the harness transcript: the
/// `chat_subscribe` reply carries the retained list (oldest first) and a
/// pushed `chat_shown` frame carries each new or updated item. Items are keyed
/// by `id`; a later copy replaces the held one in place.
/// by `id`; a later copy replaces the held one in place. The server sends one
/// when the model replaces a card (`replace`) and when a shown run changes;
/// either keeps the item's `created_at`, so the card stays where it was.
/// The recorded kinds.
const chatShownKinds = {'file', 'image', 'html', 'diff', 'notify'};
const chatShownKinds = {'file', 'image', 'html', 'diff', 'run', 'notify'};
/// The transcript row kind an item is drawn as.
const String chatShownRowKind = 'shown';
@@ -52,7 +55,7 @@ List<JsonMap> mergeChatShownItems(
/// `pipelines/show_file`.
final RegExp _pipelinesTool = RegExp(
r'^(?:mcp__pipelines__|pipelines_|pipelines/)'
r'(?:show_file|show_image|show_html|show_diff|notify)$',
r'(?:show_file|show_image|show_html|show_diff|show_run|notify)$',
);
/// Whether [part] is a call of a Pipelines tool whose result the transcript