Sign out never recovers when the logout request stalls
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 56/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ệ
- javascript, rust
- Lĩnh vực
- authentication, frontend
Hướng nghiên cứu
Start in web/app.js at accountUpdatePending() and the lobby's /api/logout handler. Trace the session check and existing browser tests for logout, then reproduce a stalled POST /api/logout. Done when the wait is bounded, the page can report or check whether sign-out succeeded, and pending controls recover so the user can retry.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Observed behavior
The lobby's Sign out button posts to /api/logout and reloads the page only after that request settles. The request has no timeout, so when the server accepts the connection and never answers, the page never reloads and Sign out stays disabled. Nothing tells the candidate what happened, and the only way out is to reload by hand. Once #782 lands, Your recordings is inert for as long as the request is pending as well.
While the request is pending, Start interview and Delete saved reports stay enabled, because accountUpdatePending() in web/app.js does not cover a pending sign-out. Whether a click then succeeds depends on whether it reaches the server before the session row is deleted.
Expected behavior
- The wait for
/api/logoutis bounded, for example withAbortSignal.timeout(requestTimeoutMs). - When the wait ends without a response, the lobby does not reload blindly: the browser has not received the
Set-Cookiethat clears the session, so a reload can come back signed in. It re-checks/api/sessionor shows that sign-out could not be confirmed, and Sign out can be pressed again. - The pending sign-out state is cleared on that path, so no control stays disabled or inert for good.
Reproduction
- Run a browser test (or devtools request blocking) that never answers
POST /api/logout. - Sign in, open the lobby and click Sign out.
- Wait past the timeout you expect. The page does not reload and Sign out stays disabled.
Notes
Raised in the review of #782, where the author kept the pull request to recording-link visibility. A timeout alone is not the fix, since an aborted request does not say whether the server finished the logout: the recovery path above is the part that needs a decision.
- Ngôn ngữ chính
- Rust
- Star
- 236
- Fork
- 153
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 187
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 sysprog21/codetrial
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Unify Java harness validation error messagesCó thể đã có người làm @weichieh0204 đã nhận hôm nay. Đang mở
sysprog21/codetrial#872 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inferred void class operations are never checked against the starter's return typeCó thể đã có người làm @papaya0112 đã nhận hôm nay. Đang mở
sysprog21/codetrial#871 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwriteCó thể đã có người làm @BOBOGUAGUA428 đã nhận hôm nay. Đang mở
sysprog21/codetrial#869 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sysprog21/codetrial
Issue tương tự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#59692 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Retire stale Python-parity labels in Rust ingress and auth testsCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mởfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
JoshCLWren/comic-pile#5874 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:ready unit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nonagenticai/conveyor#787 ·
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 79/100
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 78/100
Maintainer thường phản hồi trong vòng 1 ngày