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.5

Permissions in 0.2.5

  • 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.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 sidebarSlots: left

Files

rest.ts1.5 KB
// Reading a chat ahead builds its whole pane, which the kernel takes on the
// main thread, so it waits until the pointer rests on a row for REST_MS. A
// pointer sweeping over the list reads nothing, and its hover frames do not
// wait behind chats it only passed.
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
import type * as Scope from "effect/Scope";

/** How long the pointer rests on a row before its chat is read ahead: a pointer passing over rows reads none. */
export const REST_MS = 90;

export function restingReads(read: (chatId: string) => Effect.Effect<void>, scope: Scope.Scope) {
  let resting: { chatId: string; fiber: Fiber.Fiber<void> } | undefined;
  // The pointer came onto a row: its chat is read once it has rested there.
  const restOn = Effect.fn("Sidebar.restOn")(function* (chatId: string) {
    if (resting?.chatId === chatId) return;
    if (resting) yield* Fiber.interrupt(resting.fiber);
    const wait = Effect.sleep(REST_MS).pipe(
      Effect.andThen(Effect.sync(() => (resting = undefined))),
      Effect.andThen(read(chatId)),
    );
    resting = { chatId, fiber: yield* Effect.forkIn(wait, scope, { startImmediately: true }) };
  });
  // The pointer left the row before it rested there: nothing is read.
  const leaveRow = (chatId: string): Effect.Effect<void> => {
    if (resting?.chatId !== chatId) return Effect.void;
    const { fiber } = resting;
    resting = undefined;
    return Fiber.interrupt(fiber);
  };
  return { restOn, leaveRow };
}

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.