We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3627f6 commit 5e44557Copy full SHA for 5e44557
1 file changed
packages/desktop/src-tauri/src/cli.rs
@@ -524,6 +524,12 @@ pub fn spawn_command(
524
// watchdog. This avoids shell rc side effects while still killing the sidecar if the
525
// desktop parent disappears before RunEvent::Exit can run.
526
let mut cmd = Command::new("/bin/sh");
527
+ // Start the supervisor (and therefore the sidecar) from $HOME instead of inheriting the
528
+ // Tauri bundle / launcher cwd. Mirrors upstream sst/opencode#22535 so any cwd-sensitive
529
+ // logic (path resolution, log placement, shell rc fallbacks) sees a sane working directory.
530
+ if let Ok(home) = app.path().home_dir() {
531
+ cmd.current_dir(home);
532
+ }
533
cmd.arg("-c")
534
.arg(UNIX_SUPERVISOR)
535
.arg("opencode-supervisor");
0 commit comments