Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(agents): drop dead addClaude/IconClaude; restrict Default pill to builtins

enes0ff100ed9d4d
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index 1f3bb52e7..1528d6718 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -725,11 +725,6 @@ export function Canvas() {
},
[setNodes, markDirty, activeProjectId, viewCenter]
)
- // Kept as a thin wrapper so existing callers + the ⌘⇧C shortcut keep working.
- const addClaude = useCallback(
- (center?: { x: number; y: number }) => addAgentNode('claude', center),
- [addAgentNode]
- )
// ⌘T = new terminal, ⌘⇧C = new default agent (ignored while typing in a field/terminal).
useEffect(() => {
diff --git a/src/renderer/components/SettingsPanel.tsx b/src/renderer/components/SettingsPanel.tsx
index 8e828319f..4797ac8d7 100644
--- a/src/renderer/components/SettingsPanel.tsx
+++ b/src/renderer/components/SettingsPanel.tsx
@@ -160,9 +160,9 @@ export function SettingsPanel({ onClose }: SettingsPanelProps) {
</section>
{(() => {
- const rows: { id: AgentId; label: string }[] = [
- ...BUILTIN_AGENT_IDS.map((id) => ({ id, label: AGENT_CONFIG[id].label })),
- ...customAgents.map((c) => ({ id: c.id, label: c.label || c.id }))
+ const rows: { id: AgentId; label: string; isBuiltin: boolean }[] = [
+ ...BUILTIN_AGENT_IDS.map((id) => ({ id, label: AGENT_CONFIG[id].label, isBuiltin: true })),
+ ...customAgents.map((c) => ({ id: c.id, label: c.label || c.id, isBuiltin: false }))
]
return (
<section>
@@ -179,14 +179,16 @@ export function SettingsPanel({ onClose }: SettingsPanelProps) {
<AgentIcon agentId={row.id} size={18} />
</span>
<span className="agents-row-label">{row.label}</span>
- <button
- type="button"
- className={`set-btn agents-default${isDefault ? ' active' : ''}`}
- aria-pressed={isDefault}
- onClick={() => update(setDefaultAgent(settings, row.id))}
- >
- {isDefault ? 'Default' : 'Set default'}
- </button>
+ {row.isBuiltin && (
+ <button
+ type="button"
+ className={`set-btn agents-default${isDefault ? ' active' : ''}`}
+ aria-pressed={isDefault}
+ onClick={() => update(setDefaultAgent(settings, row.id))}
+ >
+ {isDefault ? 'Default' : 'Set default'}
+ </button>
+ )}
<SegmentedPill<'enabled' | 'disabled'>
value={enabled ? 'enabled' : 'disabled'}
ariaLabel={`${row.label} availability`}
diff --git a/src/renderer/components/icons.tsx b/src/renderer/components/icons.tsx
index cb50c7de5..6aadac2f8 100644
--- a/src/renderer/components/icons.tsx
+++ b/src/renderer/components/icons.tsx
@@ -1,5 +1,3 @@
-import claudeIcon from '../assets/claude.svg'
-
/** Small line icons (stroke = currentColor), shared across menus and the palette. */
const S = {
width: 16,
@@ -121,10 +119,6 @@ export const IconBranch = () => (
</svg>
)
-export const IconClaude = () => (
- <img src={claudeIcon} width={16} height={16} alt="Claude Code" style={{ display: 'block' }} />
-)
-
export const IconEditor = () => (
<svg {...S}>
<path d="M9 8l-4 4 4 4M15 8l4 4-4 4" />