fix: add session cleanup to AgentDelegationTool#15996
Conversation
Cleanup the session created by the `AgentDelegationTool` after the tool invocation has completed i.e. the response from the newly created session has been received. Fixes #15995
|
Personally I think it would be cleaner if these sessions are never added to the shown sessions in the first place. Do you think this would be easily possible? |
I agree. And then work on improvements in a follow-up. There is also another open Issue mentioned in a FIX-ME comment in the code that should be tackled. |
|
I have created a follow-up ticket in: #16000 |
Cleanup the session created by the `AgentDelegationTool` after the tool invocation has completed i.e. the response from the newly created session has been received. Fixes eclipse-theia#15995
What it does
Cleanup the session created by the
AgentDelegationToolafter the tool invocation has completed i.e. the response from the newly created session has been received.Fixes #15995
How to test
Follow the instructions of #15995
Observe that when clicking the
Show Chatsbutton any temp session that as been created by theAgentDelegationToolis no longer visible i.e. has been removed successfully.Follow-ups
Breaking changes
Attribution
Review checklist
Reminder for reviewers