refactor(term): add mutableRow to terminal api, use it for thinking_tokens
This commit is contained in:
parent
dc63bfcb23
commit
788673341c
2 changed files with 19 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue