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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user