newpr 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newpr",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "AI-powered large PR review tool - understand PRs with 1000+ lines of changes",
5
5
  "module": "src/cli/index.ts",
6
6
  "type": "module",
@@ -216,8 +216,9 @@ export function useStack(sessionId: string | null | undefined, options?: UseStac
216
216
  });
217
217
 
218
218
  es.onerror = () => {
219
- es.close();
220
- eventSourceRef.current = null;
219
+ if (es.readyState === EventSource.CLOSED) {
220
+ eventSourceRef.current = null;
221
+ }
221
222
  };
222
223
  }, []);
223
224