Skip to content

fix: use per-repo context for actions and session workdir in multi-repo projects#222

Merged
matt2e merged 2 commits intomainfrom
subdir
Feb 19, 2026
Merged

fix: use per-repo context for actions and session workdir in multi-repo projects#222
matt2e merged 2 commits intomainfrom
subdir

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Feb 19, 2026

  • Use the project_repo's subpath (when a branch is attached to a specific repo) instead of always falling back to the project-level subpath for session working directories
  • Pass projectRepoId through to listProjectActions so actions are scoped to the correct repo context
  • Remove stale project-scoped detect_project_actions command and createProjectAction frontend helper that were superseded by repo-scoped versions

matt2e and others added 2 commits February 19, 2026 14:06
…po projects

When a project has multiple repos, branch cards were all showing the
actions of the primary repo because list_project_actions ignored the
branch's project_repo_id. Now passes projectRepoId from the frontend
so each branch gets the action context for its own repo.

Session creation was also failing for branches on secondary repos
because start_branch_session always appended project.subpath to the
worktree path. For branches linked to a project_repo, the repo's own
subpath (which may be null) is now used instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…epo-scoped versions

detect_project_actions and create_project_action always used the
project's primary repo, making them incorrect for multi-repo projects.
Neither was called from the UI — the action management modal already
used the repo-specific detect_repo_actions and create_repo_action
commands. Remove the stale backend commands and their frontend wrappers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@matt2e matt2e merged commit 0a85a28 into main Feb 19, 2026
3 checks passed
@matt2e matt2e deleted the subdir branch February 19, 2026 22:49
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

Comments