Desktop app cannot change keys after the first Setup
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- Rust
- Star
- 215
- Fork
- 141
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 230
Chuẩn bị môi trường
- Không có Dockerfile hay 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 sysprog21/codetrial
-
Treat low-evidence candidate speech as unassessedCó thể đã có người làm @Danielncku đã nhận 4 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
sysprog21/codetrial#553 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add update notifications for the prebuilt Windows binaryCó thể đã có người làm @Yu-Ming-Chang đã nhận 4 ngày trước. Đang mở
sysprog21/codetrial#547 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Offer a way back to Setup from the lobbyCó thể đã có người làm @Patriciaath999 đã nhận 7 ngày trước. Đang mở
sysprog21/codetrial#513 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Jim's stage covers the editor, and Hide avatar does not free the spaceCó thể đã có người làm @Phonlin đã nhận 7 ngày trước. Đang mở
sysprog21/codetrial#512 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add an opt-in shortcut to format JavaScript code in the editorCó thể đã có người làm @webdevbyjasmine đã nhận 8 ngày trước. Đang mở
sysprog21/codetrial#485 · 3 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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/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 72/100
DioxusLabs/blitz#1371 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
carrick-sh/carrick#1494 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test(hydro_std): track_membership join and leave are untestedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
hydro-project/hydro#3289 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
diagram-bug good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
enhapu-afk/omaspec#4 ·