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
@@ -58,6 +58,25 @@ void main() {
);
});
test('a replaced card keeps its place in the transcript', () {
final held = [_item('a', 100, kind: 'run'), _item('b', 200)];
final replaced = {
..._item('a', 100, kind: 'run'),
'updated_at': 300,
'title': 'A, now finished',
};
final merged = mergeChatShownItems(held, [replaced]);
final rows = withChatShownItems(
[
{'kind': 'user', 'key': 'u', 'created_at': 150},
],
merged,
hasMore: false,
);
expect(_shape(rows), ['shown:a', 'user:u', 'shown:b']);
expect((rows.first['item'] as Map)['title'], 'A, now finished');
});
group('withChatShownItems', () {
final messages = [
_message('u1', 'user', 100),