From bca9b97acdff9b7f6b8a927b3984304cdbc6844d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 2 Oct 2026 14:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E9=94=99=E8=AF=AF=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E8=BF=94=E5=9B=9E=E5=80=BC=E5=A4=8D=E7=94=A8=E5=B7=B2?= =?UTF-8?q?=E8=84=B1=E6=95=8F=E7=9A=84=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - runtime_error.rs persist_agent_runtime_error 返回的 message 改用 safe_message - 与 error 字段口径一致,返回值即使被序列化也不会泄露绝对路径/凭据 --- apps/ai-game-creator-shell/src-tauri/src/agent/runtime_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/runtime_error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/runtime_error.rs index d1539d140..77c8a55e2 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/runtime_error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/runtime_error.rs @@ -149,7 +149,7 @@ pub(crate) fn persist_agent_runtime_error( code: code.to_string(), occurred_at_unix_nanos: occurred_at_unix_nanos.to_string(), elapsed_ms, - message: message.to_string(), + message: safe_message, error: safe_error, detail_ref, persistence_failed: false,