Sign out never recovers when the logout request stalls
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, rust
- Área
- authentication, frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 236
- Forks
- 153
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 187
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sysprog21/codetrial
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Unify Java harness validation error messagesPosiblemente ocupada @weichieh0204 la tomó hoy. Abierto
sysprog21/codetrial#872 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Inferred void class operations are never checked against the starter's return typePosiblemente ocupada @papaya0112 la tomó hoy. Abierto
sysprog21/codetrial#871 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Edge Thumbnail Store accepts a store that does not refresh a key on overwritePosiblemente ocupada @BOBOGUAGUA428 la tomó hoy. Abierto
sysprog21/codetrial#869 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de sysprog21/codetrial
Issues similares
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
manaflow-ai/cmux#59692 ·
Los mantenedores suelen responder en 1 día
-
Retire stale Python-parity labels in Rust ingress and auth testsPosiblemente ocupada @github-actions la tomó hoy. Abiertofactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
JoshCLWren/comic-pile#5874 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
status:ready unit
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
nonagenticai/conveyor#787 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día