Skip to content

fix(agent-server): add safety check for agent.dispose in session cleanup#1291

Merged
ulivz merged 1 commit intomainfrom
fix/agent-dispose-session-deletion
Aug 28, 2025
Merged

fix(agent-server): add safety check for agent.dispose in session cleanup#1291
ulivz merged 1 commit intomainfrom
fix/agent-dispose-session-deletion

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Aug 28, 2025

Summary

Fixes session deletion error by adding safety check for agent.dispose method in AgentSession.cleanup().

The error occurred because some agent instances don't properly implement the dispose method, causing TypeError: this.agent.dispose is not a function when deleting sessions.

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

@netlify
Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit e6ee71a
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68b087434943e3000832e12c
😎 Deploy Preview https://deploy-preview-1291--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ulivz ulivz changed the title fix(tarko): add safety check for agent.dispose in session cleanup fix(agent-server): add safety check for agent.dispose in session cleanup Aug 28, 2025
@ulivz ulivz merged commit 97ef7ad into main Aug 28, 2025
10 checks passed
@ulivz ulivz deleted the fix/agent-dispose-session-deletion branch August 28, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments