INNER CODE UNIT · JavaScript
statusIcon
Kuberwastaken/claurst · editors/vscode/media/main.js:25
function statusIcon(status) {
if (status === 'completed') return '✓';
if (status === 'failed') return '✗';
if (status === 'in_progress' || status === 'pending') return '◌';
return '•';
}
// The initial tool_call event carries a title; the tool_call_update sent
// on completion never does (the agent only sends status + content there).
// Remember the title on the element itself so completion doesn't blank it.
function upsertToolCall(id, title, status) {
let el = id ? toolCallEls.get(id) : null;
if (!el) {
el = document.createElement('div');
el.className = 'tool-call';
messagesEl.appendChild(el);
if (id) {
toolCallEls.set(id, el);