feat(app): chat reasoning is a chip beside the tool chip, opening its own sheet

This commit is contained in:
2026-10-23 16:22:31 +01:00
parent 7539a7a552
commit f2aa559d0e
5 changed files with 202 additions and 174 deletions
+8 -14
View File
@@ -312,7 +312,7 @@ try {
for (const name of [
'User message',
'Assistant message',
'Reasoning',
'Reasoning, expand for details',
'1 tool call, expand for details',
'Unrecognised part: future_part',
'Ada phone',
@@ -347,22 +347,16 @@ try {
throw new Error(`Closed disclosure leaked ${JSON.stringify(hidden)}`);
}
}
const reasoning = await requireNode('Reasoning');
evidence.checks.push({
check: 'closed disclosures expose their collapsed state',
host: style,
ariaExpanded: reasoning.expanded,
});
await click('Reasoning');
// Reasoning is a chip beside the tool chip; it opens a sheet.
await click('Reasoning, expand for details');
const openReasoning = await capture(`${style}-reasoning-expanded`);
await assertOcr(openReasoning, 'The user asked for exact text');
const openReasoningNode = await requireNode('Reasoning');
if (style === 'cupertino' && openReasoningNode.expanded !== 'true') {
throw new Error(
`Cupertino reasoning did not announce aria-expanded=true: ${JSON.stringify(openReasoningNode)}`,
);
// Dismiss the sheet through its barrier.
for (const type of ['mousePressed', 'mouseReleased']) {
await send('Input.dispatchMouseEvent', { type, x: 10, y: 10, button: 'left', clickCount: 1 }, session);
}
await delay(800);
await click('Unrecognised part: future_part');
const openUnknown = await capture(`${style}-unknown-expanded`);
for (const text of ['future_part', 'payload', 'kept', 'count']) {