Desktop app opens a blank window on Windows and sends tauri.localhost to the browser
I maintainer di solito rispondono entro 1 giorno
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
On Windows 11 the desktop app from desktop-latest opens an empty window, and the default browser opens http://tauri.localhost/ at the same time with ERR_CONNECTION_REFUSED. The window never leaves the blank page.
Build: codetrial 0.1.0 (ce2c50a), installed from the desktop-latest release.
Steps
- Install
desktop-lateston Windows 11 and start CodeTrial.
Expected: the window shows "Starting..." and then the setup page.
Actual: the window stays blank and the browser shows tauri.localhost refused the connection.
The server itself is fine: codetrial-server.log ends with open http://127.0.0.1:3101 in your browser to continue setup, and that URL shows the setup page in a browser.
Initial analysis
open_window records the start page with window.url() right after build() (desktop/src/main.rs:285 at ce2c50a). On Windows, WebView2 has not begun loading index.html at that point, so the recorded URL is not http://tauri.localhost/index.html. Once start_page is set, on_navigation (desktop/src/main.rs:185) judges the window's own first navigation against it, navigation::judge finds no matching origin, returns Verdict::OpenInBrowser, and the navigation is cancelled. That is the blank window and the browser tab.
Recording the start page from the first navigation instead, which the comment in on_navigation already says is the start page, fixes it locally: with that change, cargo run on the same machine logs the web view has WebRTC: the interview runs in this window and the window moves on to the server.
- Lingua principale
- Rust
- Stelle
- 215
- Fork
- 141
- Merge medio
- 1g 11h
- PR unite (30g)
- 225
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sysprog21/codetrial
-
Audio output can be confirmed without playing a test soundForse già presa @ChenYingHan1121 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
sysprog21/codetrial#359 · 5 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
I maintainer di solito rispondono entro 1 giorno
-
Suggest the next problem in a series after a passForse già presa @peter1001136 l’ha presa oggi. Aperta
sysprog21/codetrial#536 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Web lobby cannot reopen Setup after configurationForse già presa @YEH-YU-YANG l’ha presa 1 giorno fa. Aperta
sysprog21/codetrial#525 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Offer a way back to Setup from the lobbyForse già presa @Patriciaath999 l’ha presa 2 giorni fa. Aperta
sysprog21/codetrial#513 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sysprog21/codetrial
Issue simili
-
desktop documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
vfarcic/dot-agent-deck#2008 ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
pbakaus/impeccable#1210 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement ux-opportunities
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area: ci priority: P4 ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
shep-pm/shep#1249 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
`PartialEq` for `AssignedBigUint` treats different values as equalForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertastatus:untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
midnightntwrk/midnight-zk#600 ·
I maintainer di solito rispondono entro 2 giorni