Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lua/opencode/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,10 @@ M.ensure_current_mode = Promise.async(function()

-- Try to use the configured default mode if it's available
if default_mode and vim.tbl_contains(available_agents, default_mode) then
state.current_mode = default_mode
return M.switch_to_mode(default_mode):await()
else
-- Fallback to first available agent
state.current_mode = available_agents[1]
return M.switch_to_mode(available_agents[1]):await()
end
end
return true
Expand Down
Loading