From d82c8bb2b9a661aa7bebcdf00107a4dcae6d84a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A7=E9=A9=8A?= Date: Wed, 11 Nov 2026 23:03:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=96=E8=A7=80:=20the=20other=20settings=20?= =?UTF-8?q?pages=20and=20the=20phone=20follow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 權限: 直接操作 and 自動審核 are switches in plain cards; 技能 and 連接器 lists use switches; 電腦's cards are white with the same edge - phone: the chat takes the bot's colour, the bot's words have no bubble, 需要你允許 is the yellow card, the input has an ink edge; while it works the chat ends with the bot's face and the same 「正在…」 as on the computer - screenshot hooks: ANYBOT_SHOT_VIEW=empty, ANYBOT_SHOT_SUB - FEATURES.md: 外觀 Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01Uirha3QxSfoydRPM9mjj6d --- FEATURES.md | 10 ++++++++ mobile/index.html | 33 ++++++++++++++++--------- src/app.rs | 55 ++++++++++++++++++++++++++++------------- src/app/channels_ui.rs | 4 +-- src/app/computers_ui.rs | 6 ++--- src/app/remote_ui.rs | 3 ++- 6 files changed, 76 insertions(+), 35 deletions(-) diff --git a/FEATURES.md b/FEATURES.md index 4a74fe1..ced7e94 100644 --- a/FEATURES.md +++ b/FEATURES.md @@ -1371,6 +1371,16 @@ computer_use_screenshot、click、mouse_move、mouse_button(按住/放開) - **權限不變**:要你核准的步驟照樣停下來等;要放著讓它自己做完,Bot 要開「直接操作」或「自動審核」(Claude Code 也要配 auto mode)。 - **終端機**:`anybot --ask "/goal …"` 會一直做到達成、做不到或暫停才結束(像 `claude -p "/goal …"`),最長 ANYBOT_ASK_SECS 秒(預設 900)。 - 實測(假的 OpenAI 相容模型,獨立的大腦):「兩步」的目標第一輪檢查說還差第二步,AnyBot 自己開第二輪,第二輪後判定達成;永遠沒進展的目標在第 3 輪暫停;要登入的目標判定在等使用者而暫停,回一句「我登入了」後接著做並達成;目標的那幾行沒有出現在任何一次送給模型的內容裡。 +- **外觀(Bot 是主角)**:介面本身安靜(黑、白、灰),顏色和動作都留給 Bot。 + - **字型**:預設思源黑體(Noto Sans TC,Regular 和 Bold 兩種粗細都包在 App 裡,每台電腦看起來一樣);標題、選中的項目、回覆裡的粗體和標題用真的粗體。設定 › 一般可以換成系統字型或粉圓體(這兩種只有一種粗細)。 + - **聊天跟著 Bot 的顏色**(預設;設定 › 一般 › 聊天的顏色可以改成只用黑色):你的訊息泡泡、送出鈕、側邊欄選中的那格(淡淡一層)。Bot 的回覆不用泡泡,像文件一樣排在頁面上,只有錯誤訊息有泡泡。 + - **輸入框上方的臉**:Bot 的臉從輸入框後面探出來,旁邊一句話說它在做什麼(原本對話最後的轉圈那一行搬到這裡)。眼睛就是狀態:待命時往下看輸入框;在想時往上、慢慢左右飄;有步驟在跑時看著旁邊那句「正在…」;需要你時看著你,臉上多一個黃點,旁邊寫「等你決定」;做完笑兩秒;上一輪出錯時眼睛變兩條橫線。新對話時沒有這張小臉(臉是中間那張大的)。 + - **需要你允許**:不再是蓋住整個視窗的彈出視窗,改成固定在輸入框上方的黃色卡片,上面的聊天照樣看得到,下面的輸入框照樣可以打字告訴它怎麼改。輸入框空著時 Enter 允許、Esc 拒絕(卡片出現 0.6 秒後才算,免得原本要按的 Enter 誤答)。要你親自處理的步驟(接管畫面)還是聊天裡的卡片。 + - **黃色只代表「需要你」**:允許卡片、臉上的黃點、側邊欄 Bot 上的黃點、設定裡「更新」旁的黃點(有新版)。有新訊息還是藍色小點。 + - **標題列**:Bot 的名字在左邊(按一下開對話詳細資訊),右邊「分享」和「⋯」不再有圓框;圖示線條粗一點(2.25)。 + - **新對話**:Bot 的臉放大、一句「嗨,我是 …」和它的描述,下面三個可以直接點的開頭(點了把字放進輸入框)。 + - **設定**:左邊分頁只有文字,選中的黑底白字;每組設定一張白色細框卡片,一列一件事(左邊名稱、右邊控制項,名稱下最多一行小字,其餘說明在「?」裡);選項是分段按鈕,開關是黑軌白鈕。「一般」的名稱改成白話(聊天的顏色、用意思找記憶、Bot 可以翻的資料夾)。「整合」分成三頁(訊息管道、連接器、技能);訊息管道先列「已連接」(標記、名稱 · 種類、誰回覆、狀態、開關、⋯ 裡移除),「新增管道」是八個方塊,點了才在下面打開那一種的表單。權限頁的「直接操作」「自動審核」也是開關。 + - **手機**:聊天跟著 Bot 的顏色、Bot 的回覆不用泡泡、允許卡片是黃色、輸入框是墨色框線;工作中在對話最後顯示 Bot 的小臉和跟電腦上一樣的那句「正在…」。 - **自己進化**:一件事做了 5 步以上(操作電腦、網頁、指令,不算記憶和設定),回答完後在背景回頭看一次:這是在網站或程式上動手操作的事(填表、發文、回留言、上傳下載、改設定),就把這次真的成功的最短做法存成技能(用畫面上的名字,不寫編號和座標;繞路和失敗寫成「注意」;使用者說過的偏好寫進去);已經有同一件事的技能就合併成更好的一版,照著做而且很順就不動。回覆下面會多一行「(學會了新做法「…」)」或「(把做法「…」更新了)」。系統指示要 Bot 開始做事前先看技能清單、有符合的先 use_skill。實測(httpbin 訂 pizza,真的 Grok):第一次 11 步學到技能;第二次先讀技能、10 步 24 秒一次做完,回頭看後判斷不用改。 - **重播學會的做法**(replay_skill):存技能時,模型會挑出這次真的成功、必要、會改變東西的步驟(不含截圖、讀取這類只是看的步驟、不含繞路和失敗),連同每一步點的是哪個東西(「勾選框「自動更新」」,不是編號)一起存下來;內容每次不同的工作(發文的文字、回覆的留言)不存步驟。技能清單裡標「可重播,N 步」。 - 要做的事和技能一模一樣時,Bot 叫 replay_skill,AnyBot 就一步一步照做,中間不問模型:畫面上的步驟在最近的畫面清單裡找同一種、同名的東西換成現在的編號(值和勾選狀態不算),網頁上的步驟改用字找;找不到時先自動截一次圖再找,還是找不到就停下來,告訴 Bot 停在第幾步、找不到什麼,由它接手。 diff --git a/mobile/index.html b/mobile/index.html index cad501f..538bc68 100644 --- a/mobile/index.html +++ b/mobile/index.html @@ -21,7 +21,7 @@ --primary:#1c1c1c;--on-primary:#fff;--text:#1c1c1c;--text2:#1c1c1cad;--text3:#1c1c1c8f;--text4:#1c1c1c66; --line:#1c1c1c1f;--line2:#1c1c1c14;--focus:#1e86fc;--accent:#1680f3;--accent-ink:#0b6dd3; --danger:#e72e3b;--ok:#10ab61;--warn:#da830e; - --bubble-user:#1c1c1c;--bubble-user-ink:#fff;--bubble-bot:#1c1c1c0f;--card:#fff; + --bubble-user:#1c1c1c;--bubble-user-ink:#fff;--bubble-bot:#1c1c1c0f;--card:#fff;--attention:#ffc83d;--attention-bg:#fff6d6; --spec:#ffffff59;--shadow:0 2px 8px -1px #0000000d,0 1px 2px #00000008,0 0 0 1px #e4e4e40a; --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang TC","Noto Sans TC","Segoe UI",system-ui,sans-serif; --mono:ui-monospace,SFMono-Regular,Menlo,monospace; @@ -31,14 +31,14 @@ --pane:#161616;--chrome:#121212;--side:#0e0e0e;--elev:#1f1f1f;--hover:#f5f5f50f;--active:#f5f5f514; --primary:#f5f5f5;--on-primary:#121212;--text:#f5f5f5;--text2:#f5f5f5a8;--text3:#f5f5f58a;--text4:#f5f5f566; --line:#f5f5f51a;--line2:#f5f5f514;--focus:#1884fc;--accent:#1884fc;--accent-ink:#4d9bff; - --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525; + --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525;--attention:#ffc83d;--attention-bg:#3a3212; --spec:#ffffff0d;--shadow:none; }} :root[data-theme="dark"]{ --pane:#161616;--chrome:#121212;--side:#0e0e0e;--elev:#1f1f1f;--hover:#f5f5f50f;--active:#f5f5f514; --primary:#f5f5f5;--on-primary:#121212;--text:#f5f5f5;--text2:#f5f5f5a8;--text3:#f5f5f58a;--text4:#f5f5f566; --line:#f5f5f51a;--line2:#f5f5f514;--focus:#1884fc;--accent:#1884fc;--accent-ink:#4d9bff; - --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525; + --danger:#fc2c3e;--bubble-user:#f5f5f52e;--bubble-user-ink:#f5f5f5;--bubble-bot:#f5f5f50a;--card:#252525;--attention:#ffc83d;--attention-bg:#3a3212; --spec:#ffffff0d;--shadow:none; } *{box-sizing:border-box;-webkit-tap-highlight-color:transparent} @@ -116,9 +116,11 @@ a{color:var(--accent-ink)} .m.bot{align-items:flex-start} .bub{max-width:min(86%,560px);padding:7px 12px;border-radius:18px;font-size:15px;line-height:22px;word-wrap:break-word;overflow-wrap:anywhere; background-image:linear-gradient(to bottom,var(--spec),transparent);box-shadow:inset 0 .5px 0 var(--spec),inset 0 0 0 .5px var(--line2)} -.m.user .bub{background-color:var(--bubble-user);color:var(--bubble-user-ink);white-space:pre-wrap} -.m.bot .bub{background-color:var(--bubble-bot)} -.m.err .bub{color:var(--danger)} +/* The chat takes its bot's colour (--bot, set when the chat opens; a black bot keeps the plain bubble). */ +.m.user .bub{background-color:var(--bot,var(--bubble-user));color:var(--bot-ink,var(--bubble-user-ink));white-space:pre-wrap;border-radius:20px 20px 6px 20px} +/* The bot's words sit on the page like a document; only an error gets a bubble. */ +.m.bot .bub{background-color:transparent;padding:2px 2px;max-width:min(100%,640px);box-shadow:none;background-image:none} +.m.err .bub{color:var(--danger);background-color:var(--bubble-bot);padding:7px 12px} .bub p{margin:0 0 8px}.bub p:last-child{margin-bottom:0} .bub ul,.bub ol{margin:4px 0 8px;padding-left:22px} .bub li{margin:2px 0} @@ -163,7 +165,8 @@ a{color:var(--accent-ink)} .typing i{width:5px;height:5px;border-radius:50%;background:var(--text3);animation:blink 1.2s infinite} .typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s} @keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}} -.presence{font-size:12.5px;color:var(--text3);margin:6px 4px;background:linear-gradient(90deg,var(--text3) 30%,var(--text) 50%,var(--text3) 70%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 2s linear infinite} +.working{display:flex;align-items:center;gap:8px;margin:6px 0} +.presence{font-size:13px;color:var(--text3);margin:6px 4px;background:linear-gradient(90deg,var(--text3) 30%,var(--text) 50%,var(--text3) 70%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer 2s linear infinite} @keyframes shimmer{to{background-position:-200% 0}} .summary{align-self:stretch;margin:8px 0;padding:10px 12px;border-radius:12px;background:var(--hover);font-size:13px;color:var(--text2)} .summary b{display:flex;align-items:center;gap:6px;color:var(--text);font-weight:500} @@ -196,7 +199,8 @@ a{color:var(--accent-ink)} .sug .tt{font-size:14px;font-weight:500}.sug .dd{font-size:12px;color:var(--text3)} /* the dock: approvals, queued steering, attachments, the composer */ .dock{flex:none;padding:6px 10px calc(var(--safe-b) + 8px);background:linear-gradient(to bottom,transparent,var(--chrome) 40%)} -.ask{max-width:560px;margin:0 auto 8px;padding:14px 16px;border-radius:16px;background:var(--elev);box-shadow:inset 0 0 0 .5px var(--line),0 6px 24px -6px #0000002e} +/* 需要你: yellow is the one colour for what waits for the person. */ +.ask{max-width:560px;margin:0 auto 8px;padding:14px 16px;border-radius:20px;background:var(--attention-bg);box-shadow:inset 0 0 0 2px var(--attention)} .ask .q{font-weight:600;font-size:15px} .ask .why{font-size:13px;color:var(--text2);margin:4px 0 10px;white-space:pre-wrap;max-height:30vh;overflow:auto} .ask .thumb{width:100%;border-radius:10px;margin:2px 0 10px;display:block;background:var(--hover);min-height:60px} @@ -264,12 +268,13 @@ a{color:var(--accent-ink)} .memmore button{color:var(--accent-ink);font-size:13px} .quoting{max-width:760px;margin:0 auto 6px;display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text2);border-left:3px solid var(--line);padding-left:8px} .quoting span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} -.composer{max-width:760px;margin:0 auto;display:flex;align-items:flex-end;gap:6px;background:var(--elev);border-radius:22px;padding:8px 8px 8px 8px;box-shadow:inset 0 0 0 .5px var(--line),var(--shadow)} +.composer{max-width:760px;margin:0 auto;display:flex;align-items:flex-end;gap:6px;background:var(--elev);border-radius:20px;padding:8px 8px 8px 8px;box-shadow:inset 0 0 0 1.5px var(--text3)} +.composer:focus-within{box-shadow:inset 0 0 0 1.5px var(--text)} .composer.tall{border-radius:18px} .composer textarea{flex:1;border:0;outline:0;background:none;resize:none;font-size:16px;line-height:22px;max-height:140px;min-height:28px;padding:3px 4px} -.cbtn{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;color:var(--text2)} +.cbtn{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;flex:none;color:var(--text2)} .cbtn.plus{background:var(--hover);box-shadow:inset 0 0 0 .5px var(--line)} -.cbtn.go{background:var(--primary);color:var(--on-primary)} +.cbtn.go{background:var(--bot,var(--primary));color:var(--bot-ink,var(--on-primary))} .cbtn.go:disabled{opacity:.35} .cbtn.rec{color:var(--danger)} .cbtn .ic{vertical-align:0} @@ -1048,6 +1053,10 @@ $("island").onclick = () => go("details", {bot: S.open}); function openChat(id) { if (S.open !== id) { S.msgs = []; S.pending = []; S.quote = null; S.unfold = {}; S.openSteps = {}; $("msgs").innerHTML = ""; } S.open = id; + // The chat takes its bot's colour: the person's bubble and the send button. + const ob = bot(id) || {}, chat = $("v-chat"); + if (ob.color && ob.color_key !== "black") { chat.style.setProperty("--bot", ob.color); chat.style.setProperty("--bot-ink", "#fff"); } + else { chat.style.removeProperty("--bot"); chat.style.removeProperty("--bot-ink"); } chatHead(); renderChips(); renderQuote(); loadChat(true); renderDock(); api(base() + `api/bots/${id}/read`, {json: {}}).catch(() => {}); } @@ -1173,7 +1182,7 @@ function renderMsgs() { }); // Still working: what it is doing now; a message nobody answered yet can be sent again. if (busy) h += (lastMsg && lastMsg.role !== "user" && !lastMsg.text && !(lastMsg.tools || []).length) || lastMsg?.role === "user" ? `
` : ""; - if (busy && b.status) h += `
${esc(b.name)} ${esc(b.status)}
`; + if (busy && b.status) h += `
${face(b, "sm")}
${esc(b.status)}
`; if (!busy && lastMsg && lastMsg.role === "user" && !lastMsg.wake && owner()) h += `
還沒有回覆
`; if (!S.msgs.length) { h = `
${face(b, "lg")}
嗨,我是${esc(b.name || "Bot")}
${esc(b.description || "想做什麼?點一個開始,或直接打字。")}
${SUGGEST.map((x, k) => ``).join("")}
`; diff --git a/src/app.rs b/src/app.rs index fec0b00..ff3bc45 100644 --- a/src/app.rs +++ b/src/app.rs @@ -473,6 +473,15 @@ impl App { // Optional view for checking the dialogs in a picture. match std::env::var("ANYBOT_SHOT_VIEW").as_deref() { Ok("chat") => app.state.selected = 1, + // A chat with nothing in it yet. + Ok("empty") => { + app.state.selected = 3; + app.streams.clear(); + app.approvals.clear(); + if let Some(b) = app.state.bot_mut(3) { + b.messages.clear(); + } + } // The working row: a turn with ANYBOT_SHOT_TOOL running (its arguments in // ANYBOT_SHOT_ARGS); without one, a step already done and the model thinking. Ok("working") => { @@ -814,6 +823,10 @@ impl App { app.state.theme = Theme::Dark; } // ANYBOT_SHOT_CALM=1: each screen without the demo's waiting pop-up and running turn on top. + // ANYBOT_SHOT_SUB=1|2: 設定 › 整合's 連接器 or 技能 page. + if let Some(n) = std::env::var("ANYBOT_SHOT_SUB").ok().and_then(|v| v.parse::().ok()) { + app.ch.sub = n; + } if std::env::var("ANYBOT_SHOT_CALM").is_ok() { app.approvals.clear(); app.streams.clear(); @@ -3933,31 +3946,39 @@ impl App { } } SettingsTab::Review => { - Frame::new().fill(p.accent.gamma_multiply(0.07)).stroke(Stroke::new(1.0, p.accent.gamma_multiply(0.45))).corner_radius(12).inner_margin(Margin::symmetric(16, 14)).show(ui, |ui| { - ui.set_width(ui.available_width()); - crate::icons::label(ui, crate::icons::Icon::Zap, &t("直接操作模式"), FONT_BASE, p.text); - hint(ui, "一個開關:讓 Bot 直接使用這台電腦和你的瀏覽器,不再一個個問你", p); - ui.add_space(4.0); + section(ui, "直接操作", p); + setting_card(ui, p, |ui| { let allowed = self.managed.direct.allows() && self.managed.local.allows(); let mut on = self.direct_on(); - if ui.add_enabled(allowed, egui::Checkbox::new(&mut on, t("打開直接操作"))).changed() { - if on { - self.enable_direct_mode(); - } else { - self.disable_direct_mode(); - } - } + ui.horizontal(|ui| { + ui.label(RichText::new(t("讓 Bot 直接動手,不一個個問你")).size(FONT_LG).color(p.text)); + ui.with_layout(Layout::right_to_left(Align::Center), |ui| { + if ui.add_enabled(allowed, computers_ui::toggle(&mut on)).changed() { + if on { + self.enable_direct_mode(); + } else { + self.disable_direct_mode(); + } + } + }); + }); if !allowed { crate::icons::label(ui, crate::icons::Icon::Lock, &t("由你的管理員設定,無法變更"), 12.0, p.danger); } hint(ui, "仍會擋下:危險指令(sudo、格式化…)、密碼和金鑰檔、AnyBot 自己的資料,以及你在「自動審核」寫的「一律詢問」規則(預設:刪除檔案、付款、用你的帳號發文或傳訊息)。macOS 第一次讓 AnyBot 控制瀏覽器時還是會自己問一次,按「好」就行。", p); }); - ui.add_space(12.0); + section(ui, "自動審核", p); setting_card(ui, p, |ui| { - setting_title(ui, "自動審核", "依照自訂規則審核 Bot 的操作", p); - if ui.checkbox(&mut self.state.auto_review, t("開啟自動審核")).changed() { - self.dirty = true; - } + ui.horizontal(|ui| { + ui.spacing_mut().item_spacing.x = 4.0; + ui.label(RichText::new(t("照我寫的規則審核 Bot 的操作")).size(FONT_LG).color(p.text)); + help_mark(ui, "依照自訂規則審核 Bot 的操作", p); + ui.with_layout(Layout::right_to_left(Align::Center), |ui| { + if ui.add(computers_ui::toggle(&mut self.state.auto_review)).changed() { + self.dirty = true; + } + }); + }); hint(ui, "為每種操作寫一條簡短的自然語言規則。規則衝突時,「先詢問」優先。這些規則只對你生效。內建的安全檢查一律有效。", p); if !self.state.auto_review { hint(ui, "自動審核關閉時不會使用規則", p); diff --git a/src/app/channels_ui.rs b/src/app/channels_ui.rs index 3d8f886..7baafa4 100644 --- a/src/app/channels_ui.rs +++ b/src/app/channels_ui.rs @@ -453,7 +453,7 @@ impl App { if ui.add(egui::Button::new(RichText::new(t("移除")).size(12.0).color(p.danger)).frame(false)).clicked() { remove = Some(i); } - ui.checkbox(&mut s.enabled, t("開啟")); + ui.add(computers_ui::toggle(&mut s.enabled)).on_hover_text(t("開啟")); }, |ui| { ui.label(RichText::new(&name).strong().family(crate::bold()).size(FONT_BASE)); @@ -511,7 +511,7 @@ impl App { if ui.add(egui::Button::new(RichText::new(t(if is_open { "收起" } else { "檢視" })).size(12.0).color(p.text2)).frame(false)).clicked() { self.ch.skill_open = if is_open { None } else { Some(name.clone()) }; } - if ui.checkbox(&mut k.enabled, t("開啟")).changed() { + if ui.add(computers_ui::toggle(&mut k.enabled)).on_hover_text(t("開啟")).changed() { dirty_toggle = true; } }, diff --git a/src/app/computers_ui.rs b/src/app/computers_ui.rs index b8bd2a4..b408048 100644 --- a/src/app/computers_ui.rs +++ b/src/app/computers_ui.rs @@ -1289,9 +1289,9 @@ fn sec_title(ui: &mut egui::Ui, title: &str, p: Palette, accessory: impl FnOnce( fn sec_card(ui: &mut egui::Ui, p: Palette, body: impl FnOnce(&mut egui::Ui)) { Frame::new() - .fill(p.hover.gamma_multiply(0.45)) - .stroke(Stroke::new(0.5, p.border)) - .corner_radius(12) + .fill(p.elevated) + .stroke(Stroke::new(1.0, p.border)) + .corner_radius(14) .inner_margin(Margin::symmetric(0, 8)) .show(ui, |ui| { ui.set_width(ui.available_width()); diff --git a/src/app/remote_ui.rs b/src/app/remote_ui.rs index 375fc6e..3ef3aa8 100644 --- a/src/app/remote_ui.rs +++ b/src/app/remote_ui.rs @@ -304,7 +304,8 @@ impl App { let hex = format!("#{:02x}{:02x}{:02x}", c.r(), c.g(), c.b()); view.bots.push(json!({ "id": b.id, "name": b.name, "description": b.description, "color": hex, "shape": b.shape, - "busy": live.is_some(), "status": live.and_then(|l| l.status.clone()).unwrap_or_default(), + "busy": live.is_some(), // (What it is doing now, in the same words as above the input on the computer.) + "status": self.working_phrase(crate::model::now_ms() as f64 / 1000.0, b).unwrap_or_default(), "unread": b.unread, "last": last, "members": !b.members.is_empty(), "pinned": b.pinned, "primary": b.id == self.state.primary_bot, "time": b.messages.iter().rev().find(|m| m.role != Role::Tool).map(|m| m.at).unwrap_or(0),