Keep Linux file dialogs responsive without crashing
Summary
Intent: Folder → Materials → Add file crashes on Linux, and revealing an exported note fails with the same zbus reactor panic. Run Linux file pickers and export reveal operations inside a live Tokio runtime. ANLG-320.
Demo
Recorded native X11 walkthrough.
With #8222 applied, Folder Add file and transcript upload open system pickers and accept files. Simple TXT export writes to Downloads and opens the containing folder without a reveal panic.
Verification
Ubuntu 24.04 userspace, Rust 1.98.1; from apps/desktop-gpui:
cargo fmt --checkcargo test --locked --workspace(516 passed; three ignored benchmarks)cargo clippy --locked --workspace --all-targets --no-deps -- -D warningscargo build --locked- Regressions cover dialog creation/resumption outside Tokio and real reveal fallback when the desktop portal is unavailable.
- Combined Linux build passes all four gates (517 tests); native file selection, upload and export/reveal verified without credentials.
- Existing CI fixtures now render nested views while settling a11y queries and read accepted automation sockets in blocking mode, fixing the observed asynchronous transcript and macOS
WouldBlockfailures. These changes affect tests only.
Mention-containing TXT export still fails in the shared renderer; four nonfatal upstream GPUI/AccessKit reactor panics remain. Those are outside this Linux portal fix. macOS/Windows application paths, the shipping app and shared crates are unchanged.
Open in Devin Desktop: https://app.devin.ai/desktop/session/9d8a027024b4432ca4bb8eca13f1867e?variant=devin
Requested by: @ComputelessComputer
Summary by cubic
Fixes Linux portal calls crashing with "no reactor running" panics by running them inside a dedicated Tokio runtime.
- Runs a dedicated single-worker Tokio runtime, entered for the main UI loop and for every dialog poll.
- Routes Linux reveal actions through the same runtime, falling back to opening the parent folder when the portal is unavailable.
- Adds regression tests covering dialog creation and reveal behavior outside Tokio, including waiting for the reveal fallback result.
- Updates test infrastructure: automation fixture sockets read in blocking mode, and views draw while accessibility queries settle.
- Leaves the macOS and Windows dialog path unchanged.