Skip to content

Commit 26f875d

Browse files
petobenscleong14
authored andcommitted
fix(ui): add blank line before user role (olimorris#1225)
1 parent b0da5a0 commit 26f875d

File tree

1 file changed

+3
-0
lines changed
  • lua/codecompanion/strategies/chat

1 file changed

+3
-0
lines changed

lua/codecompanion/strategies/chat/ui.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ function UI:render(context, messages, opts)
242242
end
243243

244244
if msg.role == config.constants.USER_ROLE and last_set_role ~= config.constants.USER_ROLE then
245+
if last_set_role ~= nil then
246+
spacer()
247+
end
245248
self:set_header(lines, self.roles.user)
246249
end
247250
if msg.role == config.constants.LLM_ROLE and last_set_role ~= config.constants.LLM_ROLE then

0 commit comments

Comments
 (0)