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
3 changes: 3 additions & 0 deletions changes/wizbar-0-7-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
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.
Binary file added docs/evidence/wizbar-0-7/look/r1-a/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/r1-a/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/r1-b/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/r1-b/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/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/sidebar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions wizbar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ are in the [v0.3 sidebar contract](contracts/sidebar-v3.v1.md) and the

- **Yours: nothing gets lost.** Yours keeps active, unpinned top-level threads in the chosen project whether
they are read or unread. It also shows eligible threads with something new in
themselves or a hidden child. Spec agents, fleet wakes and fleet loop runs for
bound repositories are excluded from the ordinary list. The section remembers
themselves or a hidden child. Spec agents, fleet wakes and fleet loop runs are
excluded from the ordinary list. The section remembers
where you put it and whether it is collapsed. Saved `unread` and `inbox` keys
both carry over as `yours`.

Use the picker on the Yours rule to sort by Newest, Last activity, Status,
Use the picker on the Yours rule (shown on hover or focus) to sort by Newest, Last activity, Status,
Harness, Model or Effort. Status and harness filters are saved with your sort.
When they hide rows, the rule shows how many remain and offers Clear filters.

Expand All @@ -48,8 +48,8 @@ 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 shows awake, starting and asleep totals and scrolls through every running thread. 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`.
- **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. Lapsed, done and stopped agents follow by most recent update. Names link to GitHub. `wizbar agents [--json]` lists the same rows. 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`), 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 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`.
- **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
the thread composer on pinned threads or everywhere (`wizbar footer`). The host
Expand Down
26 changes: 16 additions & 10 deletions wizbar/browser/running-card.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,13 @@ it.skipIf(!browserPath).each([600, 900])("shows all 100 threads in a %i px windo
const summary = await card.locator("p").evaluateAll((lines) =>
lines.map((line) => ({ text: line.textContent, height: line.getBoundingClientRect().height, fits: line.scrollWidth <= line.clientWidth })));
expect.soft(summary).toEqual([
{ text: "100 running", height: 30, fits: true },
{ text: "100 awake · 0 starting · 0 asleep", height: 20, fits: true },
{ text: "0 waiting on you · 0 cloud, 100 local", height: 20, fits: true },
expect.objectContaining({
text: "Cloud agents in their own sandbox may be missing from this list. GitHub agent data is unavailable.",
fits: true,
}),
{ text: "0 cloud, 100 local", height: 18, fits: true },
]);
if (evidence) await page.screenshot({ path: resolve(evidence, `${height}-top.png`) });
await list.hover();
Expand All @@ -191,7 +192,8 @@ it.skipIf(!browserPath).each([600, 900])("shows all 100 threads in a %i px windo

const rows = Array.from({ length: 100 }, (_, index) => `sample-${index + 1}`);
const controls = rows.length + 3; // Three expanded group headings.
const forward = await tabThroughRows(page, list, "Tab", controls);
// Focus already sits on the first group heading (the harness legend is not a tab stop).
const forward = await tabThroughRows(page, list, "Tab", controls - 1);
expect.soft(forward.visited).toEqual(rows);
expect.soft(forward.obscured, "forward Tab keeps each row clear").toEqual([]);
const backward = await tabThroughRows(page, list, "Shift+Tab", controls - 1);
Expand All @@ -208,14 +210,18 @@ it.skipIf(!browserPath)("shows all large machine totals without clipping or elli
await page.goto(`${url}?large-summary=1`);
await page.getByRole("button", { name: "360 running" }).hover();
const card = page.getByRole("region", { name: "Running threads" });
const summary = card.getByText("120 waiting on you · 120 cloud, 120 local, 120 unknown");
await summary.waitFor({ state: "visible" });
const layout = await summary.evaluate((line) => ({
fitsWidth: line.scrollWidth <= line.clientWidth,
fitsHeight: line.scrollHeight <= line.clientHeight,
textOverflow: getComputedStyle(line).textOverflow,
}));
expect(layout).toEqual({ fitsWidth: true, fitsHeight: true, textOverflow: "clip" });
const waiting = card.getByText("120 waiting on you");
const machines = card.getByText("120 cloud, 120 local, 120 unknown");
await waiting.waitFor({ state: "visible" });
await machines.waitFor({ state: "visible" });
for (const line of [waiting, machines]) {
const layout = await line.evaluate((node) => ({
fitsWidth: node.scrollWidth <= node.clientWidth,
fitsHeight: node.scrollHeight <= node.clientHeight,
textOverflow: getComputedStyle(node).textOverflow,
}));
expect(layout).toEqual({ fitsWidth: true, fitsHeight: true, textOverflow: "clip" });
}
} finally {
await page.close();
}
Expand Down
16 changes: 10 additions & 6 deletions wizbar/src/StatsPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ afterEach(() => { cleanup(); fixtureFeed.current = null; settingsFeed.current =

const lines = () => [...(screen.queryByRole("region", { name: "Running threads" })?.querySelectorAll("p") ?? [])].map((p) => p.textContent);
const agentCoverage = "Cloud agents in their own sandbox may be missing from this list. GitHub agent data is unavailable.";
const fixtureCount = "4 running";
const fixtureLine = "3 awake · 1 starting · 8 asleep";

describe("V3: footer stats panel", () => {
Expand All @@ -67,7 +68,7 @@ describe("V3: footer stats panel", () => {
}),
} as never,
});
expect(lines()).toEqual([fixtureLine, "3 waiting on you · 1 cloud, 2 local, 1 unknown", agentCoverage]);
expect(lines()).toEqual([fixtureCount, fixtureLine, "3 waiting on you", agentCoverage, "1 cloud, 2 local, 1 unknown"]);
expect(await screen.findByRole("button", { name: /Sample refine command palette.*Opus 5\.5 · High/ })).toBeDefined();
expect(screen.getByRole("button", { name: /Sample audit shortcuts$/ })).toBeDefined();
expect(rendered.sdkCalls).toEqual([]);
Expand All @@ -86,7 +87,8 @@ describe("V3: footer stats panel", () => {

it("drops its numbers when the realtime connection is lost", async () => {
const rendered = renderSlot(panel, props, { sidebarThreads: { status: "ready", threads: fresh() } });
expect(lines()[0]).toBe(fixtureLine);
expect(lines()[0]).toBe(fixtureCount);
expect(lines()[1]).toBe(fixtureLine);
await rendered.setRealtimeConnectionState("reconnecting");
expect(lines()[0]).toBe("Stats unavailable");
await rendered.setRealtimeConnectionState("connected");
Expand Down Expand Up @@ -122,7 +124,8 @@ describe("V3: footer stats panel", () => {
expect(lines()[0]).toBe("Stats unavailable");
fixtureFeed.current = { status: "ready", threads: changed() };
rendered.rerender(createElement(View, { open: true }));
expect(lines()[0]).toBe(fixtureLine);
expect(lines()[0]).toBe(fixtureCount);
expect(lines()[1]).toBe(fixtureLine);
expect(screen.getByRole("status", { name: "4 running" })).toBeDefined();
});

Expand All @@ -142,15 +145,16 @@ describe("V3: footer stats panel", () => {

// R3: duplicates are compared on the running rule's facts, never the indicator.
it.each([
["agree on runtime work but differ only in indicator", "none", "active", "1 awake · 0 starting · 0 asleep", "1 running"],
["genuinely conflict on runtime work", "runtime", "idle", "Stats unavailable", null],
])("counts duplicate rows that %s by the running rule", (_, indicator, runtimeStatus, panelLine, lineName) => {
["agree on runtime work but differ only in indicator", "none", "active", "1 running", "1 awake · 0 starting · 0 asleep", "1 running"],
["genuinely conflict on runtime work", "runtime", "idle", "Stats unavailable", null, null],
])("counts duplicate rows that %s by the running rule", (_, indicator, runtimeStatus, panelLine, statesLine, lineName) => {
const row = { ...v3Threads.find(({ id }) => id === "thr_v3_pinned_idle")!, status: "active" as const, runtimeStatus: "active" as const, indicator: "runtime" as const };
const copy = { ...row, indicator, runtimeStatus } as PluginSidebarThread;
renderSlot({ component: () => createElement("div", null, createElement(FooterCounter), createElement(Panel, props)) }, {}, {
sidebarThreads: { status: "ready", threads: [row, copy] },
});
expect(lines()[0]).toBe(panelLine);
if (statesLine) expect(lines()[1]).toBe(statesLine);
if (lineName) expect(screen.getByRole("status", { name: lineName })).toBeDefined();
else expect(screen.queryByRole("status", { name: /running$/ })).toBeNull();
});
Expand Down
Loading
Loading