Skip to content

fix: pinned panel shows all agents, no crash — fixed height via isPinned (#141), v0.3.3#148

Open
jakzilla wants to merge 1 commit intomainfrom
fix/issue-141-v3
Open

fix: pinned panel shows all agents, no crash — fixed height via isPinned (#141), v0.3.3#148
jakzilla wants to merge 1 commit intomainfrom
fix/issue-141-v3

Conversation

@jakzilla
Copy link
Copy Markdown
Owner

Fixes #141. Previous attempt (PR #147) crashed with SIGABRT — minHeight constraint fought AppKit's layout engine causing an unresolvable constraint abort.

Root cause: NSPanel doesn't propose a size to SwiftUI, so the ScrollView collapsed. The correct fix is to have SwiftUI own the height when in panel mode via a fixed .frame(height: 540) — but only in panel mode (not popover mode where NSPopover owns the height).

Change: PopoverView body now uses .frame(width: 320, height: isPinned ? 540 : nil). When pinned, SwiftUI sizes itself to exactly 540pt. When in popover, nil lets the popover's contentSize control height as before. No constraint conflicts, no crash.

Also reverts the minHeight:440 that caused the crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Audit 4] CRITICAL: pinned/floating panel only shows Clawdia — all other agents missing

1 participant