gabriel / muse public
fix minor workspace task/fix-workspace-root #1 / 1
gabriel · 65 days ago · Apr 12, 2026 · Diff

fix(workspace): resolve manifest via find_workspace_root, not Path.cwd()

All workspace subcommands were calling Path.cwd() to locate the manifest. When -C is used to target a different repo (e.g. muse -C ~/ecosystem/muse workspace add ...), cwd() resolves to the -C target, not the actual workspace root — writing the manifest to the wrong .muse/workspace.toml.

Adds find_workspace_root() and require_workspace_root() to core/workspace.py, mirroring the find_repo_root()/require_repo() pattern. Walks up from cwd to find the directory containing .muse/workspace.toml. All six callsites in the workspace command module updated.

sha256:9f446bbd80aef337ba896d0c2688d6d5341e28b5233ff0cc736d00a6cf1daec1 sha
sha256:df6459c5eb2e49b106ac8ed70023775e02ea79519851c10bb8e5615a7189255a snapshot
← Older Oldest on task/fix-workspace-root
All commits
Newer → Latest on task/fix-workspace-root

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:9f446bbd80aef337ba896d0c2688d6d5341e28b5233ff0cc736d00a6cf1daec1 --body "your comment"