From 377e515e1adcfbf154754c8b07192604f54624f7 Mon Sep 17 00:00:00 2001 From: Jazzcort Date: Wed, 2 Jul 2025 14:28:49 -0400 Subject: [PATCH] Fix: resolve the context retrieval issue for codebase and docs Due to the new retrieval mechanism, getting context items for codebase and docx is not working. This patch resolve the issue. https://github.com/continuedev/continue/issues/6411 --- core/core.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/core/core.ts b/core/core.ts index 613bd0807..9edc74fbf 100644 --- a/core/core.ts +++ b/core/core.ts @@ -1102,11 +1102,6 @@ export class Core { } try { - const id: ContextItemId = { - providerTitle: provider.description.title, - itemId: uuidv4(), - }; - void Telemetry.capture("context_provider_get_context_items", { name: provider.description.title, }); @@ -1131,10 +1126,14 @@ export class Core { true, ); - return items.map((item) => ({ - ...item, - id, - })); + return items.map((item) => { + const id: ContextItemId = { + providerTitle: provider.description.title, + itemId: uuidv4(), + }; + + return { ...item, id }; + }); } catch (e) { let knownError = false;