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
View File
@@ -259,6 +259,8 @@ final class AppState: ObservableObject {
// Context for prompt (window attach / file)
@Published var promptContext: PromptContext? = nil
/// The chat is open in the notch: a dropped file attaches to it instead of the shelf.
var chatOnScreen: Bool { view == .prompt && mode == .expanded }
// Dropped file (set during upload flow)
@Published var droppedFile: DroppedFile? = nil