feat: add automatic ACP session recovery with intelligent history truncation (#2711)
This commit is contained in:
@@ -397,7 +397,12 @@ function ACPClient:_create_stdio_transport()
|
||||
|
||||
-- Read stderr for debugging
|
||||
stderr:read_start(function(_, data)
|
||||
if data then vim.schedule(function() vim.notify("ACP stderr: " .. data, vim.log.levels.DEBUG) end) end
|
||||
if data then
|
||||
-- Filter out common session recovery error messages to avoid user confusion
|
||||
if not (data:match("Session not found") or data:match("session/prompt")) then
|
||||
vim.schedule(function() vim.notify("ACP stderr: " .. data, vim.log.levels.DEBUG) end)
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user