Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(agent-island): 恢复展开后原位置的收起点击热区
Dash60a61951b306
diff --git a/apps/desktop/native/agent-island/macos-agent-island-helper.swift b/apps/desktop/native/agent-island/macos-agent-island-helper.swiftindex 4800cc0ccc..1373687e95 100644--- a/apps/desktop/native/agent-island/macos-agent-island-helper.swift+++ b/apps/desktop/native/agent-island/macos-agent-island-helper.swift@@ -1656,7 +1656,6 @@ private let expandedIslandBodySpacing: CGFloat = 4private let expandedIslandBottomPadding: CGFloat = 16private let compactIslandBaseWidth: CGFloat = 210private let compactIslandMinContentWidth: CGFloat = 80-private let compactCollapseLeadingReservedWidth: CGFloat = 80private let compactCollapseTrailingReservedWidth: CGFloat = 100private let compactIslandBadgeCollapseContentThreshold: CGFloat = 152private let compactIslandDetailCollapseContentThreshold: CGFloat = 190@@ -5869,9 +5868,8 @@ final class AgentIslandController {&& abs(screenPoint.y - interaction.startMouseY) <= agentIslandClickDragTolerance}- /// The screen rectangle where the collapsed island sat. After expand, that- /// center strip is blank (hardware-notch Color.clear, or the top-bar spacer).- /// Clicking it should fold the island back; toolbar / title live outside it.+ /// Keep the full compact footprint clickable, including its notch-side wings.+ /// The leading title/mascot is passive; only the trailing toolbar owns clicks.private func isCompactFootprintClick(interaction: PanelDragInteraction) -> Bool {let layout = interaction.startLayoutlet footprintWidth = compactCollapseFootprintWidth(layout: layout)@@ -5880,15 +5878,8 @@ final class AgentIslandController {guard clickX >= centerX - footprintWidth / 2 && clickX <= centerX + footprintWidth / 2 else {return false}- let visualMinX = centerX - layout.width / 2let visualMaxX = centerX + layout.width / 2- let sideChrome = layout.hasHardwareNotch- ? max(0, (layout.width - layout.notchWidth) / 2)- : 0- let leadingReserved = max(compactCollapseLeadingReservedWidth, sideChrome)- let trailingReserved = max(compactCollapseTrailingReservedWidth, sideChrome)- return clickX > visualMinX + leadingReserved- && clickX < visualMaxX - trailingReserved+ return clickX < visualMaxX - compactCollapseTrailingReservedWidth}private func compactCollapseFootprintWidth(layout: AgentIslandLayout) -> CGFloat {