Skip to content

Commit 6bf088b

Browse files
committed
feat(quick_chat): update default conf
1 parent 9ea829a commit 6bf088b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lua/opencode/config.lua

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ M.defaults = {
195195
enabled = true,
196196
},
197197
buffer = {
198-
enabled = false, -- Only used for inline editing, disabled by default
198+
enabled = false, -- Disable entire buffer context by default, only used in quick chat
199199
},
200200
git_diff = {
201201
enabled = false,
@@ -205,6 +205,10 @@ M.defaults = {
205205
enabled = false,
206206
capture_streamed_events = false,
207207
show_ids = true,
208+
quick_chat = {
209+
keep_session = false,
210+
set_active_session = false,
211+
},
208212
},
209213
prompt_guard = nil,
210214
hooks = {
@@ -214,8 +218,8 @@ M.defaults = {
214218
on_permission_requested = nil,
215219
},
216220
quick_chat = {
217-
default_model = nil, -- Use current model if nil
218-
default_agent = nil, -- Use current mode if nil
221+
default_model = nil,
222+
default_agent = 'plan', -- plan ensure no file modifications by default
219223
default_prompt = nil, -- Use built-in prompt if nil
220224
},
221225
}

0 commit comments

Comments
 (0)