File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,18 @@ function M.open(config)
242242 local message = M .chat :get_message (constants .ROLE .USER )
243243 if message then
244244 local clean_prompt = process_sticky (message .content , config )
245+ local stickies = M .chat :get_sticky ()
246+ local content = ' '
247+ if not vim .tbl_isempty (stickies ) then
248+ content = ' \n > ' .. table.concat (stickies , ' \n > ' ) .. ' \n\n '
249+ end
245250 if clean_prompt and clean_prompt ~= ' ' then
251+ content = content .. clean_prompt
252+ end
253+ if content ~= ' ' then
246254 M .chat :add_message ({
247255 role = constants .ROLE .USER ,
248- content = ' \n > ' .. table.concat ( M . chat : get_sticky (), ' \n > ' ) .. ' \n\n ' .. clean_prompt ,
256+ content = content ,
249257 }, true )
250258 end
251259 end
You can’t perform that action at this time.
0 commit comments