From ad08772190277fc8b97d7e8e60e25b627d39494c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 7 Oct 2026 13:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E4=B8=8A=E4=B8=8B=E6=96=87?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E5=BF=BD=E7=95=A5=20.export=20=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - should_ignore_directory 顶层组件匹配补回 .export,避免把生成的导出包/zip 纳入 agent 仓库上下文 --- .../src-tauri/src/repository_context.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/repository_context.rs b/apps/ai-game-creator-shell/src-tauri/src/repository_context.rs index 62969d5b7..3d12b17a2 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/repository_context.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/repository_context.rs @@ -716,10 +716,9 @@ fn should_ignore_directory(path: &Path) -> bool { { return true; } - if components - .first() - .is_some_and(|component| matches!(component.as_str(), "memory" | "logs" | ".app")) - { + if components.first().is_some_and(|component| { + matches!(component.as_str(), "memory" | "logs" | ".app" | ".export") + }) { return true; } components.windows(2).any(|pair| {