From 7112cee0642b2f862af16e912510f813516b48fe Mon Sep 17 00:00:00 2001 From: amunger <2019016+amunger@users.noreply.github.com> Date: Wed, 19 Nov 2025 14:44:40 -0800 Subject: [PATCH] dont mirror appending output items --- .../chatEditing/chatEditingModifiedNotebookEntry.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.ts b/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.ts index 963ae5404f8ac..38b6b9b6f7a29 100644 --- a/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.ts +++ b/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.ts @@ -389,16 +389,7 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie break; } case NotebookCellsChangeType.OutputItem: { - const index = getCorrespondingOriginalCellIndex(event.index, this._cellsDiffInfo.get()); - if (typeof index === 'number') { - const edit: ICellEditOperation = { - editType: CellEditType.OutputItems, - outputId: event.outputId, - append: event.append, - items: event.outputItems - }; - this.originalModel.applyEdits([edit], true, undefined, () => undefined, undefined, false); - } + // outputs are shared between original and modified model, so the original model is already updated. break; } case NotebookCellsChangeType.Move: {