Skip to content

Allowed permission resolutions must grant at least one permission #1041

Closed

Description

@Talor-A
Image

set up bb for the first time using the macOS app. I can't get past this tool prompt. if I click either button it reappears.

Image

here's the thread, exported with bb thread log ... --format verbose

Full thread content

── User ────────────────────────────────────────────────────
can you write me a bb plugin kitchen sink extension so i can get a feel for what the plugin API offers?

── Provisioned thread ──────────────────────────────────────
Preparing personal workspace
Using workspace: /Users/ta/.bb/personal-workspaces/env_cmwzaet243

── Assistant ───────────────────────────────────────────────
I'll load the plugin authoring skill to build this correctly.

── Ran tool Skill { skill: bb-global-skills:bb-plugin-authoring }
Launching skill: bb-global-skills:bb-plugin-authoring

── Ran bb plugin new kitchen-sink --app 2>&1 | tail -30 (2m)
$ bb plugin new kitchen-sink --app 2>&1 | tail -30
Command did not complete within its 120s timeout and was moved to the background (ID: bfncspc6x). Output is being written to: /private/tmp/claude-501/-Users-ta--bb-personal-workspaces-env-cmwzaet243/7b966c9c-a42f-4a22-ac2d-da63942c24b6/tasks/bfncspc6x.output. You will be notified when it completes. To check interim output, use Read on that file path.

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Permission denied: SandboxNetworkAccess ─────────────────

── Waiting for permission to use SandboxNetworkAccess ──────

── Assistant ───────────────────────────────────────────────
Scaffolding is running in the background — I'll continue once it finishes.

── Explored 1 file, 1 list ─────────────────────────────────
── Read /private/tmp/claude-501/-Users-ta--bb-personal-workspaces-env-cmwzaet243/7b966c9c-a42f-4a22-ac2d-da63942c24b6/tasks/bfncspc6x.output
── Listed files in /Users/ta/.bb/personal-workspaces/env_cmwzaet243/

── Assistant ───────────────────────────────────────────────
Directory is created. Let me check progress.

── Listed files in /Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink
$ find /Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink -maxdepth 3 2>&1

── Assistant ───────────────────────────────────────────────
Scaffold is done (probably still npm installing in background). Let me check the package.json and existing server/app stubs before writing the kitchen-sink content.

── Explored 2 files ────────────────────────────────────────
── Read /Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/package.json
── Read /Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/server.ts

── Assistant ───────────────────────────────────────────────
Good, I have the full skeleton pattern. Now let me check app.tsx stub.

── Read /Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/app.tsx

── Assistant ───────────────────────────────────────────────
Now I'll write the full kitchen-sink server implementation covering settings, storage, http, rpc, realtime, background service+schedule, cli, agent tools, mention provider, and thread events.

