You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] WebSocket connection timeout uses a hardcoded value instead of the shared constant #723
The WebSocket client uses a hardcoded 5000 ms timeout instead of the shared timeout constant already defined in the codebase. This creates an unnecessary maintenance point if the timeout value is updated elsewhere.
Environment
OS: Any
Node version: Any
Nanocoder version: Latest
Provider: Any
Model: Any
Steps to Reproduce
Open websocket-client.ts.
Locate the connection timeout implementation.
Compare the timeout value with the shared timeout constant defined in constants.ts.
Expected Behavior
The WebSocket client should use the shared timeout constant instead of a hardcoded value.
Actual Behavior
The timeout is hardcoded to 5000 ms.
Logs/Screenshots
N/A
Additional Context
Using the shared constant keeps timeout values consistent across the codebase.
Future timeout changes would only need to be made in one location.
Note: This is primarily a maintainability improvement rather than a functional bug.
Note: This issue is intentionally kept small and is suitable for first-time contributors. If you're interested in working on it, please leave a comment below and ask to be assigned before opening a pull request.
Hi! I'd like to work on this issue — replacing the hardcoded 5000 ms WebSocket timeout with the shared constant from constants.ts looks like a clean, small change. Could I be assigned? I'll open a PR shortly.
Activity
Guflly commentedon Jul 31, 2026
I can take this.
AaryanCdry commentedon Jul 31, 2026
Hi! I'd like to work on this issue — replacing the hardcoded
5000ms WebSocket timeout with the shared constant fromconstants.tslooks like a clean, small change. Could I be assigned? I'll open a PR shortly.fix: use shared TIMEOUT_PROVIDER_CONNECTION_MS constant instead of ha…
fix: use shared connection timeout constant in websocket client (Nano…