crates/desktop/src/main.rs contains .unwrap() / .expect() calls that can panic the host process.
Problem
- Panics in the desktop host can crash the whole process instead of surfacing a recoverable error.
Suggested direction
- Audit the
.unwrap() / .expect() sites in crates/desktop/src/main.rs and convert them to graceful error surfacing using the existing AppError / ChatError types (crates/app/src/lib.rs lines ~1561-1566).
- Verify the exact
.unwrap() / .expect() sites in crates/desktop/src/main.rs before starting, since those were not fully reviewed.
References
crates/desktop/src/main.rs
crates/app/src/lib.rs — AppError / ChatError (lines ~1561-1566)
crates/desktop/src/main.rscontains.unwrap()/.expect()calls that can panic the host process.Problem
Suggested direction
.unwrap()/.expect()sites incrates/desktop/src/main.rsand convert them to graceful error surfacing using the existingAppError/ChatErrortypes (crates/app/src/lib.rslines ~1561-1566)..unwrap()/.expect()sites incrates/desktop/src/main.rsbefore starting, since those were not fully reviewed.References
crates/desktop/src/main.rscrates/app/src/lib.rs—AppError/ChatError(lines ~1561-1566)