fix(desktop): remove dead tunnel-unavailable gate and native driver (VAPP-87) #97
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VAPP-87-remove-dead-tunnel-gate-and-native-driver"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Removes the entire dead-premise layer around desktop tunnel panes (VAPP-86 gate + PR #96 native driver), after live testing showed the premise was wrong.
Why
The "desktop" app runs the wasm web client inside a webview (embedded server + webview, main.rs), not native dioxus-desktop rendering. The wasm client can't be built with
feature = "desktop"(it pullswry, a native-only dep), socfg!(feature = "desktop")is always false in the rendering client. Therefore:TunnelUnsupportedgate is dead code in the client - it never fires. The panes already run the same wasm drivers as the browser, and they work (verified: terminal opens a live shell,pwd/ls /produce output).document::eval+tokio-tungsteniteterminal driver never executes - dead code.feature = "desktop"): it renderedTunnelUnsupportedinto the HTML, which the wasm client then hydrated away with the real pane - an SSR/hydration mismatch. Removing the gate makes SSR and client agree.Changes
cfg!(feature = "desktop")gate from Files and Remote-desktop panes (Terminal's was already removed in #96).TunnelUnsupportedcomponent and thetunnel_gate_guardregression test (it pinned the now-removed gate).imp_native), the sharednative_relaytransport module, and the desktop-only toolbar-button hiding.Net runtime effect in the webview is unchanged (the gate never fired there); the panes keep running their wasm drivers. 414 lines of dead code removed, no dependencies added.
Verification
cargo check --no-default-features --features desktop: clean.just pre-commit): fmt,clippy --features server -D warnings, server check, wasm check, all 100 tests pass.Related
dx servehot-reload artifact during editing, not a real bug - closing separately.🤖 Generated with Claude Code