A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
fix: label Claude Code integration consistently
unknown35b662b3c7aa
diff --git a/windows/src/core/pills.ts b/windows/src/core/pills.tsindex 8242ad30..ec4698fd 100644--- a/windows/src/core/pills.ts+++ b/windows/src/core/pills.ts@@ -72,7 +72,7 @@ const ACCENT = {export const PILL_CATALOG: readonly PillDefinition[] = [// ── Where you code ─────────────────────────────────────────────────────────- { id: "integration_claude", name: "VS Code", color: "#F5F6F8", category: "workspace",+ { id: "integration_claude", name: "Claude Code", color: "#F5F6F8", category: "workspace",subtitle: N_("Integration"), source: "claudeCode", support: "yes", connect: hooks },// Claude Code in Cursor's terminal: the same hooks as Claude Code.{ id: "agent_cursor", name: "Cursor", color: "#C0C4CC", category: "workspace",diff --git a/windows/src/views/integrations.ts b/windows/src/views/integrations.tsindex 2317d9c0..4f448b51 100644--- a/windows/src/views/integrations.ts+++ b/windows/src/views/integrations.ts@@ -150,7 +150,7 @@ function idleCard(task: AgentTask, openSettings: () => void): HTMLElement {{ class: "int-card" },header(task.color,- task.id === "integration_claude" ? "VS Code" : task.name,+ task.id === "integration_claude" ? def!.name : task.name,t(def?.subtitle ?? N_("Integration")),),h("div", { class: "int-status" }, dot(status.color, 5), h("span", { text: status.label })),diff --git a/windows/src/views/views.ts b/windows/src/views/views.tsindex 9a40ae01..5f866dd6 100644--- a/windows/src/views/views.ts+++ b/windows/src/views/views.ts@@ -425,7 +425,7 @@ export function hasSessionTicker(task: AgentTask): boolean {}function buildPill(task: AgentTask, actions: ViewActions): HTMLElement {- const label = task.id === "integration_claude" ? "VS Code" : task.name;+ const label = task.id === "integration_claude" ? pillDefinition(task.id)!.name : task.name;const canvas = createMiniBot(task, 24);const pill = h("div",diff --git a/windows/tests/hooks.test.mjs b/windows/tests/hooks.test.mjsindex ce9f49d1..6e965ef0 100644--- a/windows/tests/hooks.test.mjs+++ b/windows/tests/hooks.test.mjs@@ -62,7 +62,7 @@ test("a paused island hands a permission request straight back to the terminal",test("a paused island ignores every other event", () => {State.paused = true;hook({ hook_event_name: "SessionStart", cwd: "C:\\Users\\me\\proj" });- assert.equal(task().name, "VS Code");+ assert.equal(task().name, "Claude Code");assert.deepEqual(asked, []);assert.deepEqual(calls, []);});@@ -144,7 +144,7 @@ test("a notification is a rate limit, a question, or nothing", () => {test("an unknown event changes nothing", () => {hook({ hook_event_name: "SomethingNew", cwd: "/p" });assert.equal(task().state, "idle");- assert.equal(task().name, "VS Code");+ assert.equal(task().name, "Claude Code");assert.deepEqual(asked, []);});@@ -189,7 +189,7 @@ test("the end of a session puts the pill back as it was", () => {hook({ hook_event_name: "PreToolUse", cwd: "/p/proj", tool_name: "Bash", tool_input: { command: "ls" } });hook({ hook_event_name: "SessionEnd", cwd: "/p/proj" });assert.equal(task().state, "idle");- assert.equal(task().name, "VS Code");+ assert.equal(task().name, "Claude Code");assert.deepEqual(task().steps, []);});@@ -217,7 +217,7 @@ test("a tagged agent gets its own pill next to Claude Code's", () => {assert.deepEqual(agent.steps, ["Runs · ls"]);assert.match(agent.color, /^#[0-9A-F]{6}$/);// Claude Code's own pill is not the one that moved.- assert.equal(task().name, "VS Code");+ assert.equal(task().name, "Claude Code");assert.equal(task().state, "idle");});diff --git a/windows/tests/pills.test.mjs b/windows/tests/pills.test.mjsindex 3186d801..8a3a26fa 100644--- a/windows/tests/pills.test.mjs+++ b/windows/tests/pills.test.mjs@@ -8,14 +8,19 @@ import {toggleDeclared,} from "../src/core/pills.ts";import { DEFAULT_SETTINGS, State } from "../src/core/state.ts";+import { installFakeDom } from "./fakedom.mjs";+import { renderIntegrationCard } from "../src/views/integrations.ts";++installFakeDom();// ── The catalog itself ────────────────────────────────────────────────────────-test("the catalog holds the Mac's pills, in the Mac's order, with the Mac's values", () => {+test("the catalog holds the Mac's pills with the Claude Code label for Windows and Linux", () => {// Copied from NotchBuddy/Sources/CoucouKit/PillCatalog.swift: an ID is a// contract value, and a colour or subtitle that drifts is a visible bug.+ // Windows and Linux name the Claude Code integration after the agent.const mac = [- ["integration_claude", "VS Code", "#F5F6F8", "workspace", "Integration"],+ ["integration_claude", "Claude Code", "#F5F6F8", "workspace", "Integration"],["agent_cursor", "Cursor", "#C0C4CC", "workspace", "Integration"],["agent_antigravity", "Antigravity", "#E879F9", "workspace", "Integration"],["agent_codex", "Codex", "#2DD4BF", "workspace", "Integration"],@@ -50,9 +55,9 @@ test("the catalog holds the Mac's pills, in the Mac's order, with the Mac's valu]);});-test("the pills Windows always had keep their IDs, names, colours and sources", () => {+test("the shipped pills keep their IDs, colours and sources with current display names", () => {const shipped = [- ["integration_claude", "VS Code", "#F5F6F8", "claudeCode"],+ ["integration_claude", "Claude Code", "#F5F6F8", "claudeCode"],["integration_resend", "Resend", "#22C55E", "n8n"],["integration_n8n", "n8n", "#F29B38", "n8n"],["integration_vercel", "Vercel", "#7C5CFF", "n8n"],@@ -233,13 +238,14 @@ test("the main pill always loads, the declared ones join it, and focus starts onassert.equal(State.tasks[1].color, "#8AB4F8");});-test("an old settings file gets VS Code as its main pill and keeps its integrations", () => {+test("an old settings file gets Claude Code as its main pill and keeps its integrations", () => {State.settings = { ...DEFAULT_SETTINGS, mainPill: undefined };State.loadIntegrationTasks();assert.deepEqual(ids(), ["integration_claude", "integration_resend", "integration_n8n", "integration_vercel", "integration_github",]);assert.equal(State.settings.mainPill, "integration_claude");+ assert.equal(State.tasks[0].name, "Claude Code");});test("switching the main pill frees its slot and the old main pill goes when idle", () => {@@ -304,3 +310,21 @@ test("toggling declares up to four pills and never the main one", () => {assert.ok(!ids().includes("agent_gemini"));assert.equal(State.focusId, "integration_claude");});++test("Claude Code is named after the agent in main-tool choices on both platforms", () => {+ for (const os of ["windows", "linux"]) {+ const choice = mainPillChoices(os).find((p) => p.id === "integration_claude");+ assert.equal(choice.name, "Claude Code");+ assert.equal(choice.source, "claudeCode");+ }+});++test("the Claude Code idle card keeps the agent title when the task has a project name", () => {+ State.loadIntegrationTasks();+ const task = State.tasks.find((t) => t.id === "integration_claude");+ task.name = "my-project";+ const card = renderIntegrationCard(task, { openSettings() {} });+ assert.ok(card.textContent.includes("Claude Code"));+ assert.ok(!card.textContent.includes("my-project"));+ assert.ok(card.textContent.includes("Open Visual Studio Code"));+});