Elffuss BraidHub

kikocis/continue public

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
Changeset1d3b2db2ac42d346d623ee17894620df257824d21a8d01829dcc83323c1ee853
AuthorJazzcort <jason101011113@gmail.com> · 2025-07-02 14:28 -04:00
CommitterJazzcort <jason101011113@gmail.com> · 2025-07-02 15:07 -04:00
Parents6d82571f343f

Browse the files at this changeset

1 file changed

modified core/core.ts +8 −9
@@ -1102,11 +1102,6 @@
11021102 }
11031103
11041104 try {
1105- const id: ContextItemId = {
1106- providerTitle: provider.description.title,
1107- itemId: uuidv4(),
1108- };
1109-
11101105 void Telemetry.capture("context_provider_get_context_items", {
11111106 name: provider.description.title,
11121107 });
@@ -1131,10 +1126,14 @@
11311126 true,
11321127 );
11331128
1134- return items.map((item) => ({
1135- ...item,
1136- id,
1137- }));
1129+ return items.map((item) => {
1130+ const id: ContextItemId = {
1131+ providerTitle: provider.description.title,
1132+ itemId: uuidv4(),
1133+ };
1134+
1135+ return { ...item, id };
1136+ });
11381137 } catch (e) {
11391138 let knownError = false;
11401139