We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe792b3 commit 74e2fccCopy full SHA for 74e2fcc
1 file changed
lua/codecompanion/interactions/chat/helpers/approval_prompt.lua
@@ -22,12 +22,13 @@ local function build_message(opts)
22
table.insert(lines, "")
23
end
24
25
+ table.insert(lines, "Please select an option:")
26
for _, choice in ipairs(opts.choices) do
27
table.insert(lines, fmt("- `%s` - %s", choice.keymap, choice.label))
28
29
- -- table.insert(lines, "")
30
- table.insert(lines, "---")
+ table.insert(lines, "")
31
+ -- table.insert(lines, "---")
32
33
34
return table.concat(lines, "\n")
@@ -89,7 +90,7 @@ function M.request(chat, opts)
89
90
local icon = is_rejection and icons.tool_failure or icons.tool_success
91
local status = is_rejection and "failed" or "completed"
92
chat:add_buf_message(
- { content = fmt("%s%s\n\n", icon, choice_label) },
93
+ { content = fmt("%sYou chose: %s\n\n---\n", icon, choice_label) },
94
{ _icon_info = { has_icon = true, status = status } }
95
)
96
utils.fire("ToolApprovalFinished", { bufnr = bufnr, choice = choice_label })
0 commit comments