Skip to content
5 changes: 5 additions & 0 deletions .changeset/fix-vscode-tool-aggregator-reset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nanocollective/nanocoder": patch
---

Fixed new tool calls landing back in an earlier card instead of a fresh one when a thought or reply came in between.
Binary file modified assets/nanocoder-vscode.vsix
Binary file not shown.
8 changes: 8 additions & 0 deletions plugins/vscode/media/chat-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,13 +1308,21 @@
currentThoughtBox.finish();
currentThoughtBox = null;
}
if (currentAggregator) {
currentAggregator.close();
currentAggregator = null;
}
if (update.content && update.content.text) {
appendChunk(update.content.text);
}
} else if (update.sessionUpdate === 'agent_thought_chunk') {
if (!currentThoughtBox) {
endCurrentTextBlock();
currentThoughtBox = new ThoughtAggregator();
if (currentAggregator) {
currentAggregator.close();
currentAggregator = null;
}
}
if (update.content && update.content.text) {
currentThoughtBox.append(update.content.text);
Expand Down
Loading