Skip to content

Commit 74e2fcc

Browse files
committed
wip
1 parent fe792b3 commit 74e2fcc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lua/codecompanion/interactions/chat/helpers/approval_prompt.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ local function build_message(opts)
2222
table.insert(lines, "")
2323
end
2424

25+
table.insert(lines, "Please select an option:")
2526
for _, choice in ipairs(opts.choices) do
2627
table.insert(lines, fmt("- `%s` - %s", choice.keymap, choice.label))
2728
end
2829

29-
-- table.insert(lines, "")
30-
table.insert(lines, "---")
30+
table.insert(lines, "")
31+
-- table.insert(lines, "---")
3132
table.insert(lines, "")
3233

3334
return table.concat(lines, "\n")
@@ -89,7 +90,7 @@ function M.request(chat, opts)
8990
local icon = is_rejection and icons.tool_failure or icons.tool_success
9091
local status = is_rejection and "failed" or "completed"
9192
chat:add_buf_message(
92-
{ content = fmt("%s%s\n\n", icon, choice_label) },
93+
{ content = fmt("%sYou chose: %s\n\n---\n", icon, choice_label) },
9394
{ _icon_info = { has_icon = true, status = status } }
9495
)
9596
utils.fire("ToolApprovalFinished", { bufnr = bufnr, choice = choice_label })

0 commit comments

Comments
 (0)