diff --git a/plugins/workstreams/README.md b/plugins/workstreams/README.md index e23558dd..964cc797 100644 --- a/plugins/workstreams/README.md +++ b/plugins/workstreams/README.md @@ -246,3 +246,6 @@ npm run build After editing the plugin, run `bb plugin reload workstreams`. The build creates the distributable files in `dist/` for git or npm installs. + + +Effort cards include an expandable **Threads** section with status counts and last activity. It lists all linked threads, including PR workers, with exact PR references and per-thread activity times. **Archive** accepts idle threads after checking their current status and descendants; **Undo** or **Archived threads…** restores them without starting the agent. Threads with subthreads are managed from BB. This uses cached thread facts, without fetching extra event logs for the card. diff --git a/plugins/workstreams/deck-nav-view.tsx b/plugins/workstreams/deck-nav-view.tsx index ae3a7c64..59869b57 100644 --- a/plugins/workstreams/deck-nav-view.tsx +++ b/plugins/workstreams/deck-nav-view.tsx @@ -30,6 +30,7 @@ import { useInventory } from "./inventory-screen"; import { useNotesConfirm } from "./notes-flow"; import { EASE, FLIP_MS, flipMotion, flipper, focusNamesCard, ghostOf, playFlip, settleFlip, type FlipMotion } from "./deck-flip"; import { MergePreviewDialog } from "./merge-preview-dialog"; +import { ArchivedThreadsDialog } from "./archivedthreads"; import type { SeedProposal } from "./linear-seed"; import { deckLinkStep } from "./view-preference"; @@ -105,6 +106,9 @@ export function DeckNavView({ onView, openCard = null }: { onView(target: Header const [busy, setBusy] = useState(false); const [dialogError, setDialogError] = useState(null); const [merging, setMerging] = useState<{ target: string; n: null }[] | null>(null); + const [archivingThread, setArchivingThread] = useState(null); + const archivingRef = useRef(false); + const [archivedOpen, setArchivedOpen] = useState(false); const [pile, setPile] = useState<"hold" | "done" | null>(null); const [flash, setFlash] = useState<{ text: string; undo: boolean } | null>(null); const [seenNote, setSeenNote] = useState(null); @@ -699,6 +703,25 @@ export function DeckNavView({ onView, openCard = null }: { onView(target: Header const runRef = useRef(runAction); runRef.current = runAction; + const archiveThread = async (command: Extract) => { + if (archivingRef.current) return; + archivingRef.current = true; setArchivingThread(command.id); + try { + const result = await rpc.call("thread_archive", { threadId: command.id, cardId: command.cardId }); + if (!result.ok) { say(result.error); return; } + let used = false; + setUndo({ label: `Archive ${command.title}`, live: () => !used, run: async () => { + used = true; + try { + const restored = await rpc.call("thread_restore", { threadId: command.id }); + say(restored.ok ? `Restored ${command.title}.` : restored.error); load(); + } catch { say("Couldn't restore the thread. Try Archived threads."); } + } }); + say(`Archived ${command.title}.`, true, 15_000); load(); + } catch (cause) { say(`Couldn't confirm the archive. Check Archived threads before retrying. ${message(cause)}`); } + finally { archivingRef.current = false; setArchivingThread(null); } + }; + const run = (command: DeckCommand) => { switch (command.kind) { case "action": runAction(command.id, command.line); return; @@ -722,6 +745,8 @@ export function DeckNavView({ onView, openCard = null }: { onView(target: Header case "undo-batch": void rpc.call("deck_batch_undo", { batchId: command.batchId }).then((result) => { say(result.ok ? "Undone. Nothing was sent." : result.error); load(); }, (cause: unknown) => say(message(cause))); return; case "thread": navigate.toThread(command.id); return; + case "archive-thread": void archiveThread(command); return; + case "archived-threads": setArchivedOpen(true); return; case "jump": navigate.toPluginPanel("board", { subPath: inventoryPrPath(command.prUrl) }); return; case "resume": { const item = view?.held.find((entry) => entry.id === command.id); if (item) void movePile("resume", item); return; } case "reopen": { const item = view?.done.find((entry) => entry.id === command.id); if (item) void movePile("reopen", item); return; } @@ -792,11 +817,12 @@ export function DeckNavView({ onView, openCard = null }: { onView(target: Header open: item.card.stats.open }] : []; })]; return <> + { setArchivedOpen(open); if (!open) load(); }} /> line.prUrl)), live: batch.live, left: batch.details, working: batch.working?.prUrls, - reading: new Set([...refreshing.keys(), ...refresh.reading]), refusal: batch.refusal }} + reading: new Set([...refreshing.keys(), ...refresh.reading]), refusal: batch.refusal, archivingThread }} open={new Set(here.open)} panel={here.panel as Panel | null} on={on} hints={hintKeys(context, on)} flash={flash ?? (refresh.progress ? { text: refresh.progress, undo: false, busy: true } : batch.sending ? { text: batch.sending, undo: false, busy: true } : null)} run={run} onPalette={() => runAction("palette")} onHelp={() => runAction("help")} diff --git a/plugins/workstreams/deck-screen.test.ts b/plugins/workstreams/deck-screen.test.ts index a0dc42cb..9eaac234 100644 --- a/plugins/workstreams/deck-screen.test.ts +++ b/plugins/workstreams/deck-screen.test.ts @@ -70,7 +70,7 @@ describe("the effort deck's markup", () => { expect(text(html)).toContain("Wait for the store launch"); expect(text(html)).toContain("Work on folio #330"); expect(text(html)).toContain("Idle"); - expect(html.match(/data-deck-thread="thr_folio_330"/gu)).toHaveLength(1); + expect(html.match(/data-deck-thread="thr_folio_330"/gu)).toHaveLength(2); expect(html.match(/data-deck-pr-link=/gu)).toHaveLength(5); expect(html).not.toMatch(/data-deck-pr-action|data-deck-moves|data-deck-advance|type="checkbox"/u); }); @@ -402,3 +402,33 @@ describe("queued work on read cards", () => { expect(html).not.toMatch(/data-deck-pr-action|data-inventory-action|type="checkbox"/u); }); }); + + +describe("thread insights on effort cards", () => { + it("shows a compact activity summary and every thread, including PR-linked workers, with archive controls", () => { + const view = inkwellDeck(inkwellThreads()); + const card = view.active.find((c) => c.id === SHELF)!; + const html = pane(view, SHELF); + expect(html).toContain("data-deck-thread-summary"); + expect(text(html)).toContain("Last activity"); + const all = html.slice(html.indexOf("data-deck-threads")); + for (const t of card.threads) { + expect(all).toContain(`data-deck-thread="${t.id}"`); + const control = new RegExp(`data-deck-thread-archive="${t.id}"([^>]*)>`, "u").exec(all)!; + expect(control).not.toBeNull(); + expect(control[1]!.includes('disabled=""')).toBe(t.status !== "idle"); + } + expect(text(all)).toContain("Archived threads…"); + expect(html).not.toMatch(/data-deck-pr-action/u); + }); + + it("keeps history reachable without live threads and disables duplicate archives while starting", () => { + const view = inkwellDeck(inkwellThreads()); + const card = view.active.find((c) => c.id === SHELF)!; + const busy = pane(view, SHELF, { kit: { lines: LINES, picked: new Set(), archivingThread: card.threads[0]!.id } }); + expect(text(busy)).toContain("Archiving…"); + for (const m of busy.matchAll(/data-deck-thread-archive="[^"]+"([^>]*)>/gu)) expect(m[1]).toContain('disabled=""'); + card.threads = []; + expect(text(pane(view, SHELF))).toContain("Archived threads…"); + }); +}); diff --git a/plugins/workstreams/deck-screen.tsx b/plugins/workstreams/deck-screen.tsx index 5d190231..899763f1 100644 --- a/plugins/workstreams/deck-screen.tsx +++ b/plugins/workstreams/deck-screen.tsx @@ -15,7 +15,7 @@ import { ACTION, KEY_GROUPS, type DeckActionId } from "./deck-keys"; import type { Availability, CardScreen, Chip, DeckLine, Finish, Mismatch, Move, NotesScreen, OverviewScreen, PaletteItem, Strength, SuggestGroup, TicketChip, Tone } from "./deck-view-model"; import { SEND_DELAY_MS } from "./deck-shared"; -import { effortReadSummary, prReadState, prStatuses, threadRefs, threadStatus, type PrStatus, type StatusLabel } from "./deck-status"; +import { effortReadSummary, prReadState, prStatuses, threadRefs, threadStatus, threadReadSummary, type PrStatus, type StatusLabel } from "./deck-status"; import { inventoryPrPath, inventoryRoute } from "./view-preference"; import { NOTES_MAX } from "./effort-notes"; import { behind as cardsBehind, LAYERS, layerTransform } from "./deck-flip"; @@ -37,6 +37,7 @@ export type DeckCommand = | { kind: "fold"; key: string } | { kind: "panel"; key: Panel } | { kind: "group"; key: string } | { kind: "undo-group"; key: string } | { kind: "undo-batch"; batchId: string } | { kind: "thread"; id: string } | { kind: "jump"; prUrl: string } + | { kind: "archive-thread"; id: string; cardId: string; title: string } | { kind: "archived-threads" } | { kind: "resume"; id: string } | { kind: "reopen"; id: string } | { kind: "rule-remove"; id: string } | { kind: "pile"; pile: "hold" | "done" | null } /** The Notes panel's editor: what you typed, save (⌘↵), or cancel (esc). */ @@ -234,7 +235,7 @@ function Stack({ behind, run, children }: { behind: readonly Chip[]; run: Run; c * why the last Address left a PR out; the rows a batch is planning; and the rows a Refresh is reading. */ export type RowKit = { lines: ReadonlyMap; picked: ReadonlySet; live?: LiveItems; left?: ReadonlyMap; - working?: ReadonlySet; reading?: ReadonlySet; + working?: ReadonlySet; reading?: ReadonlySet; archivingThread?: string | null; /** Each row's ticket chip, which the card fills in from its screen. */ tickets?: ReadonlyMap; /** Why the last Address started nothing. */ @@ -308,15 +309,24 @@ function FinishLine({ finish, open, run }: { finish: Finish; open: boolean; run: ; } -function ThreadList({ threads, run, screen }: { threads: CardScreen["threads"]; run: Run; screen?: CardScreen }) { - return threads.length ?
{threads.map((thread) => )}
:

No threads yet.

; +function ThreadList({ threads, run, screen, archiving }: { threads: CardScreen["threads"]; run: Run; screen?: CardScreen; archiving?: string | null }) { + return threads.length ?
    {threads.map((thread) => { + const refs = screen ? threadRefs(screen, thread) : thread.ref; + const at = screen?.card.threads.find((t) => t.id === thread.id)?.lastActivityAt; + return
  • + + {screen ? : null} +
  • ; + })}
:

No threads yet.

; } function StatusBadge({ status }: { status: StatusLabel }) { @@ -416,8 +426,6 @@ export function Card({ screen, kit, open, panel, run, on, notes, markdown }: { s run: Run; on: Availability; notes?: NotesEdit | null; markdown?: (body: string) => ReactNode }) { const { card } = screen; const statuses = prStatuses(screen, kit.live); - const linked = new Set(statuses.flatMap((pr) => pr.thread ? [pr.thread.id] : [])); - const unlinked = screen.threads.filter((thread) => !linked.has(thread.id)); const toggles = ([["notes", screen.notes ? "Notes" : null], ["linear", card.linear.known ? "Linear details" : null]] as [Panel, string | null][]).filter(([, label]) => label); return
@@ -425,6 +433,7 @@ export function Card({ screen, kit, open, panel, run, on, notes, markdown }: { s {card.goal ?

{card.goal}

: null}
Manage effort
+ {card.pile === "held" ? : card.kind === "service" ? : card.kind === "effort" && !card.oneOff ? <> : No effort changes} @@ -436,8 +445,13 @@ export function Card({ screen, kit, open, panel, run, on, notes, markdown }: { s

{plural(statuses.length, "open PR")} · Open a PR to advance it in All PRs.

:

No open PRs.

} - {unlinked.length ?
-

Threads

+ {screen.threads.length ?
+
+ Threads {screen.threads.length} + {threadReadSummary(screen)} +
+ +
: null} {screen.finish || toggles.length ?
{screen.finish ? : null} diff --git a/plugins/workstreams/deck-status.test.ts b/plugins/workstreams/deck-status.test.ts index 8a532051..730a613b 100644 --- a/plugins/workstreams/deck-status.test.ts +++ b/plugins/workstreams/deck-status.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from "vitest"; import { inkwellDeck, INVENTORY_EFFORTS, INVENTORY_NOW } from "./inkwell-fixtures.js"; import { cardScreen } from "./deck-view-model.js"; -import { prStatuses, threadRefs, threadStatus } from "./deck-status.js"; +import { prStatuses, threadRefs, threadStatus, threadReadSummary } from "./deck-status.js"; const url = (repo: string, number: number) => `https://github.com/inkwell/${repo}/pull/${number}`; const screen = () => cardScreen(inkwellDeck().active.find((card) => card.oneOff)!, { rows: {} }, { now: INVENTORY_NOW }); @@ -53,3 +53,22 @@ describe("visible PR and thread status", () => { expect(threadRefs(card, thread)).toBe(card.lines.slice(0, 2).map((line) => line.ref).join(" · ")); }); }); + + +it("summarizes needs-you and working threads and selects the newest activity even when the parent is listed first", () => { + const view = inkwellDeck(); + const card = view.active[0]!; + const HOUR = 3_600_000; + card.threads = [ + { id: "parent", title: "Effort", role: "parent", prUrl: null, status: "idle", lastActivityAt: INVENTORY_NOW - 48 * HOUR }, + { id: "answer", title: "Question", role: "linked", prUrl: null, status: "idle", waiting: true, lastActivityAt: INVENTORY_NOW - 2 * HOUR }, + { id: "work", title: "Fix", role: "linked", prUrl: null, status: "active", lastActivityAt: null }, + ]; + let s = cardScreen(card, { rows: {} }, { now: INVENTORY_NOW }); + expect(threadReadSummary(s)).toContain("1 needs you"); + expect(threadReadSummary(s)).toContain("1 working"); + expect(threadReadSummary(s)).toContain("Last activity 2h ago"); + card.threads.forEach((t) => { t.lastActivityAt = null; }); + s = cardScreen(card, { rows: {} }, { now: INVENTORY_NOW }); + expect(threadReadSummary(s)).not.toContain("Last activity"); +}); diff --git a/plugins/workstreams/deck-status.ts b/plugins/workstreams/deck-status.ts index ba46a3d2..3e5caea6 100644 --- a/plugins/workstreams/deck-status.ts +++ b/plugins/workstreams/deck-status.ts @@ -96,3 +96,18 @@ export function effortReadSummary(screen: CardScreen, prs: readonly PrStatus[]): if (working) return `${working} ${working === 1 ? "worker is" : "workers are"} working.`; return prs.length ? `${prs.length} open ${prs.length === 1 ? "PR" : "PRs"}. ${screen.blocked.length ? "Waiting on dependencies or review." : "No feedback waiting on you."}` : screen.threads.length ? "No open PRs. Linked threads below." : "No open work."; } + + +/** Cached thread facts only; activity is BB's last update, not another event-log fetch. */ +export function threadReadSummary(screen: CardScreen): string { + const counts = new Map(); + for (const thread of screen.threads) { + const label = threadStatus(thread).text; + counts.set(label, (counts.get(label) ?? 0) + 1); + } + const parts = [...counts].map(([label, n]) => `${n} ${label === "Needs you" ? n === 1 ? "needs you" : "need you" : label.toLowerCase()}`); + const latest = screen.card.threads.filter((t) => t.lastActivityAt !== null).sort((a, b) => b.lastActivityAt! - a.lastActivityAt!)[0]; + const last = latest && screen.threads.find((t) => t.id === latest.id)?.age; + if (last) parts.push(`Last activity ${last} ago`); + return parts.join(" · "); +} diff --git a/plugins/workstreams/deck-thread-archive-server.test.ts b/plugins/workstreams/deck-thread-archive-server.test.ts new file mode 100644 index 00000000..e3972936 --- /dev/null +++ b/plugins/workstreams/deck-thread-archive-server.test.ts @@ -0,0 +1,73 @@ +import { afterEach, expect, it, vi } from "vitest"; +import { createFakePluginHost, makeThreadResponse } from "@get-bb/plugin-sdk/testing"; +import { createEffortStore } from "./effort-store.js"; +import type { DeckView } from "./deck.js"; +import plugin from "./server.js"; + +const cleanups: (() => Promise)[] = []; +afterEach(async () => { for (const dispose of cleanups.splice(0)) await dispose(); }); + +async function setup() { + const threads = new Map(["parent", "worker", "busy", "unrelated"].map((id) => [id, makeThreadResponse({ id, projectId: "project-folio", title: `Manuscript ${id}`, + status: id === "busy" ? "active" : "idle", originPluginId: "workstreams" })])); + const metadata = new Map>(); + const archive = vi.fn(async ({ threadId }: { threadId: string }) => { + const thread = { ...threads.get(threadId)!, archivedAt: Date.now() }; threads.set(threadId, thread); + await harness.behavior.emitThreadEvent("thread.archived", { thread }); + return { ok: true as const, archivedThreadIds: [threadId] }; + }); + const { bb, harness } = createFakePluginHost({ pluginId: "workstreams", settings: { scanRoots: "/p" }, sdk: { + system: { config: async () => ({ primaryHostId: "host-folio" }) as never }, + projects: { list: async () => [{ id: "project-folio", name: "Folio", sources: [{ hostId: "host-folio", path: "/p" }] }] as never }, + threads: { + list: async (args?: { archived?: boolean; parentThreadId?: string; sourceThreadId?: string; limit?: number }) => { + const rows = [...threads.values()].filter((t) => (t.archivedAt !== null) === !!args?.archived + && (!args?.parentThreadId || t.parentThreadId === args.parentThreadId) && !args?.sourceThreadId); + return rows.slice(0, args?.limit ?? rows.length); + }, + get: async ({ threadId }: { threadId: string }) => { const t = threads.get(threadId); if (!t) throw new Error("Missing synthetic thread"); return t; }, + getPluginMetadata: async ({ threadId }: { threadId: string }) => (metadata.get(threadId) ?? {}) as never, + events: { list: async () => [] }, interactions: { list: async () => [] }, archive, + unarchive: async ({ threadId }: { threadId: string }) => { + const thread = { ...threads.get(threadId)!, archivedAt: null }; threads.set(threadId, thread); + await harness.behavior.emitThreadEvent("thread.unarchived", { thread }); return { ok: true as const }; + }, + }, + }, experimental_callHostRpc: ({ method }) => { + if (method === "scan" || method === "inspectPaths") return { units: [], warnings: [] }; + if (method === "authoredPrs") return { entries: [], owners: ["inkwell"], repositories: [], discoveryComplete: true, complete: true, warnings: [] }; + throw new Error(`Unexpected host call ${method}`); + } }); + await plugin(bb); cleanups.push(() => harness.lifecycle.dispose()); + const store = createEffortStore(bb.storage.database() as never); + const effort = store.establish({ sourceKey: "manual:manuscripts", name: "Manuscripts", goal: "Keep manuscripts in order", projectId: "project-folio", + coordinatorState: "none", members: { tickets: [], prUrls: [] } }); + store.save({ ...effort, coordinatorThreadId: "parent", coordinatorState: "ready" }); + metadata.set("worker", { workEffortId: effort.id }); metadata.set("busy", { workEffortId: effort.id }); + // Persisted index from earlier effort assignments; this fixture has no PR/checkouts to establish a link. + for (const id of ["worker", "busy"]) bb.storage.database().prepare("INSERT INTO thread_work_intent_ids (thread_id) VALUES (?)").run(id); + expect((await harness.behavior.runCli(["refresh"])).exitCode).toBe(0); + const card = async () => (await harness.behavior.callRpc("deck_get", {}) as DeckView).active.find((c) => c.id === effort.id)!; + return { harness, threads, archive, effort, card }; +} + +it("archives a thread linked only to an effort, records recovery, and restores it without starting an agent", async () => { + const env = await setup(); + expect((await env.card()).threads.map((t) => t.id)).toContain("worker"); + expect(await env.harness.behavior.callRpc("thread_archive", { threadId: "worker", cardId: env.effort.id })).toMatchObject({ ok: true }); + expect(env.archive).toHaveBeenCalledWith({ threadId: "worker" }); + expect((await env.card()).threads.map((t) => t.id)).not.toContain("worker"); + expect(await env.harness.behavior.callRpc("thread_archived", {})).toMatchObject([{ threadId: "worker", ticket: "Manuscripts" }]); + expect(await env.harness.behavior.callRpc("thread_restore", { threadId: "worker" })).toMatchObject({ ok: true }); + await vi.waitFor(async () => expect((await env.card()).threads.map((t) => t.id)).toContain("worker")); + expect(env.harness.inspection.sdk.callsTo("threads.spawn")).toHaveLength(0); +}); + +it("refuses forged card scope, working threads, and parent threads with children", async () => { + const env = await setup(); + expect(await env.harness.behavior.callRpc("thread_archive", { threadId: "unrelated", cardId: env.effort.id })).toMatchObject({ ok: false }); + expect(await env.harness.behavior.callRpc("thread_archive", { threadId: "busy", cardId: env.effort.id })).toMatchObject({ ok: false }); + env.threads.set("worker", { ...env.threads.get("worker")!, parentThreadId: "parent" }); + expect(await env.harness.behavior.callRpc("thread_archive", { threadId: "parent", cardId: env.effort.id })).toMatchObject({ ok: false, error: expect.stringContaining("subthreads") }); + expect(env.archive).not.toHaveBeenCalled(); +}); diff --git a/plugins/workstreams/server.ts b/plugins/workstreams/server.ts index c165aa6b..aaa74e1a 100644 --- a/plugins/workstreams/server.ts +++ b/plugins/workstreams/server.ts @@ -468,7 +468,7 @@ export const rpcContract = defineRpcContract({ }, prefs_get: { input: z.null(), output: prefsSchema }, prefs_set: { input: prefsSchema, output: prefsSchema }, - thread_archive: { input: z.object({ threadId: z.string().max(200) }).strict(), output: writeResult }, + thread_archive: { input: z.object({ threadId: z.string().max(200), cardId: z.string().min(1).max(500).optional() }).strict(), output: writeResult }, thread_restore: { input: z.object({ threadId: z.string().max(200) }).strict(), output: writeResult }, thread_archived: { input: z.object({}).strict(), output: z.array(archiveRecordSchema) }, /** Send one user-authored instruction to one thread currently linked to this PR row. */ @@ -5306,13 +5306,20 @@ export default async function plugin(bb: BbPluginApi) { await bb.storage.kv.set("prefs", next); return next; }, - thread_archive: async ({ threadId }) => { - const clusters = (await board()).groups.flatMap((group) => group.clusters); - const cluster = clusters.find((item) => item.threads.some((thread) => thread.id === threadId)); - const thread = cluster?.threads.find((item) => item.id === threadId); - return archiveLinkedThread(bb.sdk.threads, archiveStore, { - threadId, link: thread === undefined || cluster === undefined ? undefined : { title: thread.title, ticket: cluster.ticket }, - }); + thread_archive: async ({ threadId, cardId }) => { + let link: { title: string; ticket: string } | undefined; + if (cardId) { + const view = await deckGet(); + const card = [...view.active, ...view.held].find((c) => c.id === cardId); + const thread = card?.threads.find((t) => t.id === threadId); + if (card && thread) link = { title: thread.title, ticket: card.name }; + } else { + const clusters = (await board()).groups.flatMap((group) => group.clusters); + const cluster = clusters.find((item) => item.threads.some((thread) => thread.id === threadId)); + const thread = cluster?.threads.find((item) => item.id === threadId); + if (thread && cluster) link = { title: thread.title, ticket: cluster.ticket }; + } + return archiveLinkedThread(bb.sdk.threads, archiveStore, { threadId, link }); }, thread_restore: ({ threadId }) => restoreArchivedThread(bb.sdk.threads, archiveStore, threadId), thread_archived: async () => (await archiveStore.list()).sort((a, b) => b.archivedAt - a.archivedAt).slice(0, ARCHIVE_HISTORY_LIMIT), diff --git a/plugins/workstreams/skills/workstreams/SKILL.md b/plugins/workstreams/skills/workstreams/SKILL.md index f5d0b315..076f9619 100644 --- a/plugins/workstreams/skills/workstreams/SKILL.md +++ b/plugins/workstreams/skills/workstreams/SKILL.md @@ -790,3 +790,6 @@ Idle PRs offer **Start fresh thread** in All PRs. This starts a new code-work co Both Your turn and Other open PRs support checkbox selection. **Advance selected** previews the exact selected scope and starts one fresh code-work thread across those PRs, including mixed selections. The Other heading checkbox selects that list. Holds, stopped efforts, changed heads, and unavailable checkouts are skipped with reasons; older workers do not block the explicit start. **Address** remains specific to unanswered feedback on Your turn. Advancement does not merge. + + +Effort cards expose **Threads** with status counts, last activity, exact PR links, and per-thread **Archive**. The reversible action rechecks live idle status and refuses threads with descendants; opening a thread in BB provides family management. **Undo** and **Archived threads…** restore archived conversations without starting an agent. Thread insights read the existing cached snapshot rather than fetching additional event logs.