Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changes/wizbar-0-7-1.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
kind: changed

WizBar 0.7.1 look and polish (#231): the running card leads with one large live count, shows each harness's name beside its logo and count, and sets its right-aligned model column in 11 px muted text; sidebar section rules use calmer neutral borders with tighter header spacing and sort/filter pickers shown on hover or focus; Cloud agents parse `Gemini Neon, Medium` and `GPT-6.2 medium effort` into plain model words and fold older done, stopped and lapsed agents into an expandable `N earlier` line while keeping live and recently finished (last 30 minutes) agents visible; and Yours excludes `launch-fleet` loop runs regardless of repository (search still finds them). The running card's harness bar is replaced by named counts, the cloud and local split moves to the card's last line, and the waiting line shows only when something waits on you. `wizbar agents --json` lists recent agents in `rows` and folded older ones in a new `earlier` field.

The look update also puts each thread card on two lines (title, status and age; then the quiet details), and the footer line adds what is waiting on you and how many live agents are on GitHub.
Binary file added docs/evidence/wizbar-0-7/look/r2-d/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/evidence/wizbar-0-7/look/r2-d/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/evidence/wizbar-0-7/look/r2-f/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/evidence/wizbar-0-7/look/r2-f/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/evidence/wizbar-0-7/look/r2-merged/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion wizbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ are in the [v0.3 sidebar contract](contracts/sidebar-v3.v1.md) and the
and `status:<working|needs-you|failed|unread|idle>`. Quote values with spaces,
as in `harness:"Claude Code"`. Active, unpinned matches appear in Yours.
Pinned, snoozed, muted and settled matches stay on their shelves.
- **The running card shows every running thread.** The card opens with one live running count, awake, starting and asleep totals, and each harness's name beside its logo and count, then scrolls through every running thread with a quiet right-aligned model column. Specs follow the sidebar's sort, with `Other` last. Click a group heading to fold or open it for the session. Untitled rows show a role and ticket when the fallback names one, or the harness name otherwise. The current heading stays visible as you scroll, and a fade shows when more rows are available. The card lists live GitHub status notes for agents the sidebar cannot match. These rows show the note's harness and model and open its issue or pull request. The card reports their count separately as `N more on GitHub`. `wizbar stats --json` reports the same rows in `unseen`.
- **The running card shows every running thread.** The card opens with one live running count, awake, starting and asleep totals, and each harness's name beside its logo and count, then scrolls through every running thread with a quiet right-aligned model column. Specs follow the sidebar's sort, with `Other` last. Click a group heading to fold or open it for the session. Untitled rows show a role and ticket when the fallback names one, or the harness name otherwise. The current heading stays visible as you scroll, and a fade shows when more rows are available. The card lists live GitHub status notes for agents the sidebar cannot match. These rows show the note's harness and model and open its issue or pull request. The card reports their count separately as `N on GitHub`. `wizbar stats --json` reports the same rows in `unseen`.
- **Cloud agents.** The sidebar lists GitHub agents with no matching desktop thread. It starts after Pinned and can be moved or collapsed. Working and asking agents with live notes appear first and count in the header. Agents that finished in the last 30 minutes follow by most recent update; older done, stopped and lapsed agents fold into one quiet `N earlier` line that opens in place. Names link to GitHub. `wizbar agents [--json]` lists the same rows; its JSON puts recent agents in `rows` and the folded older ones in `earlier`. The host's desktop thread list leaves out agents that run in their own cloud sandbox (such as Antigravity), so WizBar reads them from GitHub: live `openwiz:status v1` notes, and optionally a fleet's run map (`--run-map`), whose thread ids tell which agents the desktop cannot see. Rows show the role, the repository and ticket, the model in plain words (for example `Neon · Medium` or `Sol 6.2 · Medium`), the state and the last activity, and open the pull request, or the ticket when the note names none. The card ends with a plain line that agents in their own cloud sandbox may be missing.
- **The producer** writes `.openwiz/agents.v1.json` beside the specs files, with its own 20-request budget after the specs scan. To fill Cloud agents, add a `--repo` for each product repository and, optionally, `--run-map 'owner/name#<comment id>'`.
- **A calmer thread view.** A new setting, Composer footer, hides the bar under
Expand Down
78 changes: 77 additions & 1 deletion wizbar/browser/running-card.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ it.skipIf(!browserPath)("shows all large machine totals without clipping or elli
const page = await browser.newPage({ viewport: { width: 350, height: 600 } });
try {
await page.goto(`${url}?large-summary=1`);
await page.getByRole("button", { name: "360 running" }).hover();
await page.getByRole("button", { name: "360 running, 120 waiting on you" }).hover();
const card = page.getByRole("region", { name: "Running threads" });
const waiting = card.getByText("120 waiting on you");
const machines = card.getByText("120 cloud, 120 local, 120 unknown");
Expand All @@ -226,3 +226,79 @@ it.skipIf(!browserPath)("shows all large machine totals without clipping or elli
await page.close();
}
});

it.skipIf(!browserPath)("R6 keeps three-digit footer counts on one line at 300 px and shortens as designed", async () => {
const page = await browser.newPage({ viewport: { width: 300, height: 600 } });
try {
await page.goto(`${url}?narrow-footer=1`);
const status = page.getByRole("status", { name: "125 running, 120 waiting on you, 105 on GitHub" });
await status.waitFor({ state: "visible" });
await expect.poll(async () => status.evaluate((node) => {
const text = node.querySelector('[aria-hidden="true"]') as HTMLElement;
return {
text: text.textContent,
oneLine: node.getBoundingClientRect().height <= 22,
fits: text.scrollWidth <= text.clientWidth,
hasGitHub: node.querySelector("[data-on-github]") !== null,
};
})).toEqual({
text: "125 running · 120 waiting on you",
oneLine: true,
fits: true,
hasGitHub: false,
});

await page.setViewportSize({ width: 210, height: 600 });
await expect.poll(async () => status.evaluate((node) => {
const text = node.querySelector('[aria-hidden="true"]') as HTMLElement;
return {
text: text.textContent,
oneLine: node.getBoundingClientRect().height <= 22,
fits: text.scrollWidth <= text.clientWidth,
hasGitHub: node.querySelector("[data-on-github]") !== null,
};
})).toEqual({
text: "125 running · 120 waiting",
oneLine: true,
fits: true,
hasGitHub: false,
});
} finally {
await page.close();
}
});

it.skipIf(!browserPath)("R2 keeps all thread card detail icons inside the card at 300 px", async () => {
const page = await browser.newPage({ viewport: { width: 300, height: 400 } });
try {
await page.goto(`${url}?dense-card=1`);
const details = page.getByRole("group", { name: "Thread details" });
await details.waitFor({ state: "visible" });
await page.getByText("Opus 5.5 · Medium").waitFor({ state: "visible" });
const bounds = await details.evaluate((group) => {
const card = group.closest("li")!.firstElementChild!.getBoundingClientRect();
const groupRect = group.getBoundingClientRect();
const icons = [...group.querySelectorAll('[role="img"]')].map((el) => ({
label: el.getAttribute("aria-label"),
right: el.getBoundingClientRect().right,
}));
return {
overflow: getComputedStyle(group).overflow,
groupWithinCard: groupRect.right <= card.right + 0.5,
iconsWithinCard: icons.every((icon) => icon.right <= card.right + 0.5),
iconCount: icons.length,
// Line 2 stays one line: no chip wraps (about 18 px tall at this size).
oneLine: groupRect.height <= 22,
};
});
expect(bounds).toEqual({
overflow: "hidden",
groupWithinCard: true,
iconsWithinCard: true,
iconCount: 2,
oneLine: true,
});
} finally {
await page.close();
}
});
174 changes: 146 additions & 28 deletions wizbar/browser/running-card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { renderSlot } from "@get-bb/plugin-sdk/testing/app";
import { FooterCounter } from "../src/FooterCounter";
import { ThreadCard } from "../src/ThreadCard";
import { v4SpecsFile, v4Threads } from "../src/fixtures/v4";

const [hostStyles] = Object.values(import.meta.glob(
Expand All @@ -25,33 +26,150 @@ const binding = JSON.stringify([{
orchestratorThreadId: "sample-orchestrator", statusWriterLogin: "sample-user",
}]);

const largeSummary = new URLSearchParams(location.search).has("large-summary");
const total = largeSummary ? 480 : 100;
const threads = Array.from({ length: total }, (_, index) => {
const n = index + 1;
const title = `Sample thread ${n}`;
const local = !largeSummary || n <= 120;
return {
...v4Threads[local ? 0 : 1]!, id: `sample-${n}`, title, displayTitle: title,
runtimeStatus: largeSummary && n > 240 && n <= 360 ? "starting" as const : "active" as const,
hasPendingInteraction: largeSummary && n > 360,
providerId: n % 2 ? "codex" : "claude-code",
parentThreadId: n <= 60 ? "sample-fleet-0" : n <= 90 ? "sample-fleet-1" : null,
createdAt: now - total + index, updatedAt: now,
const params = new URLSearchParams(location.search);
const largeSummary = params.has("large-summary");
const narrowFooter = params.has("narrow-footer");
const denseCard = params.has("dense-card");

if (denseCard) {
const parent = {
...v4Threads[0]!,
id: "dense-parent",
title: "Dense card with every detail chip at 300 px",
displayTitle: "Dense card with every detail chip at 300 px",
providerId: "claude-code",
activity: { workflows: 2, backgroundAgents: 1, backgroundCommands: 0, planMode: 0, goals: 0 },
environment: {
id: "env_dense",
name: "Synthetic workspace",
branchName: "room/1042-refine-command-palette-a1b2",
path: null,
isWorktree: true,
providerId: "git-worktree",
workspaceDisplayKind: "other" as const,
},
updatedAt: now - 7 * 60 * 1000,
};
});
const children = Array.from({ length: 12 }, (_, index) => ({
...v4Threads[0]!,
id: `dense-child-${index + 1}`,
title: `Child ${index + 1}`,
displayTitle: `Child ${index + 1}`,
parentThreadId: parent.id,
}));
renderSlot({ component: () => (
<aside className="flex h-screen min-h-0 flex-col bg-sidebar text-foreground">
<ul className="px-1.5 py-2">
<ThreadCard
thread={parent}
projectName="Orchard Workspace"
isActive={false}
canPark={true}
onNavigate={() => {}}
onSettle={() => {}}
onSnooze={() => {}}
now={now}
/>
</ul>
</aside>
) }, {}, {
pluginId: "dense-card-browser",
sidebarThreads: { status: "ready", threads: [parent, ...children] },
sidebarPullRequests: {
[parent.id]: {
experimental_autoMerge: false,
experimental_inMergeQueue: null,
experimental_checks: { state: "passing" },
experimental_review: { state: "none" },
experimental_mergeability: { state: "mergeable" },
number: 1088,
title: "Refine command palette",
url: "https://github.com/example/sample-repo/pull/1088",
state: "open",
attention: "none",
},
},
rpc: {
cardModels: () => ({ source: "host", items: [{ threadId: parent.id, model: "Opus 5.5", effort: "medium" }] }),
} as never,
});
} else if (narrowFooter) {
const stamp = new Date(now - 60_000).toISOString().replace(/\.\d{3}Z$/, "Z");
const repo = "example/sample-plans";
const running = Array.from({ length: 125 }, (_, index) => ({
...v4Threads[0]!,
id: `narrow-run-${index + 1}`,
title: `Running ${index + 1}`,
displayTitle: `Running ${index + 1}`,
runtimeStatus: "active" as const,
hasPendingInteraction: false,
updatedAt: now,
}));
const waiting = Array.from({ length: 120 }, (_, index) => ({
...v4Threads[0]!,
id: `narrow-wait-${index + 1}`,
title: `Waiting ${index + 1}`,
displayTitle: `Waiting ${index + 1}`,
runtimeStatus: "idle" as const,
hasPendingInteraction: true,
updatedAt: now,
}));
const agents = Array.from({ length: 105 }, (_, index) => ({
repository: repo,
ticket: `${repo}#${200 + index}`,
commentId: index + 1,
agent: "builder",
harness: "Synthetic",
model: "Sample",
state: "working",
live: true,
step: "Building",
updatedAt: stamp,
time: stamp,
}));
renderSlot({ component: () => (
<aside className="flex h-screen min-h-0 flex-col bg-sidebar text-foreground">
<div className="min-h-0 flex-1 overflow-y-auto" />
<FooterCounter className="shrink-0 border-t border-sidebar-border px-3 py-1" />
</aside>
) }, {}, {
pluginId: "narrow-footer-browser",
sidebarThreads: { status: "ready", threads: [...running, ...waiting] },
settings: { wizdeckFactories: binding, specsSort: "newest" },
rpc: {
specsFile: () => ({ kind: "content", text: JSON.stringify(specs) }),
agentsFile: () => ({ kind: "content", text: JSON.stringify({ version: 1, generatedAt: stamp, agents }) }),
cardModels: () => ({ source: "none", items: [] }),
} as never,
});
} else {
const total = largeSummary ? 480 : 100;
const threads = Array.from({ length: total }, (_, index) => {
const n = index + 1;
const title = `Sample thread ${n}`;
const local = !largeSummary || n <= 120;
return {
...v4Threads[local ? 0 : 1]!, id: `sample-${n}`, title, displayTitle: title,
runtimeStatus: largeSummary && n > 240 && n <= 360 ? "starting" as const : "active" as const,
hasPendingInteraction: largeSummary && n > 360,
providerId: n % 2 ? "codex" : "claude-code",
parentThreadId: n <= 60 ? "sample-fleet-0" : n <= 90 ? "sample-fleet-1" : null,
createdAt: now - total + index, updatedAt: now,
};
});

renderSlot({ component: () => (
<aside className="flex h-screen min-h-0 flex-col bg-sidebar text-foreground">
<div className="min-h-0 flex-1 overflow-y-auto" />
<FooterCounter className="shrink-0 border-t border-sidebar-border px-3 py-1" />
</aside>
) }, {}, {
pluginId: "running-card-browser",
sidebarThreads: { status: "ready", threads },
settings: { wizdeckFactories: binding, specsSort: "newest" },
rpc: {
specsFile: () => ({ kind: "content", text: JSON.stringify(specs) }),
cardModels: () => ({ source: "none", items: [] }),
} as never,
});
renderSlot({ component: () => (
<aside className="flex h-screen min-h-0 flex-col bg-sidebar text-foreground">
<div className="min-h-0 flex-1 overflow-y-auto" />
<FooterCounter className="shrink-0 border-t border-sidebar-border px-3 py-1" />
</aside>
) }, {}, {
pluginId: "running-card-browser",
sidebarThreads: { status: "ready", threads },
settings: { wizdeckFactories: binding, specsSort: "newest" },
rpc: {
specsFile: () => ({ kind: "content", text: JSON.stringify(specs) }),
cardModels: () => ({ source: "none", items: [] }),
} as never,
});
}
4 changes: 2 additions & 2 deletions wizbar/src/ChildrenPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function ChildrenPopover({
return (
<span
ref={wrapper}
className="pointer-events-auto relative max-w-full"
className="pointer-events-auto relative max-w-full shrink-0"
// Hover is a mouse or pen gesture. A touch tap opens through focus and
// click; its pointer, and the compatibility mouse after it, then "leave",
// which must not close what the tap opened. Tapping elsewhere blurs it.
Expand Down Expand Up @@ -149,7 +149,7 @@ export function ChildrenPopover({
event.stopPropagation();
show();
}}
className="max-w-full rounded border border-border px-1 leading-4 [overflow-wrap:anywhere] hover:bg-accent hover:text-foreground"
className="max-w-full whitespace-nowrap rounded border border-border px-1 leading-4 hover:bg-accent hover:text-foreground"
>
{label}
</button>
Expand Down
Loading
Loading