Repository navigation
a-change-runs-in-its-own-worktree: a change in its own worktree runs there - #874
Merged
Merged
Conversation
…there Run Change... on the card of a change worked in its own worktree failed at its first stage: "cwd .../.worktrees/HppMCP/mcp-platform-foundation is outside the workspace c:\Prog\HppMCP". Every agent was bound to the open workspace, and the chain, a single stage and a card's run controls chose an agent by its id alone. - core: runRootOf and agentsByRunRoot - a run inside one of the repository's worktrees gets that worktree's own agents, made once; any other run the workspace's, whose sandbox still refuses it. - The chain runner asks for a stage's agent with its cwd; the editor's AI panel and run controls, and the standalone server's chain and socket runs, do the same. - The editor's run dialog reads and writes the change's harness where the change is worked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
The owner's run of a
HppMCPchange from its card (2026-10-10) failed at its first stage:cwd "C:/Prog/.worktrees/HppMCP/mcp-platform-foundation" is outside the workspace "c:\Prog\HppMCP"Every agent was bound to the open workspace, and the chain, a single stage and a card's run controls chose an agent by its id alone — so every run in a change's own worktree was refused, in both hosts (openspec/changes/a-change-runs-in-its-own-worktree).
runRootOf/agentsByRunRoot— a run inside one of the repository's worktrees (<worktree root>/<repository>/<dir>) gets that worktree's own agents, made once; any other run the workspace's, whose sandbox still refuses it.HarnessChainDeps.resolveRunner(agentId, cwd?); the editor's AI panel, chain and card run controls, and the standalone server's chain and socket runs pass the run'scwd.Test plan
openspec validate --strict; merge gate names only 4.3 openHppMCPruns its stages🤖 Generated with Claude Code