Skip to content

Conversation

ba0f3
Copy link
Contributor

@ba0f3 ba0f3 commented Sep 20, 2025

This commit introduces an auto-reconnect mechanism for the HTTP and SSE client connections.

A new runSessionWithReconnect function has been added to handle the connection lifecycle. This function attempts to connect to the server in a loop. If the connection fails or is lost during a session, it will wait for 5 seconds and then try to reconnect.

The httpCmd and sseCmd commands have been updated to use this new reconnection logic.

The handleSession function now returns an error, allowing the reconnection loop to distinguish between a clean exit and a connection error.

The Bubble Tea application model has also been updated to quit on tool or resource errors, which propagates the error up and triggers the reconnection process.

google-labs-jules bot and others added 2 commits September 20, 2025 19:45
This commit introduces an auto-reconnect mechanism for the HTTP and SSE client connections.

A new `runSessionWithReconnect` function has been added to handle the connection lifecycle. This function attempts to connect to the server in a loop. If the connection fails or is lost during a session, it will wait for 5 seconds and then try to reconnect.

The `httpCmd` and `sseCmd` commands have been updated to use this new reconnection logic.

The `handleSession` function now returns an error, allowing the reconnection loop to distinguish between a clean exit and a connection error.

The Bubble Tea application model has also been updated to quit on tool or resource errors, which propagates the error up and triggers the reconnection process.
@ba0f3 ba0f3 merged commit 4bfa492 into main Sep 20, 2025
1 check failed
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