── Created 2 files, explored 1 list, 1 file ────────────────
── Created bb-plugin-kitchen-sink/server.ts +254
--- /dev/null
+++ b/Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/server.ts
+// bb-plugin-kitchen-sink — backend entry.
+//
+// This plugin doesn't do one useful thing; it does a little of everything,
+// so you can poke at each surface of BbPluginApi and see how it behaves.
+// Read alongside app.tsx (the frontend half) and skills/kitchen-sink/SKILL.md.
+import { defineRpcContract, type BbPluginApi } from "@bb/plugin-sdk";
+import { z } from "zod";
+
+// --- bb.rpc: shared contract, imported by app.tsx as a type only -----------
+export const rpcContract = defineRpcContract({
+ status: {
+ input: z.null(),
+ output: z.object({
+ greeting: z.string(),
+ mode: z.string(),
+ loadCount: z.number().int(),
+ counter: z.number().int(),
+ }),
+ },
+ incrementCounter: {
+ input: z.object({ by: z.number().int().min(1).max(100).default(1) }),
+ output: z.object({ counter: z.number().int() }),
+ },
+ listNotes: {
+ input: z.null(),
+ output: z.object({
+ notes: z.array(z.object({ id: z.number().int(), text: z.string(), createdAt: z.number() })),
+ }),
+ },
+ addNote: {
+ input: z.object({ text: z.string().min(1).max(500) }),
+ output: z.object({ id: z.number().int() }),
+ },
+ recentThreadEvents: {
+ input: z.null(),
+ output: z.object({ events: z.array(z.string()) }),
+ },
+});
+
+export default async function plugin(bb: BbPluginApi) {
+ bb.log.info("kitchen-sink: loaded");
+
+ // --- bb.settings: one of each descriptor type -----------------------------
+ const settings = bb.settings.define({
+ greeting: { type: "string", label: "Greeting", default: "Hello from the kitchen sink" },
+ apiKey: { type: "string", label: "Demo API key", secret: true },
+ mode: {
+ type: "select",
+ label: "Mode",
+ options: ["fast", "slow"],
+ default: "fast",
+ },
+ verbose: { type: "boolean", label: "Verbose logging", default: false },
+ project: { type: "project", label: "Favorite project" },
+ });
+ let { greeting, mode, verbose } = await settings.get();
+ settings.onChange((next) => {
+ ({ greeting, mode, verbose } = next);
+ bb.log.info(kitchen-sink: settings changed, mode=${next.mode});
+ });
+
+ // --- bb.storage.kv: small namespaced JSON state ---------------------------
+ const loadCount = ((await bb.storage.kv.get("load-count")) ?? 0) + 1;
+ await bb.storage.kv.set("load-count", loadCount);
+
+ // --- bb.storage.database(): the plugin's own SQLite, with migrations -----
+ const db = bb.storage.database();
+ bb.storage.migrate(db, [
+ CREATE TABLE IF NOT EXISTS counter (id INTEGER PRIMARY KEY CHECK (id = 1), value INTEGER NOT NULL),
+ INSERT OR IGNORE INTO counter (id, value) VALUES (1, 0),
+ CREATE TABLE IF NOT EXISTS notes (id INTEGER PRIMARY KEY AUTOINCREMENT, text TEXT NOT NULL, created_at INTEGER NOT NULL),
+ ]);
+ const getCounter = () =>
+ (db.prepare(SELECT value FROM counter WHERE id = 1).get() as { value: number }).value;
+ const bumpCounter = (by: number) => {
+ db.prepare(UPDATE counter SET value = value + ? WHERE id = 1).run(by);
+ return getCounter();
+ };
+
+ // Ring buffer of recent thread lifecycle events, for the frontend to show.
+ const recentEvents: string[] = [];
+ const noteEvent = (line: string) => {
+ recentEvents.unshift(line);
+ recentEvents.length = Math.min(recentEvents.length, 20);
+ if (verbose) bb.log.debug(line);
+ };
+
+ // --- bb.rpc: register handlers against the contract above -----------------
+ bb.rpc.register(rpcContract, {
+ status: () => ({ greeting, mode, loadCount, counter: getCounter() }),
+ incrementCounter: ({ by }) => {
+ const counter = bumpCounter(by);
+ // bb.realtime: tell every connected client the counter moved.
+ bb.realtime.publish("counter", { counter });
+ return { counter };
+ },
+ listNotes: () => ({
+ notes: (
+ db.prepare(SELECT id, text, created_at as createdAt FROM notes ORDER BY id DESC LIMIT 50).all() as {
+ id: number;
+ text: string;
+ createdAt: number;
+ }[]
+ ).map((n) => ({ ...n })),
+ }),
+ addNote: ({ text }) => {
+ const createdAt = Date.now();
+ const { lastInsertRowid } = db
+ .prepare(INSERT INTO notes (text, created_at) VALUES (?, ?))
+ .run(text, createdAt);
+ bb.realtime.publish("notes", { added: true });
+ return { id: Number(lastInsertRowid) };
+ },
+ recentThreadEvents: () => ({ events: recentEvents }),
+ });
+
+ // --- bb.http: a plain HTTP route, local-origin auth by default ------------
+ bb.http.route("GET", "ping", (c) => c.json({ ok: true, loadCount }));
+ // Token-authed route for external callers: curl -H "x-bb-plugin-token: $(bb plugin token kitchen-sink)"
+ bb.http.route(
+ "POST",
+ "webhook",
+ async (c) => {
+ const body = await c.req.json().catch(() => ({}));
+ bb.log.info(kitchen-sink: webhook hit ${JSON.stringify(body)});
+ return c.json({ received: true });
+ },
+ { auth: "token" },
+ );
+
+ // --- bb.background.service: long-lived loop, aborts cleanly on reload -----
+ bb.background.service("heartbeat", {
+ async start(signal) {
+ while (!signal.aborted) {
+ await new Promise((resolve) => {
+ const timer = setTimeout(resolve, 30_000);
+ signal.addEventListener("abort", () => { clearTimeout(timer); resolve(); }, { once: true });
+ });
+ if (signal.aborted) break;
+ bb.realtime.publish("heartbeat", { at: Date.now() });
+ }
+ },
+ });
+
+ // --- bb.background.schedule: durable cron, only fires while loaded --------
+ bb.background.schedule("daily-log", "0 9 * * ", async () => {
+ bb.log.info(kitchen-sink: daily schedule fired, counter=${getCounter()});
+ });
+
+ // --- bb.events.on: the six thread lifecycle events ------------------------
+ bb.events.on("thread.created", ({ thread }) => noteEvent(created ${thread.id}));
+ bb.events.on("thread.active", ({ thread }) => noteEvent(active ${thread.id}));
+ bb.events.on("thread.idle", ({ thread }) => noteEvent(idle ${thread.id}));
+ bb.events.on("thread.failed", ({ thread, error }) => noteEvent(failed ${thread.id}: ${error ?? "unknown"}));
+ bb.events.on("thread.archived", ({ thread }) => noteEvent(archived ${thread.id}));
+ bb.events.on("thread.deleted", ({ thread }) => noteEvent(deleted ${thread.id}));
+
+ // --- bb.cli: bb kitchen-sink <command> -----------------------------------
+ bb.cli.register({
+ name: "kitchen-sink",
+ summary: "Poke at the kitchen-sink demo plugin",
+ commands: [
+ { name: "status", summary: "Print counter and settings", usage: "bb kitchen-sink status" },
+ { name: "bump", summary: "Increment the counter", usage: "bb kitchen-sink bump [n]" },
+ { name: "note", summary: "Add a note", usage: "bb kitchen-sink note <text...>" },
+ ],
+ async run(argv) {
+ const [command, ...rest] = argv;
+ if (command === "status") {
+ return { exitCode: 0, stdout: counter=${getCounter()} loadCount=${loadCount} mode=${mode}\n };
+ }
+ if (command === "bump") {
+ const by = Number(rest[0] ?? "1") || 1;
+ return { exitCode: 0, stdout: counter=${bumpCounter(by)}\n };
+ }
+ if (command === "note") {
+ const text = rest.join(" ").trim();
+ if (!text) return { exitCode: 1, stderr: "usage: bb kitchen-sink note <text...>\n" };
+ db.prepare(INSERT INTO notes (text, created_at) VALUES (?, ?)).run(text, Date.now());
+ return { exitCode: 0, stdout: "noted\n" };
+ }
+ return { exitCode: 1, stderr: unknown command: ${command}\n };
+ },
+ });
+
+ // --- bb.agents.registerTool: a schema'd native tool ------------------------
+ bb.agents.registerTool({
+ name: "kitchen_sink_notes",
+ description: "Read or add notes stored by the kitchen-sink demo plugin.",
+ instructions: "Use kitchen_sink_notes to remember short scratch notes across turns.",
+ experimental_statusLabels: {
+ pending: "Checking kitchen-sink notes",
+ completed: "Checked kitchen-sink notes",
+ },
+ parameters: z.object({
+ action: z.enum(["list", "add"]),
+ text: z.string().max(500).optional(),
+ }),
+ async execute({ action, text }) {
+ if (action === "add") {
+ if (!text) return { content: [{ type: "text", text: "text is required to add a note" }], isError: true };
+ db.prepare(INSERT INTO notes (text, created_at) VALUES (?, ?)).run(text, Date.now());
+ return "noted";
+ }
+ const notes = db.prepare(SELECT text FROM notes ORDER BY id DESC LIMIT 10).all() as { text: string }[];
+ return notes.map((n) => - ${n.text}).join("\n") || "(no notes yet)";
+ },
+ });
+
+ // --- bb.agents.contributeInstructions: cheap, synchronous, per-resolution --
+ bb.agents.contributeInstructions(() => {
+ if (mode !== "slow") return null;
+ return "kitchen-sink is in slow mode: prefer batching kitchen_sink_notes calls.";
+ });
+
+ // --- bb.agents.configure: which tools/skills apply, plus dynamic text -----
+ bb.agents.configure((context) => ({
+ tools: ["kitchen_sink_notes"],
+ skills: ["kitchen-sink"],
+ instructions: kitchen-sink resolved for project ${context.project.name}.,
+ }));
+
+ // --- bb.ui.registerMentionProvider: @-mention search + resolve ------------
+ bb.ui.registerMentionProvider({
+ id: "kitchen-sink-note",
+ label: "Kitchen sink notes",
+ triggers: ["@"],
+ search({ query }) {
+ const rows = db
+ .prepare(SELECT id, text FROM notes WHERE text LIKE ? ORDER BY id DESC LIMIT 10)
+ .all(%${query}%) as { id: number; text: string }[];
+ return rows.map((r) => ({ id: String(r.id), title: r.text.slice(0, 60) }));
+ },
+ resolve(itemId) {
+ const row = db.prepare(SELECT text FROM notes WHERE id = ?).get(Number(itemId)) as
+ | { text: string }
+ | undefined;
+ return { context: row ? Note #${itemId}: ${row.text} : Note #${itemId} not found };
+ },
+ });
+
+ // --- bb.status: report a configuration problem instead of crash-looping ---
+ if (!(await settings.get()).apiKey && false) {
+ // Flip the && false off to see needs-configuration status in bb plugin list.
+ bb.status.needsConfiguration("Set apiKey with bb plugin config kitchen-sink set apiKey <value>, then reload.");
+ }
+
+ bb.log.info(kitchen-sink: ${greeting} — load #${loadCount});
+
+ // --- bb.onDispose: cleanup, LIFO on reload/disable/shutdown ---------------
+ bb.onDispose(() => {
+ bb.log.info("kitchen-sink: disposed");
+ });
+}
── Created bb-plugin-kitchen-sink/app.tsx +338
--- /dev/null
+++ b/Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/app.tsx
+// bb-plugin-kitchen-sink — frontend entry.
+//
+// One component per registered slot, kept intentionally verbose so each
+// surface is easy to find and copy out of. Look at the imports for a rough
+// index of what @bb/plugin-sdk/app offers.
+import { useState } from "react";
+import {
+ definePluginApp,
+ useBbContext,
+ useBbNavigate,
+ useComposer,
+ useComposerView,
+ useRealtime,
+ useRealtimeConnectionState,
+ useRpc,
+ useSettings,
+} from "@bb/plugin-sdk/app";
+import { toast } from "sonner";
+import type { rpcContract } from "./server";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
+
+// ---------------------------------------------------------------------------
+// app.contentScripts: trusted, same-origin page code with no React slot.
+// Here it just logs a keyboard shortcut; remove the listener on abort.
+// ---------------------------------------------------------------------------
+function registerContentScript(app: Parameters[0] extends (a: infer A) => void ? A : never) {
+ app.contentScripts.register({
+ id: "kitchen-sink-shortcut-logger",
+ mount({ signal }) {
+ const onKeyDown = (event: KeyboardEvent) => {
+ if (event.key === "k" && (event.metaKey || event.ctrlKey) && event.shiftKey) {
+ console.log("[kitchen-sink] Cmd/Ctrl+Shift+K pressed");
+ }
+ };
+ document.addEventListener("keydown", onKeyDown, { signal });
+ },
+ });
+}
+
+// ---------------------------------------------------------------------------
+// app.slots.homepageSection — a card on the compose/homepage surface.
+// ---------------------------------------------------------------------------
+function HomepageSection() {
+ const { projectId } = useBbContext();
+ const rpc = useRpc();
+ const [status, setStatus] = useState("Load status");
+ return (
+
+
+ Kitchen sink
+
+
+ {projectId === null ? "No project selected." : Project: ${projectId}.}
+ <Button
+ size="sm"
+ variant="outline"
+ onClick={() => {
+ void rpc.call("status").then((r) => setStatus(${r.greeting} · counter ${r.counter}));
+ }}
+ >
+ {status}
+
+
+
+ );
+}
+
+// ---------------------------------------------------------------------------
+// app.slots.settingsSection — extra UI below the auto-generated settings form
+// on the plugin's Settings detail page.
+// ---------------------------------------------------------------------------
+function SettingsSection() {
+ const { values, isLoading } = useSettings();
+ if (isLoading) return

Loading…

;
+ return (
+


+ Effective mode: {String(values.mode ?? "fast")}. Secret
+ settings (like apiKey) never reach the frontend.
+


+ );
+}
+
+// ---------------------------------------------------------------------------
+// app.slots.navPanel — a full route with its own sidebar entry. Demonstrates
+// most of the read/write hooks in one place, tab by tab.
+// ---------------------------------------------------------------------------
+function NavPanelHeaderContent() {
+ const connectionState = useRealtimeConnectionState();
+ return realtime: {connectionState};
+}
+
+function NavPanel() {
+ const rpc = useRpc();
+ const navigate = useBbNavigate();
+ const [tab, setTab] = useState<"status" | "notes" | "events">("status");
+ const [status, setStatus] = useState<{ greeting: string; mode: string; loadCount: number; counter: number } | null>(
+ null,
+ );
+ const [notes, setNotes] = useState<{ id: number; text: string; createdAt: number }[]>([]);
+ const [noteText, setNoteText] = useState("");
+ const [events, setEvents] = useState<string[]>([]);
+
+ const refreshStatus = () => void rpc.call("status").then(setStatus);
+ const refreshNotes = () => void rpc.call("listNotes").then((r) => setNotes(r.notes));
+ const refreshEvents = () => void rpc.call("recentThreadEvents").then((r) => setEvents(r.events));
+
+ // useRealtime: react to bb.realtime.publish("counter", ...) from server.ts.
+ useRealtime<{ counter: number }>("counter", (payload) => {
+ setStatus((prev) => (prev ? { ...prev, counter: payload.counter } : prev));
+ });
+ useRealtime("notes", () => refreshNotes());
+
+ if (status === null && tab === "status") refreshStatus();
+ if (notes.length === 0 && tab === "notes") refreshNotes();
+ if (events.length === 0 && tab === "events") refreshEvents();
+
+ return (
+

+

+ {(["status", "notes", "events"] as const).map((t) => (
+ <Button key={t} size="sm" variant={tab === t ? "default" : "outline"} onClick={() => setTab(t)}>
+ {t}
+
+ ))}
+

+
+ {tab === "status" && (
+
+
+ bb.rpc + bb.realtime
+
+
+

Greeting: {status?.greeting ?? "…"}


+

Mode: {status?.mode ?? "…"}


+

Load count: {status?.loadCount ?? "…"}


+

Counter: {status?.counter ?? "…"}


+ <Button
+ size="sm"
+ onClick={() => void rpc.call("incrementCounter", { by: 1 }).then((r) => setStatus((p) => (p ? { ...p, counter: r.counter } : p)))}
+ >
+ Increment (bumps for every connected client via realtime)
+
+


+ Also try bb kitchen-sink bump 5 from a terminal and watch this update live.
+


+
+
+ )}
+
+ {tab === "notes" && (
+
+
+ bb.storage.database()
+
+
+

+ <Input value={noteText} onChange={(e) => setNoteText(e.target.value)} placeholder="Add a note…" />
+ <Button
+ size="sm"
+ onClick={() => {
+ if (!noteText.trim()) return;
+ void rpc.call("addNote", { text: noteText }).then(() => {
+ setNoteText("");
+ toast.success("Note added");
+ });
+ }}
+ >
+ Add
+
+

+

    + {notes.map((n) => (
    +

  • + {n.text}
    +

  • + ))}
    + {notes.length === 0 &&
  • No notes yet.
  • }
    +

+

Mention these with @kitchen-sink-note in a composer.


+
+
+ )}
+
+ {tab === "events" && (
+
+
+ bb.events.on (thread lifecycle)
+
+
+
+ Refresh
+
+

    + {events.map((e, i) => (
    +
  • {e}

  • + ))}
    + {events.length === 0 &&
  • No events observed yet.
  • }
    +

+
+
+ )}
+
+ <Button size="sm" variant="ghost" onClick={() => navigate.toCompose({ focusPrompt: true })}>
+ Open a new compose screen (useBbNavigate)
+
+

+ );
+}
+
+// ---------------------------------------------------------------------------
+// app.slots.threadPanelAction — a tab in the thread's right-panel actions.
+// ---------------------------------------------------------------------------
+function ThreadPanelTab({ threadId }: { threadId: string; params: unknown }) {
+ return (
+

+ Opened from the thread panel for thread {threadId}. See{" "}
+ app.slots.threadPanelAction in app.tsx.
+

+ );
+}
+
+// ---------------------------------------------------------------------------
+// app.slots.messageDirective — renders ::kitchen-sink-note{...} in assistant
+// markdown. Try asking an agent to output that directive verbatim.
+// ---------------------------------------------------------------------------
+function KitchenSinkDirective({ attributes }: { attributes: Readonly<Record<string, string>> }) {
+ return (
+

+ kitchen-sink directive · label={attributes.label ?? "(none)"}
+

+ );
+}
+
+// ---------------------------------------------------------------------------
+// app.composer.customize — an action button, a plus-menu row, a banner, and
+// a rich-text highlight rule, all scoped to every composer by default.
+// ---------------------------------------------------------------------------
+function ComposerCounterAction() {
+ const composer = useComposer();
+ return (
+ <button
+ type="button"
+ className="rounded px-1.5 py-1 text-xs text-muted-foreground hover:bg-accent"
+ onClick={() => composer.updateText((t) => ${t}${t ? "\n\n" : ""}[kitchen-sink] )}
+ title="Insert a kitchen-sink marker"
+ >
+ 🧪
+
+ );
+}
+
+function ComposerBanner() {
+ const view = useComposerView();
+ if (view.draft.isEmpty) return null;
+ return (
+

+ kitchen-sink banner · {view.draft.text.length} chars in this {view.scope.kind} composer
+

+ );
+}
+
+export default definePluginApp((app) => {
+ registerContentScript(app);
+
+ app.slots.homepageSection({
+ id: "kitchen-sink-home",
+ title: "Kitchen sink",
+ component: HomepageSection,
+ });
+
+ app.slots.settingsSection({
+ id: "kitchen-sink-settings",
+ title: "Kitchen sink demo",
+ description: "Shows effective (non-secret) settings values.",
+ component: SettingsSection,
+ });
+
+ app.slots.navPanel({
+ id: "kitchen-sink",
+ title: "Kitchen sink",
+ icon: "Utensils",
+ path: "kitchen-sink",
+ component: NavPanel,
+ headerContent: NavPanelHeaderContent,
+ });
+
+ app.slots.threadPanelAction({
+ id: "kitchen-sink-panel",
+ title: "Kitchen sink",
+ component: ThreadPanelTab,
+ });
+
+ app.slots.sidebarFooterAction({
+ id: "kitchen-sink-footer",
+ title: "Kitchen sink settings",
+ icon: "Utensils",
+ run: ({ openSettings }) => openSettings(),
+ });
+
+ app.slots.messageDirective({
+ id: "kitchen-sink-note",
+ component: KitchenSinkDirective,
+ });
+
+ app.slots.messageAction({
+ id: "kitchen-sink-copy-note",
+ title: "Save as kitchen-sink note",
+ icon: "NotebookPen",
+ run: ({ message, selectedText }) => {
+ toast.success(Would save: "${(selectedText ?? message.text).slice(0, 60)}");
+ },
+ });
+
+ app.composer.customize({
+ id: "kitchen-sink-composer",
+ actions: [{ id: "kitchen-sink-marker", component: ComposerCounterAction }],
+ plusMenu: [
+ {
+ id: "kitchen-sink-checklist",
+ label: "Insert kitchen-sink checklist",
+ run: ({ composer }) =>
+ composer.updateText((t) => ${t}${t ? "\n\n" : ""}- [ ] Try bb.rpc\n- [ ] Try bb.storage\n- [ ] Try bb.agents),
+ },
+ ],
+ banners: [{ id: "kitchen-sink-banner", component: ComposerBanner }],
+ richText: {
+ effects: [
+ {
+ id: "kitchen-sink-todo",
+ className: "kitchen-sink-todo-highlight",
+ match: (text) => Array.from(text.matchAll(/\bTODO\b/g), (m) => ({ from: m.index!, to: m.index! + m[0].length })),
+ },
+ ],
+ },
+ });
+});
── Listed files in /Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/
.css
── Read components.json

── Assistant ───────────────────────────────────────────────
Config expects an app.css. Let me create it with the Tailwind import and the highlight class.

── Created bb-plugin-kitchen-sink/app.css +6 ───────────────
--- /dev/null
+++ b/Users/ta/.bb/personal-workspaces/env_cmwzaet243/bb-plugin-kitchen-sink/app.css
+@import "tailwindcss";
+
+.kitchen-sink-todo-highlight {

  • background-color: color-mix(in oklch, var(--color-warning, orange) 25%, transparent);
  • border-radius: 2px;
    +}

── Listing files in / ──────────────────────────────────────
$ find / -path /proc -prune -o -iname "app.css" -print 2>/dev/null | grep -v node_modules | head -20

Activity

  1. SawyerHood commented on Aug 6, 2026

    @SawyerHood
    Collaborator

    Which provider (Codex / Claude / etc) and permission level are you using?

  2. SawyerHood commented on Aug 6, 2026

    @SawyerHood
    Collaborator

    Think I have a repro! If you use auto mode that should help you in the mean time

  3. added 3 commits that reference this issue on Aug 6, 2026
    8e6890c
    5c325d5
    9daea17
  4. added a commit that references this issue on Aug 14, 2026
    7bb5c64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions