Terminal: drop files / paperclip; net core: fallback exit, re-test on network change, hide/unhide connections
- term.macOS: dropping files over an open terminal or the paperclip types their shell-escaped paths (bracketed paste when the program asks for it). - Traffic now goes through a fallback group "exit": the pick while it answers, "auto" when it doesn't. A pinned connection that dies no longer cuts the Mac off. - Faster checks (exit 30 s, auto 60 s, 3 failures trigger a re-test) and a re-test of every group 4 s after any network change (Wi-Fi switch, sleep, AmneziaVPN). - hide/unhide instead of deleting keys: Amnezia connections and VLESS nodes leave the list and "auto"; kept on disk, returned from "Убранные". - Core logs are owner-only (they can contain the subscription URL). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -110,6 +110,8 @@ final class IslandWindowController: NSWindowController {
|
||||
dropView.autoresizingMask = [.width, .height]
|
||||
dropView.onDragEntered = { [weak self] loc in
|
||||
Task { @MainActor in
|
||||
// Over an open terminal the file goes into its command line, not the shelf.
|
||||
if TerminalStore.shared.activeTab != nil { return }
|
||||
let iLoc = self?.windowToIsland(loc) ?? CGPoint(x: 320, y: 88)
|
||||
AppState.shared.fileDragOver = true
|
||||
// enterZone sets isActive=true BEFORE hookExpand triggers re-render,
|
||||
@@ -121,6 +123,7 @@ final class IslandWindowController: NSWindowController {
|
||||
}
|
||||
dropView.onDragUpdated = { [weak self] loc in
|
||||
Task { @MainActor in
|
||||
if TerminalStore.shared.activeTab != nil { return }
|
||||
let iLoc = self?.windowToIsland(loc) ?? CGPoint(x: 320, y: 88)
|
||||
UploadSequenceEngine.shared.updateCursor(x: iLoc.x, y: iLoc.y)
|
||||
}
|
||||
@@ -135,6 +138,10 @@ final class IslandWindowController: NSWindowController {
|
||||
}
|
||||
dropView.onFilesDropped = { urls in
|
||||
Task { @MainActor in
|
||||
if let tab = TerminalStore.shared.activeTab {
|
||||
TerminalStore.shared.insertPaths(urls, into: tab)
|
||||
return
|
||||
}
|
||||
await FileDropHandler.handle(urls: urls, state: AppState.shared)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user