Skip to content

fix: include response handling in retries and dispose clients in build to avoid reconnects#162

Merged
christianalfoni merged 1 commit into
mainfrom
retry-fixes
Aug 14, 2025
Merged

fix: include response handling in retries and dispose clients in build to avoid reconnects#162
christianalfoni merged 1 commit into
mainfrom
retry-fixes

Conversation

@christianalfoni
Copy link
Copy Markdown
Contributor

No description provided.

@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Comment on lines +261 to +262
this.errorEmitter.dispose();
this.messageEmitter.dispose();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be disposed first, or is this just some sorting change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not think it actually fixes anything, but we want to "silence" the AgentConnection before we start cleaning up the rest. For example it could be a risk when disposing the underlying connection that an event sneaks through during the disposal, which we do not want 😄

@christianalfoni christianalfoni merged commit f70903a into main Aug 14, 2025
1 check passed
mohamedveron pushed a commit that referenced this pull request Nov 20, 2025
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.

2 participants