Activity strip: only while an agent is at work, as the server's
ci / check (push) Failing after 2s
ci / start (push) Failing after 3s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 10:54:38 +00:00
1 parent 7c0c86ada1
commit b8a4f1bc57
1 file changed
+4 -3
+4 -3
View File
@@ -273,15 +273,16 @@ async function read(withContext) {
function renderStrip() { function renderStrip() {
const strip = $("activity-strip") const strip = $("activity-strip")
const text = chat && summary?.total ? summaryText(summary) : "" // While something runs, as the server's strip: a chat whose helpers all finished long ago does
// not carry "12 finished" above its message box for ever (the panel still lists them).
const text = chat && summary?.active ? summaryText(summary) : ""
strip.hidden = !text strip.hidden = !text
if (!text) return clear(strip) if (!text) return clear(strip)
const busy = summary.active > 0
strip.replaceChildren( strip.replaceChildren(
h( h(
"button", "button",
{ type: "button", class: "strip__btn", "aria-label": `${text} — ${t("Open the activity panel")}`, onclick: () => showPanel(true) }, { type: "button", class: "strip__btn", "aria-label": `${text} — ${t("Open the activity panel")}`, onclick: () => showPanel(true) },
h("span", { class: `dot${busy ? " is-busy" : " is-ok"}`, "aria-hidden": "true" }), h("span", { class: "dot is-busy", "aria-hidden": "true" }),
h("span", { class: "strip__text", text }), h("span", { class: "strip__text", text }),
icon(ICONS.chevron), icon(ICONS.chevron),
), ),