From b072c5fee401a5ffc8f5dc437570c6d8b7a5b049 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 2 May 2025 12:07:15 -0700 Subject: [PATCH 01/12] WIP: message abort controllers --- core/core.ts | 94 ++++++++++++++++++------------------ core/edit/streamDiffLines.ts | 9 +++- core/llm/streamChat.ts | 62 +++++++++++------------- 3 files changed, 80 insertions(+), 85 deletions(-) diff --git a/core/core.ts b/core/core.ts index e5c9eeab0..36b4a399c 100644 --- a/core/core.ts +++ b/core/core.ts @@ -35,7 +35,6 @@ import { TTS } from "./util/tts"; import { ContextItemWithId, - DiffLine, IdeSettings, ModelDescription, RangeInFile, @@ -63,43 +62,6 @@ import { llmStreamChat } from "./llm/streamChat"; import type { FromCoreProtocol, ToCoreProtocol } from "./protocol"; import type { IMessenger, Message } from "./protocol/messenger"; -async function* streamDiffLinesGenerator( - configHandler: ConfigHandler, - abortedMessageIds: Set, - msg: Message, -): AsyncGenerator { - const data = msg.data; - - const { config } = await configHandler.loadConfig(); - if (!config) { - throw new Error("Failed to load config"); - } - - const llm = config.selectedModelByRole.chat; - - if (!llm) { - throw new Error("No chat model selected"); - } - - for await (const diffLine of streamDiffLines({ - highlighted: data.highlighted, - prefix: data.prefix, - suffix: data.suffix, - llm, - rules: config.rules, - input: data.input, - language: data.language, - onlyOneInsertion: false, - overridePrompt: undefined, - })) { - if (abortedMessageIds.has(msg.messageId)) { - abortedMessageIds.delete(msg.messageId); - break; - } - yield diffLine; - } -} - export class Core { configHandler: ConfigHandler; codebaseIndexerPromise: Promise; @@ -114,7 +76,18 @@ export class Core { this.globalContext.get("indexingPaused") === true, ); - private abortedMessageIds: Set = new Set(); + private messageAbortControllers = new Map(); + private addMessageAbortController(messageId: string): AbortController { + const controller = new AbortController(); + this.messageAbortControllers.set(messageId, controller); + controller.signal.addEventListener("abort", () => { + this.messageAbortControllers.delete(messageId); + }); + return controller; + } + private abortMessage(messageId: string) { + this.messageAbortControllers.get(messageId)?.abort(); + } invoke( messageType: T, @@ -283,7 +256,7 @@ export class Core { }); on("abort", (msg) => { - this.abortedMessageIds.add(msg.messageId); + this.abortMessage(msg.messageId); }); on("ping", (msg) => { @@ -452,15 +425,16 @@ export class Core { } }); - on("llm/streamChat", (msg) => - llmStreamChat( + on("llm/streamChat", (msg) => { + const abortController = this.addMessageAbortController(msg.messageId); + return llmStreamChat( this.configHandler, - this.abortedMessageIds, + abortController, msg, this.ide, this.messenger, - ), - ); + ); + }); on("llm/complete", async (msg) => { const model = (await this.configHandler.loadConfig()).config @@ -514,9 +488,33 @@ export class Core { this.completionProvider.cancel(); }); - on("streamDiffLines", (msg) => - streamDiffLinesGenerator(this.configHandler, this.abortedMessageIds, msg), - ); + on("streamDiffLines", async (msg) => { + const abortController = this.addMessageAbortController(msg.messageId); + + const { config } = await this.configHandler.loadConfig(); + if (!config) { + throw new Error("Failed to load config"); + } + + const llm = config.selectedModelByRole.chat; + if (!llm) { + throw new Error("No chat model selected"); + } + + const { data } = msg; + return streamDiffLines({ + highlighted: data.highlighted, + prefix: data.prefix, + suffix: data.suffix, + llm, + rules: config.rules, + input: data.input, + language: data.language, + onlyOneInsertion: false, + overridePrompt: undefined, + abortController, + }); + }); on("completeOnboarding", this.handleCompleteOnboarding.bind(this)); diff --git a/core/edit/streamDiffLines.ts b/core/edit/streamDiffLines.ts index 320962b7c..bcf74bf80 100644 --- a/core/edit/streamDiffLines.ts +++ b/core/edit/streamDiffLines.ts @@ -67,6 +67,7 @@ export async function* streamDiffLines({ onlyOneInsertion, overridePrompt, rules, + abortController, }: { prefix: string; highlighted: string; @@ -77,6 +78,7 @@ export async function* streamDiffLines({ onlyOneInsertion: boolean; overridePrompt: ChatMessage[] | undefined; rules: RuleWithSource[]; + abortController: AbortController; }): AsyncGenerator { void Telemetry.capture( "inlineEdit", @@ -158,12 +160,12 @@ export async function* streamDiffLines({ const completion = typeof prompt === "string" - ? llm.streamComplete(prompt, new AbortController().signal, { + ? llm.streamComplete(prompt, abortController.signal, { raw: true, prediction, reasoning: false, }) - : llm.streamChat(prompt, new AbortController().signal, { + : llm.streamChat(prompt, abortController.signal, { prediction, reasoning: false, }); @@ -190,6 +192,9 @@ export async function* streamDiffLines({ let seenGreen = false; for await (const diffLine of diffLines) { + if (abortController.signal.aborted) { + break; + } yield diffLine; if (diffLine.type === "new") { seenGreen = true; diff --git a/core/llm/streamChat.ts b/core/llm/streamChat.ts index 223b5b20e..c899e437f 100644 --- a/core/llm/streamChat.ts +++ b/core/llm/streamChat.ts @@ -8,7 +8,7 @@ import { TTS } from "../util/tts"; export async function* llmStreamChat( configHandler: ConfigHandler, - abortedMessageIds: Set, + abortController: AbortController, msg: Message, ide: IDE, messenger: IMessenger, @@ -75,52 +75,44 @@ export async function* llmStreamChat( selectedCode, config, fetch: (url, init) => - fetchwithRequestOptions(url, init, config.requestOptions), + fetchwithRequestOptions( + url, + { + ...init, + signal: abortController.signal, + }, + config.requestOptions, + ), completionOptions, }); - const checkActiveInterval = setInterval(() => { - if (abortedMessageIds.has(msg.messageId)) { - abortedMessageIds.delete(msg.messageId); - clearInterval(checkActiveInterval); + let next = await gen.next(); + while (!next.done) { + if (abortController.signal.aborted) { + next = await gen.return(errorPromptLog); + break; } - }, 100); - try { - let next = await gen.next(); - while (!next.done) { - if (abortedMessageIds.has(msg.messageId)) { - abortedMessageIds.delete(msg.messageId); - next = await gen.return(errorPromptLog); - clearInterval(checkActiveInterval); - break; - } - if (next.value) { - yield { - role: "assistant", - content: next.value, - }; - } - next = await gen.next(); + if (next.value) { + yield { + role: "assistant", + content: next.value, + }; } - if (!next.done) { - throw new Error("Will never happen"); - } - - return next.value; - } catch (e) { - throw e; - } finally { - clearInterval(checkActiveInterval); + next = await gen.next(); } + if (!next.done) { + throw new Error("Will never happen"); + } + + return next.value; } else { const gen = model.streamChat( messages, - new AbortController().signal, + abortController.signal, completionOptions, ); let next = await gen.next(); while (!next.done) { - if (abortedMessageIds.has(msg.messageId)) { - abortedMessageIds.delete(msg.messageId); + if (abortController.signal.aborted) { next = await gen.return(errorPromptLog); break; } From 1a47f962596722a9b4bc347e32c945af290efb0e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 15 May 2025 18:45:55 -0700 Subject: [PATCH 02/12] catch client abort errors --- core/llm/index.ts | 3 + core/llm/llms/Anthropic.ts | 5 ++ core/llm/llms/Asksage.ts | 12 +-- core/llm/llms/Cohere.ts | 4 + core/llm/llms/Flowise.ts | 10 ++- core/llm/llms/Gemini.ts | 4 + core/llm/llms/Ollama.ts | 4 + core/llm/llms/OpenAI.ts | 4 + core/llm/llms/VertexAI.ts | 26 +++++- core/llm/llms/WatsonX.ts | 88 +++++++++------------ core/llm/stream.ts | 39 +++++---- extensions/vscode/src/commands.ts | 6 ++ manual-testing-sandbox/AdvancedPage.tsx | 5 +- packages/fetch/src/fetch.ts | 35 +++++--- packages/fetch/src/stream.ts | 38 +++++---- packages/openai-adapters/src/apis/Relace.ts | 4 + 16 files changed, 176 insertions(+), 111 deletions(-) diff --git a/core/llm/index.ts b/core/llm/index.ts index 96fdb319c..68623d2e2 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -382,6 +382,9 @@ export abstract class BaseLLM implements ILLM { // Error mapping to be more helpful if (!resp.ok) { + if (resp.status === 499) { + return resp; // client side cancellation + } let text = await resp.text(); if (resp.status === 404 && !resp.url.includes("/v1")) { const error = JSON.parse(text)?.error?.replace(/"/g, "'"); diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 5bec42d49..00a97b826 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -213,6 +213,11 @@ class Anthropic extends BaseLLM { signal, }); + if (response.status === 499) { + // Aborted by user + return; + } + if (!response.ok) { const json = await response.json(); if (json.type === "error") { diff --git a/core/llm/llms/Asksage.ts b/core/llm/llms/Asksage.ts index 59554efe5..988c57ac6 100644 --- a/core/llm/llms/Asksage.ts +++ b/core/llm/llms/Asksage.ts @@ -134,10 +134,8 @@ class Asksage extends BaseLLM { body: JSON.stringify(args), }); - if (!response.ok) { - throw new Error( - `API request failed with status ${response.status}: ${response.statusText}`, - ); + if (response.status === 499) { + return ""; // Aborted by user } const data = await response.json(); @@ -167,10 +165,8 @@ class Asksage extends BaseLLM { signal, }); - if (!response.ok) { - throw new Error( - `API request failed with status ${response.status}: ${response.statusText}`, - ); + if (response.status === 499) { + return; // Aborted by user } const data = await response.json(); diff --git a/core/llm/llms/Cohere.ts b/core/llm/llms/Cohere.ts index ecc9c5208..17b5e4352 100644 --- a/core/llm/llms/Cohere.ts +++ b/core/llm/llms/Cohere.ts @@ -84,6 +84,10 @@ class Cohere extends BaseLLM { signal, }); + if (resp.status === 499) { + return; // Aborted by user + } + if (options.stream === false) { const data = await resp.json(); yield { role: "assistant", content: data.text }; diff --git a/core/llm/llms/Flowise.ts b/core/llm/llms/Flowise.ts index cdc4f8f77..57bb18ccc 100644 --- a/core/llm/llms/Flowise.ts +++ b/core/llm/llms/Flowise.ts @@ -132,12 +132,16 @@ class Flowise extends BaseLLM { ): AsyncGenerator { const requestBody = this._getRequestBody(messages, options); const { socket, socketInfo } = await this._initializeSocket(); - const request = this.fetch(this._getChatUrl(), { + const response = await this.fetch(this._getChatUrl(), { method: "POST", headers: this._getHeaders(), body: JSON.stringify({ ...requestBody, socketIOClientId: socket.id }), signal, - }).then((res) => res.json()); + }); + + if (response.status === 499) { + return; // Aborted by user + } while (await socketInfo.hasNextToken()) { yield { role: "assistant", content: socketInfo.getCurrentMessage() }; @@ -145,7 +149,7 @@ class Flowise extends BaseLLM { if (socketInfo.error) { socket.disconnect(); try { - yield { role: "assistant", content: (await request).text }; + yield { role: "assistant", content: await response.text() }; } catch (error: any) { yield { role: "assistant", content: (error as Error).message ?? error }; } diff --git a/core/llm/llms/Gemini.ts b/core/llm/llms/Gemini.ts index 1e3c35449..4e8d4ff49 100644 --- a/core/llm/llms/Gemini.ts +++ b/core/llm/llms/Gemini.ts @@ -438,6 +438,10 @@ class Gemini extends BaseLLM { body: JSON.stringify(body), signal, }); + if (response.status === 499) { + // Aborted by user + return; + } const data = await response.json(); yield { role: "assistant", content: data.candidates[0].content }; } diff --git a/core/llm/llms/Ollama.ts b/core/llm/llms/Ollama.ts index cd312c681..398f42ae5 100644 --- a/core/llm/llms/Ollama.ts +++ b/core/llm/llms/Ollama.ts @@ -457,6 +457,10 @@ class Ollama extends BaseLLM implements ModelInstaller { } if (chatOptions.stream === false) { + if (response.status === 499) { + // Aborted by user + return; + } const json = (await response.json()) as OllamaChatResponse; yield convertChatMessage(json); } else { diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index f6dbc2bf3..4c476f45a 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -352,6 +352,10 @@ class OpenAI extends BaseLLM { // Handle non-streaming response if (body.stream === false) { + if (response.status === 499) { + // Aborted by user + return; + } const data = await response.json(); yield data.choices[0].message; return; diff --git a/core/llm/llms/VertexAI.ts b/core/llm/llms/VertexAI.ts index cc1b70b19..3c49523fb 100644 --- a/core/llm/llms/VertexAI.ts +++ b/core/llm/llms/VertexAI.ts @@ -95,6 +95,7 @@ class VertexAI extends BaseLLM { protected async *StreamChatAnthropic( messages: ChatMessage[], options: CompletionOptions, + signal: AbortSignal, ): AsyncGenerator { const systemMessage = stripImages( messages.filter((m) => m.role === "system")[0]?.content ?? "", @@ -128,8 +129,13 @@ class VertexAI extends BaseLLM { ] : systemMessage, }), + signal, }); + if (response.status === 499) { + return; // Aborted by user + } + if (options.stream === false) { const data = await response.json(); yield { role: "assistant", content: data.content[0].text }; @@ -150,6 +156,7 @@ class VertexAI extends BaseLLM { private async *streamChatGemini( messages: ChatMessage[], options: CompletionOptions, + signal: AbortSignal, ): AsyncGenerator { const apiURL = new URL( `publishers/google/models/${options.model}:streamGenerateContent`, @@ -160,6 +167,7 @@ class VertexAI extends BaseLLM { const response = await this.fetch(apiURL, { method: "POST", body: JSON.stringify(body), + signal, }); for await (const message of this.geminiInstance.processGeminiResponse( streamResponse(response), @@ -171,6 +179,7 @@ class VertexAI extends BaseLLM { private async *streamChatBison( messages: ChatMessage[], options: CompletionOptions, + signal: AbortSignal, ): AsyncGenerator { const instances = messages.map((message) => ({ prompt: message.content })); @@ -193,7 +202,11 @@ class VertexAI extends BaseLLM { const response = await this.fetch(apiURL, { method: "POST", body: JSON.stringify(body), + signal, }); + if (response.status === 499) { + return; // Aborted by user + } const data = await response.json(); yield { role: "assistant", content: data.predictions[0].content }; } @@ -203,6 +216,7 @@ class VertexAI extends BaseLLM { protected async *StreamChatMistral( messages: ChatMessage[], options: CompletionOptions, + signal: AbortSignal, ): AsyncGenerator { const apiBase = this.apiBase!; const apiURL = new URL( @@ -228,6 +242,7 @@ class VertexAI extends BaseLLM { const response = await this.fetch(apiURL, { method: "POST", body: JSON.stringify(body), + signal, }); for await (const chunk of streamSse(response)) { @@ -304,6 +319,9 @@ class VertexAI extends BaseLLM { }), signal, }); + if (resp.status === 499) { + return; // Aborted by user + } // Streaming is not supported by code-gecko // TODO: convert to non-streaming fim method when one exist in continue. yield (await resp.json()).predictions[0].content; @@ -323,14 +341,14 @@ class VertexAI extends BaseLLM { ? this.geminiInstance.removeSystemMessage(messages) : messages; if (this.vertexProvider === "gemini") { - yield* this.streamChatGemini(convertedMsgs, options); + yield* this.streamChatGemini(convertedMsgs, options, signal); } else if (this.vertexProvider === "mistral") { - yield* this.StreamChatMistral(messages, options); + yield* this.StreamChatMistral(messages, options, signal); } else if (this.vertexProvider === "anthropic") { - yield* this.StreamChatAnthropic(messages, options); + yield* this.StreamChatAnthropic(messages, options, signal); } else { if (options.model.includes("bison")) { - yield* this.streamChatBison(convertedMsgs, options); + yield* this.streamChatBison(convertedMsgs, options, signal); } else { throw new Error(`Unsupported model: ${options.model}`); } diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index 49b2f9ce8..0db209ca2 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -4,11 +4,8 @@ import { CompletionOptions, LLMOptions, } from "../../index.js"; -import { - fromChatCompletionChunk, -} from "../openaiTypeConverters.js"; -import { renderChatMessage } from "../../util/messageContent.js"; import { BaseLLM } from "../index.js"; +import { fromChatCompletionChunk } from "../openaiTypeConverters.js"; import { streamResponse, streamSse } from "../stream.js"; let watsonxToken = { @@ -86,7 +83,7 @@ class WatsonX extends BaseLLM { } _getEndpoint(endpoint: string): string { - return `${this.apiBase}/ml/v1/${this.deploymentId ? `deployments/${this.deploymentId}/` : ""}text/${endpoint}_stream?version=${this.apiVersion}` + return `${this.apiBase}/ml/v1/${this.deploymentId ? `deployments/${this.deploymentId}/` : ""}text/${endpoint}_stream?version=${this.apiVersion}`; } static providerName = "watsonx"; @@ -182,7 +179,6 @@ class WatsonX extends BaseLLM { signal: AbortSignal, options: CompletionOptions, ): AsyncGenerator { - await this.updateWatsonxToken(); const stopSequences = options.stop?.slice(0, 6) ?? []; @@ -214,44 +210,38 @@ class WatsonX extends BaseLLM { payload.project_id = this.projectId; } - var response = await this.fetch(url, { + const response = await this.fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload), signal, }); - if (!response.ok || response.body === null) { - throw new Error( - "Something went wrong. No response received, check your connection", - ); - } else { - for await (const value of streamResponse(response)) { - const lines = value.split("\n"); - let generatedChunk = ""; - let generatedTextIndex = undefined; - lines.forEach((el: string) => { - // console.log(`${el}`); - if (el.startsWith("id:")) { - generatedTextIndex = parseInt(el.replace(/^id:\s+/, "")); - if (isNaN(generatedTextIndex)) { - console.error(`Unable to parse stream chunk ID: ${el}`); - } - } else if (el.startsWith("data:")) { - const dataStr = el.replace(/^data:\s+/, ""); - try { - const data = JSON.parse(dataStr); - data.results.forEach((result: any) => { - generatedChunk += result.generated_text || ""; - }); - } catch (e) { - // parsing error is expected with streaming response - // console.error(`Error parsing JSON string: ${dataStr}`, e); - } + for await (const value of streamResponse(response)) { + const lines = value.split("\n"); + let generatedChunk = ""; + let generatedTextIndex = undefined; + lines.forEach((el: string) => { + // console.log(`${el}`); + if (el.startsWith("id:")) { + generatedTextIndex = parseInt(el.replace(/^id:\s+/, "")); + if (isNaN(generatedTextIndex)) { + console.error(`Unable to parse stream chunk ID: ${el}`); } - }); - yield generatedChunk - } + } else if (el.startsWith("data:")) { + const dataStr = el.replace(/^data:\s+/, ""); + try { + const data = JSON.parse(dataStr); + data.results.forEach((result: any) => { + generatedChunk += result.generated_text || ""; + }); + } catch (e) { + // parsing error is expected with streaming response + // console.error(`Error parsing JSON string: ${dataStr}`, e); + } + } + }); + yield generatedChunk; } } @@ -267,7 +257,7 @@ class WatsonX extends BaseLLM { const headers = this._getHeaders(); const payload: any = { - messages: messages, + messages: messages, max_tokens: options.maxTokens ?? 1024, stop: stopSequences, frequency_penalty: options.frequencyPenalty || 1, @@ -281,36 +271,30 @@ class WatsonX extends BaseLLM { if (!!options.temperature) { payload.temperature = options.temperature; - } + } if (!!options.topP) { payload.top_p = options.topP; } if (!!options.tools) { payload.tools = options.tools; if (options.toolChoice) { - payload.tool_choice = options.toolChoice; + payload.tool_choice = options.toolChoice; } else { - payload.tool_choice_option = "auto"; + payload.tool_choice_option = "auto"; } } - var response = await this.fetch(url, { + const response = await this.fetch(url, { method: "POST", headers: headers, body: JSON.stringify(payload), signal, }); - if (!response.ok || response.body === null) { - throw new Error( - "Something went wrong. No response received, check your connection", - ); - } else { - for await (const value of streamSse(response)) { - const chunk = fromChatCompletionChunk(value); - if (chunk) { - yield chunk; - } + for await (const value of streamSse(response)) { + const chunk = fromChatCompletionChunk(value); + if (chunk) { + yield chunk; } } } diff --git a/core/llm/stream.ts b/core/llm/stream.ts index 0a014d931..dd0983605 100644 --- a/core/llm/stream.ts +++ b/core/llm/stream.ts @@ -10,6 +10,10 @@ async function* toAsyncIterable( export async function* streamResponse( response: Response, ): AsyncGenerator { + if (response.status === 499) { + return; // In case of client-side cancellation, just return + } + if (response.status !== 200) { throw new Error(await response.text()); } @@ -21,22 +25,29 @@ export async function* streamResponse( // Get the major version of Node.js const nodeMajorVersion = parseInt(process.versions.node.split(".")[0], 10); - if (nodeMajorVersion >= 20) { - // Use the new API for Node 20 and above - const stream = (ReadableStream as any).from(response.body); - for await (const chunk of stream.pipeThrough( - new TextDecoderStream("utf-8"), - )) { - yield chunk; + try { + if (nodeMajorVersion >= 20) { + // Use the new API for Node 20 and above + const stream = (ReadableStream as any).from(response.body); + for await (const chunk of stream.pipeThrough( + new TextDecoderStream("utf-8"), + )) { + yield chunk; + } + } else { + // Fallback for Node versions below 20 + // Streaming with this method doesn't work as version 20+ does + const decoder = new TextDecoder("utf-8"); + const nodeStream = response.body as unknown as NodeJS.ReadableStream; + for await (const chunk of toAsyncIterable(nodeStream)) { + yield decoder.decode(chunk, { stream: true }); + } } - } else { - // Fallback for Node versions below 20 - // Streaming with this method doesn't work as version 20+ does - const decoder = new TextDecoder("utf-8"); - const nodeStream = response.body as unknown as NodeJS.ReadableStream; - for await (const chunk of toAsyncIterable(nodeStream)) { - yield decoder.decode(chunk, { stream: true }); + } catch (e) { + if (e instanceof Error && e.name.startsWith("AbortError")) { + return; // In case of client-side cancellation, just return } + throw e; } } diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index cb312a101..84885f757 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -97,6 +97,7 @@ async function processDiff( action: "accept" | "reject", sidebar: ContinueGUIWebviewViewProvider, ide: VsCodeIde, + core: Core, verticalDiffManager: VerticalDiffManager, newFileUri?: string, streamId?: string, @@ -121,6 +122,9 @@ async function processDiff( // Clear vertical diffs depending on action verticalDiffManager.clearForfileUri(newOrCurrentUri, action === "accept"); + if (action === "reject") { + core.invoke("cancelApply", undefined); + } if (streamId) { const fileContent = await ide.readFile(newOrCurrentUri); @@ -236,6 +240,7 @@ const getCommandsMap: ( "accept", sidebar, ide, + core, verticalDiffManager, newFileUri, streamId, @@ -246,6 +251,7 @@ const getCommandsMap: ( "reject", sidebar, ide, + core, verticalDiffManager, newFileUri, streamId, diff --git a/manual-testing-sandbox/AdvancedPage.tsx b/manual-testing-sandbox/AdvancedPage.tsx index 9f7d321ec..e75004bb1 100644 --- a/manual-testing-sandbox/AdvancedPage.tsx +++ b/manual-testing-sandbox/AdvancedPage.tsx @@ -13,10 +13,7 @@ const AdvancedPage = () => { className={`${isDarkMode ? "bg-gray-800 text-white" : "bg-white text-black"} min-h-screen p-4`} >
- I apologize, but there seems to be a misunderstanding. The user's - request doesn't appear to be related to rewriting the code section you - provided. The request mentions editing a readme.md file, which is not - part of the React component code you've shown. + {" "}