Desktop app opens a blank window on Windows and sends tauri.localhost to the browser
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
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.
- Dominant language
- Rust
- Stars
- 177
- Forks
- 100
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 217
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sysprog21/codetrial
-
Audio output can be confirmed without playing a test soundPossibly taken @ChenYingHan1121 claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
sysprog21/codetrial#359 · 5 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Add a Copy code button to the final reportPossibly taken @yansawu claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
sysprog21/codetrial#318 · 6 comments · 2 reactions · 1 assignee ·
Maintainers usually reply within 1 day
-
Offer a way back to Setup from the lobbyPossibly taken @Patriciaath999 claimed this today. Open
sysprog21/codetrial#513 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Jim's stage covers the editor, and Hide avatar does not free the spacePossibly taken @Phonlin claimed this today. Open
sysprog21/codetrial#512 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Add LeetCode problem numbers to UI problem mappingsPossibly taken @seallllllllll claimed this today. Open
sysprog21/codetrial#507 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in sysprog21/codetrial
Similar issues
-
documentation enhancement SIEM
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ADORSYS-GIS/wazuh-agent-status#265 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
manuscript-lang/manuscript#1629 ·
Maintainers usually reply within 1 day
-
autofixer: follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tursodatabase/turso#10885 ·
Maintainers usually reply within 1 day
-
🐞 bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
nannou-org/gantz#475 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100