This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Repository navigation
feat: name meta exec and plugin repos by their path from the real root - #37
Merged
Merged
Conversation
meta exec inside a worktree passed no root to loop_lib, so it named the root repo by its folder (t1, sorted last) and children by basename, while the same command outside a worktree shows '. (name)'. Pass the worktree dir as the root. Implements [[tasks/harmony-2712]]
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
execute_plan guessed the root as the plan's first directory. In a worktree with no root checkout that is a child repo, so meta git status showed the first repo as '. (a-agent)'. The callers that know the root (the meta dir, or the worktree dir) now pass it; the guess stays for calls without projects (help, git clone), where the plugin lists the root first. Implements [[tasks/harmony-2712]]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
meta execinside a worktree built itsLoopConfigwithroot_dir: None, so it named the worktree's root repo by its folder (t1, sorted last) and children by basename. Outside a worktree the same command passes the meta dir as the root and shows. (name)first. It now passes the worktree dir (task_dir) as the root in both worktree branches (with and without a.metaconfig).Plugin commands (
meta git status,meta git pull, ...) had a related bug:execute_planguessed the root as the plan's first directory. In a worktree with no root checkout (the meta dir isn't a git repo) that is a child repo, so the first repo was shown as the root.SubprocessPluginManager::executenow takes the root from its callers (the meta dir, or the worktree dir); calls without projects (help,git clone) passNoneand keep the guess, since the plugin lists the root first there.With gitkb/loop_lib#13 (names repos by their path from the root) children show as
./agent; on loop_lib main they keep their basename and only the root line changes. No ordering needed between the PRs. JSON fields are unchanged. With a root set, loop_lib's parallel mode puts the root first in theresultsarray, as it already does outside a worktree (before: the root sorted among the children by folder name). No consumer depends on that order (meta_mcp finds results by field).Before / after
Scratch meta workspace, inside worktree
t1(.,agent,alpha):meta exec -- echo hiBefore:
After (with loop_lib#13):
Worktree with no root checkout (meta dir not a git repo,
.metahasa/agentandb/agent), inside worktreet2:meta git status -sBefore:
After (with loop_lib#13):
Verification
cargo test -p meta --lib --bins --test plugin_git, clippy-D warnings, fmt. Locally tworegistrytests fail only because~/.metaexists above the temp dir on this machine (untouched code); CI is the check.metafrom this branch and ran the command above.Part of tasks/harmony-2712, with gitkb/loop_lib#13, gitkb/meta_project_cli#17 and gitkb/meta_git_cli#30 (
meta git worktree exec).Implements [[tasks/harmony-2712]]