Skip to content

Commit 252a220

Browse files
committed
fix: wrong focused window
1 parent 9223b98 commit 252a220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/opencode/api.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ end
7878
---@param prompt string
7979
---@param opts? SendMessageOpts
8080
function M.run(prompt, opts)
81-
opts = vim.tbl_deep_extend('force', { new_session = false, focus = 'input' }, opts or {})
81+
opts = vim.tbl_deep_extend('force', { new_session = false, focus = 'output' }, opts or {})
8282
return core.open(opts):and_then(function()
8383
return core.send_message(prompt, opts)
8484
end)
@@ -87,7 +87,7 @@ end
8787
---@param prompt string
8888
---@param opts? SendMessageOpts
8989
function M.run_new_session(prompt, opts)
90-
opts = vim.tbl_deep_extend('force', { new_session = true, focus = 'input' }, opts or {})
90+
opts = vim.tbl_deep_extend('force', { new_session = true, focus = 'output' }, opts or {})
9191
return core.open(opts):and_then(function()
9292
return core.send_message(prompt, opts)
9393
end)

0 commit comments

Comments
 (0)