From 38a9bf7db5b9f2d9924a384a585d4d50a26c0c44 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 3 Apr 2026 17:55:09 +0200 Subject: [PATCH] fix: resolve type-checker timeout in CardDetailView onChange The optional chaining expression `card.link.tmuxLink?.sessionName` in the `.onChange(of:)` modifier caused the Swift compiler to exceed its type-checking budget. Adding an explicit `as String?` annotation resolves the ambiguity. Co-Authored-By: Claude Opus 4.6 --- Sources/KanbanCode/CardDetailView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/KanbanCode/CardDetailView.swift b/Sources/KanbanCode/CardDetailView.swift index ca32de5..d7e9887 100644 --- a/Sources/KanbanCode/CardDetailView.swift +++ b/Sources/KanbanCode/CardDetailView.swift @@ -362,7 +362,7 @@ struct CardDetailView: View { // Otherwise wait for tmuxLink to appear (handled below) } } - .onChange(of: card.link.tmuxLink?.sessionName) { + .onChange(of: card.link.tmuxLink?.sessionName as String?) { if focusTerminal && card.link.tmuxLink != nil { selectedTab = .terminal terminalGrabFocus = true