We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97da492 commit 2546ca5Copy full SHA for 2546ca5
1 file changed
lua/opencode/core.lua
@@ -23,6 +23,14 @@ M.select_session = Promise.async(function(parent_id)
23
return s.title ~= '' and s ~= nil and s.parentID == parent_id
24
end, all_sessions)
25
26
+ if #filtered_sessions == 0 then
27
+ vim.notify(parent_id and 'No child sessions found' or 'No sessions found', vim.log.levels.INFO)
28
+ if state.ui.is_visible() then
29
+ ui.focus_input()
30
+ end
31
+ return
32
33
+
34
ui.select_session(filtered_sessions, function(selected_session)
35
if not selected_session then
36
if state.ui.is_visible() then
0 commit comments