frame the context / thinking / agent-prompt meta cards (T-306)

The injected context block and the thinking / agent-prompt blocks
rendered as frameless `bare` cards, reading as unfinished `> context …`
rows next to the framed tool cards. Switch them to the bordered variant —
same panel border + left chevron + label as the surrounding cards — while
keeping the D-78 de-emphasis (muted accent, collapsed by default,
first-line summary; thinking gains a summary for parity). Adds a
conversation_card_meta golden.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-10 13:16:41 +02:00
co-authored by Claude Opus 4.8
parent db66039769
commit 7a98cbae4b
10 changed files with 286 additions and 3 deletions
@@ -122,6 +122,60 @@ void main() {
],
),
);
goldenTest(
'ConversationCard meta cards (T-306): context / thinking are framed + muted',
fileName: 'conversation_card_meta',
builder: () => GoldenTestGroup(
columns: 1,
children: [
GoldenTestScenario(
name: 'context — framed, muted, collapsed with first-line summary',
child: _wrap(
f,
const ConversationCard(
variant: ConversationCardVariant.bordered,
accent: Color(0xFF6A7280),
label: 'context',
collapsible: true,
collapsedByDefault: true,
collapsedSummary: 'Base directory for this skill: /var/mnt/…',
body: Text('Base directory for this skill: /var/mnt/data/projects/clide', textDirection: TextDirection.ltr),
),
),
),
GoldenTestScenario(
name: 'thinking — framed, muted, collapsed with first-line summary',
child: _wrap(
f,
const ConversationCard(
variant: ConversationCardVariant.bordered,
accent: Color(0xFF6A7280),
label: 'thinking',
collapsible: true,
collapsedByDefault: true,
collapsedSummary: 'Let me check the layout chain first…',
body: Text('Let me check the layout chain first…', textDirection: TextDirection.ltr),
),
),
),
GoldenTestScenario(
name: 'context — expanded body',
child: _wrap(
f,
const ConversationCard(
variant: ConversationCardVariant.bordered,
accent: Color(0xFF6A7280),
label: 'context',
collapsible: true,
collapsedByDefault: false,
body: Text('Base directory for this skill: /var/mnt/data/projects/clide', textDirection: TextDirection.ltr),
),
),
),
],
),
);
}
Widget _wrap(KernelFixture f, Widget child) => SizedBox(
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB