Official

sidebar

Built-in sidebar UI (JavaScript UI plugin).

The app opens the listing; nothing installs until an agent in your Plugins workspace has read the files and you enable the plugin. In a terminal: dvg install divergence/sidebar@0.2.6

Permissions in 0.2.6

  • Control chats chats.controlHighCreates chats, sends prompts and cancels runs.Add and remove workspaces, and create, rename, check off and archive chats
  • Run other plugins' commands commands.runHighRuns commands of other plugins.Open the chat search from the search button, and close the tab on screen with Cmd+W when its chat is part of a task
  • Read chats chats.readMediumReads your transcripts and chat lists.List workspaces and chats, and follow them as agents work
  • Show panels ui.slotsAlways grantedShows views in the listed parts of the window.Draw the sidebar, and its top controls in the title strip after the sidebar toggleSlots: lefttitle

Files

snooze-command.test.ts1.9 KB
import assert from "node:assert/strict";
import { afterEach, mock, test } from "node:test";
import activate from "./main.ts";
import { fakeHost } from "./testing.ts";

afterEach(() => mock.timers.reset());

test("snoozing the focused chat's row indefinitely replaces a timed snooze and preserves other rows", async () => {
  const fake = fakeHost([
    { id: "a", title: "First", at: "2026-10-02T00:00:00Z" },
    { id: "b", title: "Second", at: "2026-10-01T00:00:00Z" },
  ]);
  const dispose = activate(fake.api);
  try {
    fake.update({ chatId: "a" });
    await fake.settle();
    await fake.callService("divergence/sidebar", "snooze", { taskId: "t-a", until: Date.now() + 10000 });
    await fake.run("sidebar.snoozeChat");
    await fake.settle();
    const placed = fake.storage.get("placedChats") as Record<string, { section: string; until?: number }>;
    assert.equal(placed.a?.section, "snoozed");
    assert.equal(placed.a?.until, undefined);
    assert.equal(placed.b, undefined);
  } finally { await dispose(); }
});

test("the shortcut snoozes a task's row and leaves a completed row alone", async () => {
  const fake = fakeHost([
    { id: "a", title: "First", at: "2026-10-02T00:00:00Z" },
    { id: "b", title: "Second", at: "2026-10-01T00:00:00Z" },
    { id: "done", title: "Done", at: "2026-10-01T00:00:00Z", done: "2026-10-02T00:00:00Z" },
  ], [{ id: "group", chats: ["a", "b"] }]);
  const dispose = activate(fake.api);
  try {
    fake.update({ chatId: "b" });
    await fake.settle();
    await fake.run("sidebar.snoozeChat");
    await fake.settle();
    const placed = fake.storage.get("placedChats") as Record<string, { section: string }>;
    assert.equal(Object.values(placed).filter((p) => p.section === "snoozed").length, 1);
    fake.update({ chatId: "done" });
    await fake.run("sidebar.snoozeChat");
    await fake.settle();
    assert.deepEqual(fake.storage.get("placedChats"), placed);
  } finally { await dispose(); }
});

Versions

VersionPublishedPlugin APISizePermissionsStatus
0.2.7latestNov 21, 2026>=5 <6100.9 KB4 permissionsListed
0.2.6Nov 16, 2026>=5 <6100.6 KB4 permissionsListed
0.2.5Nov 11, 2026>=5 <665.1 KB4 permissionsListed
0.2.4Nov 9, 2026>=5 <660.4 KB4 permissionsListed
0.2.3Oct 27, 2026>=2 <426.1 KB3 permissionsListed

Reviews and comments

0 threads · 0 reviews

No comments yet.