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(kanban): filter disabled agents in New session menu

Alex7e05beab70f0
diff --git a/src/renderer/components/kanban/KanbanView.tsx b/src/renderer/components/kanban/KanbanView.tsx
index 448c1b172..d7cc4f5cf 100644
--- a/src/renderer/components/kanban/KanbanView.tsx
+++ b/src/renderer/components/kanban/KanbanView.tsx
@@ -208,18 +208,20 @@ export const KanbanView = memo(function KanbanView({
if (latest && latest.updatedAt !== modalIssue.updatedAt) setModalIssue(latest)
}, [github, modalIssue])
const customAgents = useSettings((s) => s.settings.customAgents)
+ const disabledAgents = useSettings((s) => s.settings.disabledAgents)
// "+ New" menu entries: the builtin agents, the user's custom agents, then terminal + sticky
// (same universe as the dock's add menu, minus canvas-only kinds). Memoized — a fresh array
// (with fresh icon elements) per render would re-render every memoized column.
+ // Respects Settings → Agents → Enabled/Disabled (like the dock, the pane menu and the palette).
const createOptions: KanbanCreateOption[] = useMemo(
() => [
- ...BUILTIN_AGENT_IDS.map((id) => ({
+ ...BUILTIN_AGENT_IDS.filter((id) => !disabledAgents.includes(id)).map((id) => ({
key: id,
label: AGENT_CONFIG[id].label,
choice: { kind: 'agent', agentId: id } as KanbanCreateChoice,
icon: <IconAgent />
})),
- ...customAgents.map((a) => ({
+ ...customAgents.filter((a) => !disabledAgents.includes(a.id)).map((a) => ({
key: a.id,
label: a.label,
choice: { kind: 'agent', agentId: a.id } as KanbanCreateChoice,
@@ -229,7 +231,7 @@ export const KanbanView = memo(function KanbanView({
{ key: 'browser', label: 'Browser', choice: { kind: 'browser' }, icon: <IconWeb /> },
{ key: 'sticky', label: 'Sticky note', choice: { kind: 'sticky' }, icon: <IconNote /> }
],
- [customAgents]
+ [customAgents, disabledAgents]
)
const byId = useMemo(() => new Map(sessions.map((s) => [s.id, s])), [sessions])
const sessionIds = useMemo(() => sessions.map((s) => s.id), [sessions])