Offer a way back to Setup from the lobby
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
After the first Setup, neither the web server nor the desktop app offers any way back to the Setup page. Someone who skipped the Google API key there, which the page marked Optional, starts interviews in which the interviewer never speaks, and the only fix is to find codetrial.env.local, edit it by hand and restart. On the desktop app that file sits in %LOCALAPPDATA%\org.sysprog21.codetrial, which nothing in the app names.
I propose adding a way back to Setup from the lobby, as one change covering both the web server and the desktop app, since the desktop app only shows the server's pages.
Current behavior
Setup is a cold-start phase, not a route of the app. At ce2c50a, main serves it only when is_cold_start holds (src/main.rs:356, src/main.rs:538): no --config, no primary config file, and no LIVEKIT_* in the environment. serve_setup (src/main.rs:569) runs setup_service (src/web/setup.rs:45) on its own router until the config is written, then hands the socket to the full app, which has no Setup route. Once the file exists, every later launch skips Setup.
Proposed behavior
A "Change keys" entry in the lobby opens a Setup page prefilled with the current LiveKit URL and the presence of each key, never the secret values. Saving writes the same codetrial.env.local through the existing validation and credential probe, then the server restarts, or the desktop app restarts its child server, so the new keys take effect.
Setup's existing guard applies unchanged: the page answers only to a loopback Host (src/web/setup.rs:73), so a server deployed for other people never shows the entry and stays configured through its file.
Decision needed
How the new keys take effect:
- Restart the process after writing. Simplest, and the startup path stays the only place keys are read. On the web server this needs a supervisor or the user to start it again; the desktop app can restart its child itself.
- Reload the config in the running server. No restart, but the provider pool (
src/main.rs:487) and the decision to host interviewers (src/main.rs:450) are made once at startup today, so this touches far more code.
I would start with option 1. Which one should this take?
- Vorherrschende Sprache
- Rust
- Sterne
- 215
- Forks
- 141
- Ø Merge
- 1 T. 12 Std.
- Gemergte PRs (30 T.)
- 232
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sysprog21/codetrial
-
Audio output can be confirmed without playing a test soundEvtl. vergeben @ChenYingHan1121 hat das vor 12 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
sysprog21/codetrial#359 · 9 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Reset or Show pressed while the task cube is turning does not stickEvtl. vergeben @YEH-YU-YANG hat das heute übernommen. Offen
sysprog21/codetrial#558 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Treat low-evidence candidate speech as unassessedEvtl. vergeben @Danielncku hat das vor 1 Tag übernommen. Offen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
sysprog21/codetrial#553 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Web lobby cannot reopen Setup after configurationEvtl. vergeben @YEH-YU-YANG hat das vor 3 Tagen übernommen. Offen
sysprog21/codetrial#525 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Jim's stage covers the editor, and Hide avatar does not free the spaceEvtl. vergeben @Phonlin hat das vor 4 Tagen übernommen. Offen
sysprog21/codetrial#512 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in sysprog21/codetrial
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
dekobon/big-code-analysis#1729 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
akitaonrails/ai-memory#1888 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
peteonrails/voxtype#941 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
bug priority:medium triage:maintainable
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ccusage/ccusage#2000 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag