fix(acp): propagate agent cleanup errors on session delete - #10112
Conversation
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d4c249cabb
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
|
Nice fix — propagating these cleanup errors (and treating "not loaded" as a non-error) is the right call, and doing the check-and-pop atomically under the write lock is clean. Two things before I approve:
With those, happy to approve. |
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Hi @DOsinga thanks for the review, updated it |
|
thanks - I can approve it as addressed |
Summary
This PR stops swallowing errors when tearing down in-memory agents during ACP session delete, archive, and close. It adds remove_session_if_loaded so cleanup is skipped when no agent is loaded and failures are propagated when one is, following up on the session lifecycle work in #7857.
Testing
mannual