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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user