Skip to content

Commit c318439

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

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)