Skip to content

Commit 819b2b5

Browse files
committed
fix(quick_chat): rename default_prompt to instructions
1 parent ed2ef3a commit 819b2b5

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
@@ -223,7 +223,7 @@ M.defaults = {
223223
quick_chat = {
224224
default_model = nil,
225225
default_agent = 'plan', -- plan ensure no file modifications by default
226-
default_prompt = nil, -- Use built-in prompt if nil
226+
instructions = nil, -- Use instructions prompt by default
227227
},
228228
}
229229

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)