Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lua/vectorcode/integrations/codecompanion/query_tool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,13 @@ Set this to `false` only if you've been instructed by the user to not enable sum
:totable()),
string.format("**VectorCode Tool**: Retrieved %d %s(s)", stdout.count, mode)
)
for _, file in pairs(stdout) do
if not opts.chunk_mode then
if not opts.chunk_mode then
for _, result in pairs(stdout.raw_results) do
-- skip referencing because there will be multiple chunks with the same path (id).
-- TODO: figure out a way to deduplicate.
agent.chat.references:add({
source = cc_common.tool_result_source,
id = file.path,
path = file.path,
id = result.path,
path = result.path,
opts = { visible = false },
})
end
Expand Down