diff --git a/static/ui.js b/static/ui.js index 4e7abe16..416f8524 100644 --- a/static/ui.js +++ b/static/ui.js @@ -2243,7 +2243,7 @@ function _activityStatusNode({kind='info',label='',detail='',status='done',ts=nu if(id) row.setAttribute('data-activity-event-id',id); if(ts) row.setAttribute('data-activity-at',String(ts)); const iconMap={run:li('play',13),model:li('bot',13),waiting:'',thinking:li('lightbulb',13),tool:li('wrench',13),done:li('check',13),warning:li('alert-triangle',13)}; - row.innerHTML=`${iconMap[kind]||iconMap.info||li('circle',13)}${esc(label)}${detail?`${esc(detail)}`:''}${esc(_activityClockLabel(ts))}`; + row.innerHTML=`${iconMap[kind]||li('clock',13)}${esc(label)}${detail?`${esc(detail)}`:''}${esc(_activityClockLabel(ts))}`; return row; } function _appendActivityEvent(group, event){ @@ -7684,11 +7684,11 @@ function appendThinking(text='', options){ if(row) row.setAttribute('data-thinking-active','1'); } if(!row){ - row=_thinkingActivityNode(cleanThinking, false); + row=_thinkingActivityNode(thinkingText, false); row.setAttribute('data-thinking-active','1'); body.appendChild(row); }else{ - _renderThinkingInto(row,cleanThinking); + _renderThinkingInto(row,thinkingText); } _activityMarkObserved(group); _syncToolCallGroupSummary(group); diff --git a/tests/test_live_activity_timeline.py b/tests/test_live_activity_timeline.py index f2226de1..21e04f2c 100644 --- a/tests/test_live_activity_timeline.py +++ b/tests/test_live_activity_timeline.py @@ -26,7 +26,7 @@ def test_empty_thinking_placeholder_becomes_status_row_not_raw_thinking_card(): assert "Waiting on model" in UI_JS assert "No tool activity has been reported yet." in UI_JS assert "Waiting on tool result" in UI_JS - assert "_thinkingActivityNode(cleanThinking, false)" in UI_JS + assert "_thinkingActivityNode(thinkingText, false)" in UI_JS def test_tool_events_update_activity_timeline_and_summary():