We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9223b98 commit 252a220Copy full SHA for 252a220
1 file changed
lua/opencode/api.lua
@@ -78,7 +78,7 @@ end
78
---@param prompt string
79
---@param opts? SendMessageOpts
80
function M.run(prompt, opts)
81
- opts = vim.tbl_deep_extend('force', { new_session = false, focus = 'input' }, opts or {})
+ opts = vim.tbl_deep_extend('force', { new_session = false, focus = 'output' }, opts or {})
82
return core.open(opts):and_then(function()
83
return core.send_message(prompt, opts)
84
end)
@@ -87,7 +87,7 @@ end
87
88
89
function M.run_new_session(prompt, opts)
90
- opts = vim.tbl_deep_extend('force', { new_session = true, focus = 'input' }, opts or {})
+ opts = vim.tbl_deep_extend('force', { new_session = true, focus = 'output' }, opts or {})
91
92
93
0 commit comments