Hug the turn activity row's hover on desktop
On macOS, Linux, Windows and desktop browsers the "Thought · tool calls · background tasks" row is as wide as its label, so its hover and click area no longer span the transcript. Phones keep the full-width touch row. The check uses the device platform because web themes are pinned to Android. The scroll fixture gains ?turnactivity=1 for captures.
This commit is contained in:
@@ -23,6 +23,10 @@ Map<String, String> _params = const {};
|
||||
void configureChatScrollFixture(Map<String, String> params) => _params = params;
|
||||
|
||||
bool get _rich => _params['rich'] == '1';
|
||||
|
||||
/// `?turnactivity=1`: replies carry thinking and a tool call, so the turn
|
||||
/// activity row ("Thought … · 1 tool call") is shown.
|
||||
bool get _activity => _params['turnactivity'] == '1';
|
||||
bool get _links => _params['links'] == '1';
|
||||
bool get _older => _params['older'] == '1';
|
||||
int get _live => int.tryParse(_params['live'] ?? '') ?? 0;
|
||||
@@ -135,6 +139,16 @@ JsonMap _message(String chat, int i) {
|
||||
'id': id,
|
||||
'role': 'assistant',
|
||||
'parts': [
|
||||
if (_activity) ...[
|
||||
{'type': 'reasoning', 'text': 'Checking the files for step $i.'},
|
||||
{
|
||||
'type': 'tool',
|
||||
'id': 'tool-$i',
|
||||
'name': 'read',
|
||||
'state': 'completed',
|
||||
'input': {'path': 'lib/main.dart'},
|
||||
},
|
||||
],
|
||||
{'type': 'text', 'text': _answer(i)},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user