Skip to content

fix(web): the web build has no browser waker, so the window doesn't ask for one - #819

Merged
Hona merged 1 commit into
devfrom
browser-tools/web-build-fix
Nov 23, 2026
Merged

Hona merged 1 commit into
devfrom
browser-tools/web-build-fix

Conversation

@Hona

@Hona Hona commented Nov 23, 2026

Copy link
Copy Markdown
Member

The scheduled OpenCode (Rune) Web Build failed on dev (16fe89bc09, 13:28): apps/desktop/src/workspace/windows/open.rs:203 and :206 call crate::launch::browser_waker and set_message_waker, added by my #732 (re-land of #640). browser_waker exists only off wasm32, and PR CI builds only desktop targets, so nothing caught it.

Both lines are now #[cfg(not(target_arch = "wasm32"))], like browser_waker itself.

Checked

On blade: scripts/web.ps1 -Check (cargo check -p opencode-web --lib --target wasm32-unknown-unknown, WASI SDK 34) exit 0; web clock: 1064 files in 49 crates, no std::time::Instant or SystemTime::now. Nothing else from #657, #742, #762 or #815 fails the web check.

…sk for one

#732 (re-land of #640) set the browser engine's message waker in open.rs on every target, but launch::browser_waker exists only off wasm32, so the scheduled web build failed on dev (open.rs:203/206). Both lines are now native-only, as browser_waker itself is. Checked: scripts/web.ps1 -Check (cargo check -p opencode-web --lib --target wasm32-unknown-unknown) exit 0, web clock ok.
@Hona
Hona merged commit 1036fed into dev Nov 23, 2026
@Hona
Hona deleted the browser-tools/web-build-fix branch November 23, 2026 04:40
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant