Skip to content

Commit 2fb3cfc

Browse files
committed
fix(quick_chat): rename default_prompt to instructions
1 parent af33eb5 commit 2fb3cfc

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
@@ -221,7 +221,7 @@ M.defaults = {
221221
quick_chat = {
222222
default_model = nil,
223223
default_agent = 'plan', -- plan ensure no file modifications by default
224-
default_prompt = nil, -- Use built-in prompt if nil
224+
instructions = nil, -- Use instructions prompt by default
225225
},
226226
}
227227

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)