${esc(st.title)}${esc(status(st.status))}
${names.length?`${names.map(id=>button('intent-asset',data.asset_names[id],`data-asset="${esc(id)}"`)).join(' ')}
`:(st.asset_ids||[]).length?`${L('linkedAssets')} · ${st.asset_ids.length}
`:''}${native?.stage?`${esc(L('native_'+native.stage))}${native.tool?' · '+esc(native.tool):''} · ${esc(L('lastNative'))} ${esc(time(native.updated_at))}
`:''}${st.summary?`${esc(st.summary)}
`:''}${button('show-step',L('openStep'),`data-step="${esc(st.id)}"`)}${st.conversation_id?button('conversation',L('conversation'),`data-conversation="${esc(st.conversation_id)}"`):''}
`;
}).join('');
- return `${esc(L('live'))}
${esc(phase)}${task.next_wake?`${esc(L('nextWake'))}:${esc(time(task.next_wake))}`:''}${['running','pending','paused','completed','blocked','uncertain'].map(k=>button('queue-status',status(k)+' '+(counts[k]||0),`data-status="${k}"`)).join('')}${esc(L('facts'))} ${data.facts||0}${data.findings_visible?button('tab',L('findings')+' '+(data.findings||0),'data-tab="findings"'):''}
${esc(L('active'))}
${cards||`
${esc(L('noActive'))}
`}
${esc(L('recent'))}
${(data.recent||[]).map(event=>`
${esc(time(event.created_at))} · ${esc(eventLabel(event.kind))}${esc(event.message)}
${event.step_id?button('show-step',L('openStep'),`data-step="${esc(event.step_id)}"`):''}`).join('')||`
${esc(L('noRecent'))}
`}
`;
+ return `${esc(L('live'))}
${esc(phase)}${task.next_wake?`${esc(L('nextWake'))}:${esc(time(task.next_wake))}`:''}${['running','pending','paused','completed','blocked','uncertain'].map(k=>button('queue-status',status(k)+' '+(counts[k]||0),`data-status="${k}"`)).join('')}${button('tab',L('facts')+' '+(data.facts||0),'data-tab="facts"')}${data.findings_visible?button('tab',L('findings')+' '+(data.findings||0),'data-tab="findings"'):''}
${esc(L('active'))}
${cards||`
${esc(L('noActive'))}
`}
${esc(L('recent'))}
${(data.recent||[]).map(event=>`
${esc(time(event.created_at))} · ${esc(eventLabel(event.kind))}${esc(event.message)}
${event.step_id?button('show-step',L('openStep'),`data-step="${esc(event.step_id)}"`):''}`).join('')||`
${esc(L('noRecent'))}
`}
`;
}
function controls(step,task,write,draft){
if(!write||task.archived||['completed','cancelled'].includes(task.status)||['completed','retired'].includes(step.status))return '';
diff --git a/web/templates/index.html b/web/templates/index.html
index a31c6039..b3dd290d 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -7141,7 +7141,7 @@
-
+