1 parent 6b005d3 commit 4cf9ea0Copy full SHA for 4cf9ea0
1 file changed
index.html
@@ -5978,10 +5978,7 @@
5978
*/
5979
function _appendAssistantToHistory(text) {
5980
if (!text) return;
5981
- // Strip thinking-block UI headers before storing so the model never sees them
5982
- // as part of the conversation context on the next turn.
5983
- const stored = _stripThinkingHeader(text);
5984
- _jsChatHistory.push({ role: 'assistant', text: stored });
+ _jsChatHistory.push({ role: 'assistant', text });
5985
// Keep history manageable (last 40 messages)
5986
if (_jsChatHistory.length > 40) _jsChatHistory = _jsChatHistory.slice(-40);
5987
_saveJsChatHistory();
0 commit comments