We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8170f8 commit 323a48aCopy full SHA for 323a48a
1 file changed
lua/vectorcode/integrations/codecompanion/query_tool.lua
@@ -413,14 +413,13 @@ Set this to `false` only if you've been instructed by the user to not enable sum
413
:totable()),
414
string.format("**VectorCode Tool**: Retrieved %d %s(s)", stdout.count, mode)
415
)
416
- for _, file in pairs(stdout) do
417
- if not opts.chunk_mode then
+ if not opts.chunk_mode then
+ for _, result in pairs(stdout.raw_results) do
418
-- skip referencing because there will be multiple chunks with the same path (id).
419
- -- TODO: figure out a way to deduplicate.
420
agent.chat.references:add({
421
source = cc_common.tool_result_source,
422
- id = file.path,
423
- path = file.path,
+ id = result.path,
+ path = result.path,
424
opts = { visible = false },
425
})
426
end
0 commit comments