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
8 changes: 8 additions & 0 deletions lua/opencode/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ M.select_session = Promise.async(function(parent_id)
return s.title ~= '' and s ~= nil and s.parentID == parent_id
end, all_sessions)

if #filtered_sessions == 0 then
vim.notify(parent_id and 'No child sessions found' or 'No sessions found', vim.log.levels.INFO)
if state.ui.is_visible() then
ui.focus_input()
end
return
end

ui.select_session(filtered_sessions, function(selected_session)
if not selected_session then
if state.ui.is_visible() then
Expand Down
Loading