Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Desktop app opens a blank window on Windows and sends tauri.localhost to the browser

Chiusa
#510 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Patriciaath999 ci sta già lavorando.

Dal 26/10/2026.

  • #514 di @Patriciaath999 — aperta

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

  1. Install desktop-latest on 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.

Image Image

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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.