Skip to content

fix: agent mode 'No response received' — pool recycling mid-request#32

Merged
rogerchappel merged 3 commits into
mainfrom
fix/agent-mode-no-response
Apr 2, 2026
Merged

fix: agent mode 'No response received' — pool recycling mid-request#32
rogerchappel merged 3 commits into
mainfrom
fix/agent-mode-no-response

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

The gateway connection pool was recycling WebSocket clients every 5 minutes, even during active chat requests. If the pool recycled between sending a message and receiving the response, the event handler was on the old (now closed) client. Added a hold/release mechanism to pin clients during active requests.

For mobile debugging where console isn't available. Clears all
chat_ prefixed localStorage keys then reloads cleanly.
The connection pool could recycle a WebSocket client while a chat
request was still waiting for response events. This caused 'No
response received' because the new client didn't have the event
handler. Added hold/release mechanism so active requests pin their
client until the stream completes.
@rogerchappel rogerchappel merged commit 7606d5e into main Apr 2, 2026
1 check passed
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