This commit is contained in:
root 2025-07-10 15:27:21 +08:00
parent 761f924b55
commit 995526ec57
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ async fn execute_python_command(_app: tauri::AppHandle, args: &[String]) -> Resu
}
} else if line.trim().starts_with('{') && line.trim().ends_with('}') {
// Fallback: try to parse as direct JSON result
println!("Python json rpc: {}", line);
if let Ok(json_value) = serde_json::from_str::<serde_json::Value>(line.trim()) {
// Check if this looks like a final result (has status field)
if json_value.get("status").is_some() {