Skip to content

CoworkStatusBarItem

An app's item in the footer (status bar). Declare it in the app's cowork.json — "statusBar": {"routine": "my-status", "args"?: {…}, "interval"?: 60} — and return this from that routine (null hides it). It refreshes every interval seconds (15–3600) while the window has focus, when focus returns and after a click. A click runs the same routine with click.args (menu: the user picks an entry first; confirm: a modal asks first). data is free-form — for the app's widgets.

click?: object;
args?: Record<string, unknown>;
confirm?: string;

data?: unknown;

icon?: string;

A codicon id ("remote", "plug"; "sync~spin" spins).


menu?: object[];
args?: Record<string, unknown>;
confirm?: string;
label: string;

text: string;

tone?: "error" | "warning";

tooltip?: string;