Desktop app cannot change keys after the first Setup
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by reading src/main.rs:446-454, desktop/src/server.rs:118,235, and desktop/src/main.rs:294-330 to trace Setup, the launch save code, child shutdown, and exit handling. Decide how the shell securely obtains or generates the save code, then distinguish an intentional restart from a crash and preserve the refusal while an interview is running or reporting. Done means the desktop Setup page can change keys, restart the child successfully, and retain the web half’s interview-safety behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The desktop app still offers no way to change keys after the first Setup. #528 reopens Setup from the lobby for a standalone loopback web server and leaves the desktop app's child server out on purpose: run_web passes !launched_as_child when it builds the Setup context (src/main.rs:446), and the shell launches its child with CODETRIAL_EXIT_WITH_STDIN (desktop/src/server.rs:118), so the lobby there never shows Change keys. A desktop user who skipped the Google key still has to find codetrial.env.local under %LOCALAPPDATA%\org.sysprog21.codetrial, edit it by hand and restart the app.
This is the desktop half split out of #513. It needs three things:
- Change keys in the child server. #528 requires a save code generated at each launch and printed only to the terminal that started the server (
src/main.rs:454). The desktop app has no terminal, so the shell has to obtain that code and supply it to the page, or the child needs another proof only the shell holds. - A restart that is not a failure. After Setup writes the file, the shell has to stop the child with
Server::stop(desktop/src/server.rs:235) and calllaunchagain (desktop/src/main.rs:294). Today any child exit reachesStatus::Exited, which shows the failure page unless the app is quitting (desktop/src/main.rs:330), so the restart has to be told apart from a crash. - The same refusal as the web half. #528 refuses a save while a local interview is running or still writing its report; the desktop restart must keep that, so it never ends an interview in progress.
Which should carry the save code to the desktop page: the shell reading it from the child's output, or the shell generating it and passing it to the child at launch?
- Lenguaje dominante
- Rust
- Estrellas
- 223
- Forks
- 148
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 227
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 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
CODETRIAL_DURATION_MIN does not preselect the interview length in the lobbyPosiblemente ocupada @RWong04 la tomó hace 1 día. Abierto
sysprog21/codetrial#582 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Let candidates choose a report improvement as the next practice focusPosiblemente ocupada @Hsieh-HC la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 74/100
sysprog21/codetrial#580 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Example drawing leaves too little room to draw, even when enlargedPosiblemente ocupada @Disesfgewu la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
sysprog21/codetrial#579 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Mechanize UI color token enforcement checkPosiblemente ocupada @ArthurArthurArthur0817 la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
sysprog21/codetrial#578 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de sysprog21/codetrial
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
A match arm above the largest i64 is compared as 0Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100
DioxusLabs/dioxus#6063 ·
Los mantenedores suelen responder en 1 día
-
`nsh-core` fails to compile when taffy's default `calc` feature is enabled elsewhere in the graphAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
longbridge/nsh#966 ·
Los mantenedores suelen responder en 1 día
-
Windows docs: pin a tested ConPTY version for Kitty graphics; 1.25.260930003 corrupts large uploadsAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
raphamorim/rio#2021 ·
Los mantenedores suelen responder en 1 día