diff --git a/src-tauri/src/claude.rs b/src-tauri/src/claude.rs index 733b38b..cd7ad08 100644 --- a/src-tauri/src/claude.rs +++ b/src-tauri/src/claude.rs @@ -93,8 +93,16 @@ pub fn start_bridge(app: &AppHandle) -> Result<(), String> { println!("🔌 Starte Claude Bridge: {:?}", script_path); + // Arbeitsverzeichnis = Projektroot (wo node_modules liegt) + let project_dir = script_path.parent() + .and_then(|p| p.parent()) + .unwrap_or_else(|| std::path::Path::new(".")); + + println!("📂 Bridge Arbeitsverzeichnis: {:?}", project_dir); + let mut child = Command::new("node") .arg(&script_path) + .current_dir(project_dir) .stdin(Stdio::piped()) .stdout(Stdio::piped()) .stderr(Stdio::piped())