From 5e2b28be679a32d13fe758760cc442cb81bedc3e Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Mon, 28 Sep 2026 21:25:51 +0800 Subject: [PATCH] ci(host-boundary): allow the local stat on paste/drop upload sources #1004 stats the source of a paste or drop upload to decide whether to upload recursively. That path comes from this machine's clipboard or desktop, so it is a local read by construction. --- .github/scripts/check-host-boundary.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/scripts/check-host-boundary.sh b/.github/scripts/check-host-boundary.sh index b68bdfab..e8cb654f 100755 --- a/.github/scripts/check-host-boundary.sh +++ b/.github/scripts/check-host-boundary.sh @@ -92,6 +92,11 @@ src/terminal/search.rs|.is_absolute() # can be handed a path. Always `std::env::temp_dir()` on this machine. src/terminal/view.rs|std::fs::create_dir_all src/terminal/view.rs|std::fs::write +# The source side of a paste/drop upload into a remote pane: the paths the +# clipboard or desktop hands over are on this machine by construction, so +# asking whether one is a directory is a local read. The remote side of the +# copy goes over SFTP. +src/terminal/view.rs|std::fs::metadata # Asking whether a file would be *launched* rather than shown before handing it # to the desktop opener. Only reachable behind `host_id.is_local()` — a path on