refactor(term): add mutableRow to terminal api, use it for thinking_tokens

This commit is contained in:
damocles 2026-07-05 12:39:26 +02:00
commit 788673341c
2 changed files with 19 additions and 5 deletions

View file

@ -1933,9 +1933,7 @@ window.marked = marked;
&& thinkingTokensRow.nextElementSibling === null) {
thinkingTokensText.nodeValue = text;
} else {
thinkingTokensRow = api.row('note', '', '🧠');
thinkingTokensText = document.createTextNode(text);
thinkingTokensRow.appendChild(thinkingTokensText);
[thinkingTokensRow, thinkingTokensText] = api.mutableRow('note', text, '🧠');
}
return;
}