feat(app): chat reasoning is a chip beside the tool chip, opening its own sheet
This commit is contained in:
@@ -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']) {
|
||||
|
||||
Reference in New Issue
Block a user