Skip to content

Commit a6da161

Browse files
committed
fix(sessions): loading session in non git repo was broken
This should fix #204
1 parent 6f86636 commit a6da161

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/opencode/session.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ M.get_all_workspace_sessions = Promise.async(function()
5050
if not util.is_git_project() then
5151
-- we only want sessions that are in the current workspace_folder
5252
sessions = vim.tbl_filter(function(session)
53-
if session.workspace and vim.startswith(vim.fn.getcwd(), session.workspace) then
53+
if session.directory and vim.startswith(vim.fn.getcwd(), session.directory) then
5454
return true
5555
end
5656
return false

0 commit comments

Comments
 (0)