Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: kernel

Vanessaf7c424946126
diff --git a/kernel/util/clipboard.go b/kernel/util/clipboard.go
index 6147d2328b..c065cb9ff1 100644
--- a/kernel/util/clipboard.go
+++ b/kernel/util/clipboard.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-//go:build !windows && !darwin
+//go:build !windows && !darwin || ios
package util
diff --git a/kernel/util/clipboard_darwin.go b/kernel/util/clipboard_darwin.go
index 38db018a9b..5dd57320a2 100644
--- a/kernel/util/clipboard_darwin.go
+++ b/kernel/util/clipboard_darwin.go
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-//go:build darwin
+//go:build darwin && !ios
// 本文件实现 macOS NSPasteboard 写入文件路径列表:通过 writeObjects: 写入 NSURL 数组
//(NSPasteboardTypeFileURL / public.file-url),使 Finder 等应用可识别并粘贴为文件。