Skip to content

Commit 4c9f120

Browse files
authored
feat: add reference handling to workflow processing (#969)
When a workflow contains references, they are now properly processed using the add_ref function.
1 parent dd2ccc3 commit 4c9f120

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/codecompanion/strategies/init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ function Strategies:workflow()
176176
context = self.context,
177177
messages = messages,
178178
})
179+
180+
if workflow.references then
181+
add_ref(workflow, chat)
182+
end
183+
179184
table.remove(prompts, 1)
180185

181186
-- Then when it completes we send the next batch and so on

0 commit comments

Comments
 (0)