// Session list and detail rendering module. // Extracted from render.js -- all session/subagent DOM generation. import { state } from './state.js'; import { loadSessionDetail, loadSubagentDetail, isTextTruncated, loadFullText } from './data.js'; import { escapeHTML, highlightPlain, fmtListTime, fmtRelative, fmtClockTime, renderMarkdown, formatProjectLabel, $ } from './utils.js'; import { FOLDER_SVG } from './state.js'; import registry from './registry.js'; // --- Session list --- export function renderSessionList() { const items = visibleSessions(); const list = $('#session-list'); if (!list) return; if (!items.length) { list.innerHTML = `
${escapeHTML(tc.input_json || '')}
${tc.result ? `${escapeHTML(tc.result.content || '(empty)')}` : ''}