Skip to content

fix(desktop): engine starts in the home folder, not / (#186118) - #89

Open
mayoalexander wants to merge 1 commit into
iris/1.18.23from
fix/desktop-engine-home-cwd
Open

mayoalexander wants to merge 1 commit into
iris/1.18.23from
fix/desktop-engine-home-cwd

Conversation

@mayoalexander

Copy link
Copy Markdown

Fixes #186118 — found live on a client QA call: in IRIS Desktop, iris playbook install from the chat failed because the working directory was /; the agent had to cd ~.

Cause. An app opened from Finder or the Dock starts with cwd /, and spawn_sidecar never set one, so the engine inherited it. A chat with no project folder ran its shell at the read-only root, and every relative write (installs, exports, saves) targeted /.iris.

Fix. spawn_sidecar sets .current_dir(home) on both platform branches (dirs_next_home(), falling back to /). 9 lines, one file.

Verification — stated honestly. Not compiled locally: the authoring machine has no Rust toolchain and ~6 GB free, which is not enough for a Tauri build. current_dir is on tauri_plugin_shell::process::Command in v2, and dirs_next_home() already exists in this file. The desktop release build compiles every platform before anything is promoted, so a mistake fails the build rather than shipping. Before release: open the app from the Dock with no project, ask the chat to run pwd → expect the home folder.

🤖 Generated with Claude Code

https://claude.ai/code/session_0121oCnNCeZBewSyiQSQ8bin

…es stop targeting /.iris (#186118)

An app opened from Finder or the Dock starts with cwd /, and spawn_sidecar did not set one, so the
engine inherited it. A chat with no project folder ran its shell at the read-only root: every relative
write (playbook install, exports, file saves) targeted /.iris. Found live on a client QA call — install
failed until the agent ran cd ~.

spawn_sidecar sets .current_dir(home) on both platform branches (dirs_next_home(), falling back to /).
NOT compiled locally (no Rust toolchain on the authoring machine); the desktop release build compiles
all platforms before anything is promoted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0121oCnNCeZBewSyiQSQ8bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant