Add Goose as an ACP provider (#2730)

Co-authored-by: Jack Wright <jack.wright@nike.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
Jack Wright
2025-09-30 02:19:06 -07:00
committed by GitHub
parent 1947025ad3
commit 4c0493440b
3 changed files with 11 additions and 4 deletions

View File

@@ -1132,6 +1132,9 @@ function M._stream_acp(opts)
})
acp_client = ACPClient:new(acp_config)
acp_client:connect()
-- If we create a new client and it does not support sesion loading,
-- remove the old session
if not acp_client.agent_capabilities.loadSession then opts.acp_session_id = nil end
if opts.on_save_acp_client then opts.on_save_acp_client(acp_client) end
end
local session_id = opts.acp_session_id