Skip to content

Commit bc46d8c

Browse files
committed
fix(quick_chat): rename default_prompt to instructions
1 parent 3bd0ae4 commit bc46d8c

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lua/opencode/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ M.defaults = {
218218
quick_chat = {
219219
default_model = nil,
220220
default_agent = 'plan', -- plan ensure no file modifications by default
221-
default_prompt = nil, -- Use built-in prompt if nil
221+
instructions = nil, -- Use instructions prompt by default
222222
},
223223
}
224224

lua/opencode/quick_chat.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,7 @@ end)
336336
local create_message = Promise.async(function(message, buf, range, context_instance, options)
337337
local quick_chat_config = config.quick_chat or {}
338338

339-
local instructions
340-
if quick_chat_config.instructions then
341-
instructions = quick_chat_config.instructions
342-
else
343-
instructions = generate_search_replace_instructions(context_instance):await()
344-
end
339+
local instructions = quick_chat_config.instructions or generate_search_replace_instructions(context_instance):await()
345340

346341
local format_opts = { buf = buf }
347342
if range then

0 commit comments

Comments
 (0)