Error banner stays after the server connection recovers
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, vite
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu trong src/client/App.tsx, tập trung vào refresh() và các cập nhật trạng thái lỗi. Tái hiện vấn đề bằng cách chạy Vite và API riêng biệt, dừng rồi khởi động lại API, sau đó chờ polling thành công. Được xem là hoàn tất khi banner kết nối biến mất sau khi /api/workspace trả về 200, trong khi các lỗi không liên quan như "Could not save." vẫn hiển thị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps
- Run the API and Vite as separate processes, so that stopping one does not stop the other (
npm run devusesconcurrently -k, which stops both):npx vitenode --env-file-if-exists=.env --import tsx src/server/index.ts
- Open http://127.0.0.1:5173 and stop only the API process. Wait ~7 s (the app polls every 3 s).
- Start the API process again and wait for a few more polls.
Expected: the connection error disappears once polling succeeds again.
Actual: a red banner ("Server returned an unreadable response.", the non-JSON 502 from the Vite proxy) stays after the API is back (/api/workspace returns 200), until it is closed manually. With the API unreachable directly, the banner reads "Failed to fetch".
Cause: refresh() in src/client/App.tsx calls setError(...) on failure but never clears it on success. setError('') is only called from user-action handlers.
Environment: Node 26.8.1, main at c2569bb (observed in the dev setup above).
Proposal: keep connection errors in separate state and clear only that state when a poll succeeds, so unrelated errors (e.g. "Could not save.") are not wiped by the 3 s poll. I'd be happy to open a small PR for this if you agree with the approach. I'll wait for your go-ahead before starting.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.8k
- Fork
- 344
- Merge trung bình
- 7 giờ 8 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CopilotKit/OpenDots
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CopilotKit/OpenDots#69 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Long page titles are clipped in the page editorCó thể đã có người làm @charan-rathore đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
CopilotKit/OpenDots#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CopilotKit/OpenDots#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
copilotkit project select rewrites INTELLIGENCE_API_KEY to CPK_INTELLIGENCE_API_KEY, which OpenDots never readsCó thể đã có người làm @charan-rathore đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
CopilotKit/OpenDots#55 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
АгентыĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
CopilotKit/OpenDots#84 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CopilotKit/OpenDots
Issue tương tự
-
perf(core): getComments() runs the approved count and the comment list as two sequential queriesĐang mởarea/core bot:bug bot:working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
emdash-cms/emdash#3905 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
lingdojo/kana-dojo#31728 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))Có thể đã có người làm @zjncs đã nhận hôm nay. Đang mởcomponent:tokenless
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
agentic-os-org/ANOLISA#6112 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
rjsf-team/react-jsonschema-form#5439 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày