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): drop malformed kanban from hand-edited files; banners paint above the board

enes5e2672c93c10
diff --git a/src/core/workspace-files.test.ts b/src/core/workspace-files.test.ts
index 8deb236dd..63013ab04 100644
--- a/src/core/workspace-files.test.ts
+++ b/src/core/workspace-files.test.ts
@@ -4,6 +4,7 @@ import {
toPortableNodes, resolveNodes, projectToFile, fileToProject,
sameProjectContent, splitWorkspace, serializeProjectFile
} from './workspace-files'
+import type { ProjectFileV1 } from './workspace-files'
const node = (over: Partial<CanvasNodeState> = {}): CanvasNodeState => ({
id: 'term-abc', kind: 'terminal', position: { x: 0, y: 0 },
@@ -270,4 +271,11 @@ describe('kanban board persistence', () => {
const { files } = splitWorkspace(ws, () => 1, '2026-01-01T00:00:00.000Z')
expect(files.get('/a/b')?.kanban).toEqual(board)
})
+ it('a malformed kanban shape from a hand-edited file is dropped, not carried', () => {
+ const f = projectToFile(project(), 1, '2026-07-18T00:00:00.000Z')
+ const evil1 = { ...f, kanban: {} } as unknown as ProjectFileV1
+ const evil2 = { ...f, kanban: { columns: 42, cards: [] } } as unknown as ProjectFileV1
+ expect('kanban' in fileToProject(evil1, {})).toBe(false)
+ expect('kanban' in fileToProject(evil2, {})).toBe(false)
+ })
})
diff --git a/src/core/workspace-files.ts b/src/core/workspace-files.ts
index fcad83dd0..b2d2b553b 100644
--- a/src/core/workspace-files.ts
+++ b/src/core/workspace-files.ts
@@ -142,7 +142,9 @@ export function fileToProject(
...(f.defaultAccountId ? { defaultAccountId: f.defaultAccountId } : {}),
...(f.defaultPermissionMode ? { defaultPermissionMode: f.defaultPermissionMode } : {}),
...(f.dinoHighScore ? { dinoHighScore: f.dinoHighScore } : {}),
- ...(f.kanban ? { kanban: f.kanban } : {}),
+ ...(f.kanban && Array.isArray(f.kanban.columns) && Array.isArray(f.kanban.cards)
+ ? { kanban: f.kanban }
+ : {}),
...(base.cwd ? { cwd: base.cwd } : {}),
...(base.ssh ? { ssh: base.ssh } : {}),
...(base.closed ? { closed: true } : {})
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index 18252de85..7a7fd8536 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -2016,7 +2016,7 @@ body,
top: 46px;
left: 50%;
transform: translateX(-50%);
- z-index: 12;
+ z-index: 26; /* above the kanban overlay (25), below the tab bar (30) */
display: flex;
flex-direction: column;
align-items: center;