diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs index 55e0f0138..97f70b437 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/editor_execute/error.rs @@ -104,7 +104,7 @@ impl ToolFailure for EditorExecuteError { got_bytes, max_bytes, } => format!("code 有 {got_bytes} 字节,超过上限 {max_bytes} 字节。"), - Self::EditorRejected { cause } => cause.to_string(), + Self::EditorRejected { cause } => cause.clone(), Self::ExecutionNotCompleted { editor, report } => { format!("{} 执行未完成:{report}", editor.label()) }