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 816cd34 commit d660d9bCopy full SHA for d660d9b
lua/gp/init.lua
@@ -887,7 +887,10 @@ end
887
M.refresh_state = function()
888
local state_file = M.config.state_dir .. "/state.json"
889
890
- local state = M.file_to_table(state_file) or {}
+ local state = {}
891
+ if vim.fn.filereadable(state_file) ~= 0 then
892
+ state = M.file_to_table(state_file) or {}
893
+ end
894
895
M._state.chat_agent = M._state.chat_agent or state.chat_agent or nil
896
if M._state.chat_agent == nil or not M.agents[M._state.chat_agent] then
0 commit comments