feat(chat): add final answer only activity display mode (#5706, picker grid fixed)

Clean rebase of rodboev's #5746 (rebase-first).

Co-authored-by: rodboev <rodboev@users.noreply.github.com>
This commit is contained in:
nesquena-hermesandrodboev committed 2026-07-07 14:38:08 +00:00
1 parent c3ff9f41c7
commit 2717ea0ac5
11 files changed
+465 -43

No files matched your search

+8 -2
View File
@@ -178,6 +178,12 @@
return typeof value==='string'?value.trim():'';
}
function _activityDisplayMode(value){
return value==='transparent_stream'||value==='compact_worklog'||value==='hide_all_activity'
? value
: 'compact_worklog';
}
function _terminalStateKey(value){
return _cleanString(value).toLowerCase().replace(/[\s-]+/g,'_');
}
@@ -1013,7 +1019,7 @@
const anchor=_anchorFromProjectionInput(input);
const opts=(options&&typeof options==='object')?options:{};
const requestedMode=_cleanString(_own(opts,'mode'));
const mode=requestedMode==='transparent_stream'?'transparent_stream':'compact_worklog';
const mode=_activityDisplayMode(requestedMode);
if(!anchor){
return Object.freeze({
version:'activity_scene_v1',
@@ -1319,7 +1325,7 @@
const item=(input&&typeof input==='object')?input:{};
const opts=(options&&typeof options==='object')?options:{};
const requested=_cleanString(_own(item,'mode'))||_cleanString(_own(opts,'mode'));
return requested==='transparent_stream'?'transparent_stream':'compact_worklog';
return _activityDisplayMode(requested);
}
function _rendererSnapshotRowsInput(input, options){