We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d71c20 commit 2bfcb8fCopy full SHA for 2bfcb8f
lua/opencode/core.lua
@@ -53,6 +53,10 @@ function M.open(opts)
53
54
state.is_opening = true
55
56
+ if not require('opencode.ui.ui').is_opencode_focused() then
57
+ require('opencode.context').load()
58
+ end
59
+
60
local are_windows_closed = state.windows == nil
61
if are_windows_closed then
62
-- Check if whether prompting will be allowed
@@ -70,10 +74,6 @@ function M.open(opts)
70
74
71
75
M.ensure_current_mode()
72
76
73
- if not require('opencode.ui.ui').is_opencode_focused() then
- require('opencode.context').load()
- end
-
77
if opts.new_session then
78
state.active_session = nil
79
state.last_sent_context = nil
0 commit comments