feat(gui): each company's assistants: three states, Ask your assistant, the Connect page, a warning before closing
P15 unit A4, plan 3.3 and D-79. The window only reads the books, so it now says so by what it offers. Each company is in one of three states (no assistant, connected, working) read from the books server's own sessions answer, never waited for, drawn as a shape on its tab and said in words with the last thing done at the right of the top bar; the sidebar gives up no height, because the links must all fit at 1479x519. Where a button that edits would be there is "Ask your assistant", which copies a ready sentence. The Connect page has a row per local tool with exact commands, the keys with who is on each, and Revoke through the existing command path. Closing the window or a tab with an assistant connected warns first, before and never beside the server's own close. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d1a2a5a88
commit
022c0c642f
32 files changed
+3083
-40
No files matched your search
@@ -256,6 +256,26 @@ impl Serving {
|
||||
.is_some_and(|i| *lock(&i.gate) == Gate::Starting)
|
||||
}
|
||||
|
||||
/// Whether the server has exited on its own (cheap: asked every frame).
|
||||
pub fn has_exited(&self) -> bool {
|
||||
self.inner
|
||||
.as_ref()
|
||||
.is_some_and(|i| i.owner.serve_exited().is_some())
|
||||
}
|
||||
|
||||
/// The owner that hosts the server, to ask it who is connected (A4).
|
||||
pub fn owner(&self) -> Option<Arc<dyn Owner>> {
|
||||
self.inner.as_ref().map(|i| i.owner.clone())
|
||||
}
|
||||
|
||||
/// Whether the server is up and not closing: it can be asked who is
|
||||
/// connected (A4).
|
||||
pub fn is_up(&self) -> bool {
|
||||
self.inner
|
||||
.as_ref()
|
||||
.is_some_and(|i| *lock(&i.gate) == Gate::Up && *lock(&i.closing) == Closing::Not)
|
||||
}
|
||||
|
||||
/// Whether the start failed and a `retry` would try again.
|
||||
pub fn is_down(&self) -> bool {
|
||||
self.inner
|
||||
|
||||
Reference in new issue
Block a user