Open panels above the notch; chat paperclip and in-chat file drop

- NSOpenPanel opened from BroV appeared under the notch (BroV floats above the menu
  bar): presentAboveNotch shows it one level higher, non-modally. Used by the terminal
  paperclip, the chat paperclip and the chat folder picker in Settings.
- Chat: paperclip next to the input attaches a file; dropping a file over the open
  chat attaches it directly instead of the shelf animation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-10 01:48:12 +03:00
parent 817c837f5a
commit 9ebc4552c0
5 changed files with 50 additions and 6 deletions
+2 -1
View File
@@ -635,7 +635,8 @@ struct SettingsView: View {
panel.canChooseDirectories = true
panel.canChooseFiles = false
panel.allowsMultipleSelection = false
if panel.runModal() == .OK, let url = panel.url {
panel.presentAboveNotch { urls in
guard let url = urls.first else { return }
state.chatWorkingDirectory = url.path
ChatTabs.shared.cli(for: state.activeTabId).newConversation()
}