fix(gui): a failed start can be tried again, and a close that was not whole stays on screen

The window retries a failed server start when the next tab opens or when the
person asks, says a server still starting is starting, tells the person which
wanted companies did not open, and when the close reports an incomplete last
backup or a bad exit it stays up with a Close anyway button. ViewerOwner only
forwards to AppHost now, and the format upgrade goes to the window's own server.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 09:21:20 -07:00
1 parent acc17a7703
commit 9f3f292bf5
5 files changed
+417 -80

No files matched your search

+11 -3
View File
@@ -180,9 +180,17 @@ pub trait Owner: Send + Sync {
fn serve_close(&self, _book: &str) -> Result<Option<String>, String> {
Ok(None)
}
/// Close the server (the window closed): its input is closed and the
/// exit waited for, for a bounded time. `Ok(Some(words))` when it is
/// still finishing by itself after that. Blocks.
/// Of the companies `wanted` (asked to be open at the start), those
/// the server does not have open now, each with why in words: asked
/// once the server is ready. Blocks.
fn serve_not_open(&self, _wanted: &[String]) -> Vec<(String, String)> {
Vec::new()
}
/// Close the server (the window closed): each open company is closed
/// first, then the server's input, and the exit is waited for, for a
/// bounded time. `Ok(Some(words))` says what was not whole, a line
/// each: a company whose last backup was incomplete, a server that
/// exited badly, one still finishing by itself after the wait. Blocks.
fn serve_stop(&self) -> Result<Option<String>, String> {
Ok(None)
}