Skip to content

fix(core): relocate moved project checkouts - #34142

Closed
Hona wants to merge 1 commit into
devfrom
core-project-relocation
Closed

fix(core): relocate moved project checkouts#34142
Hona wants to merge 1 commit into
devfrom
core-project-relocation

Conversation

@Hona

@Hona Hona commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

  • detect an externally moved checkout only when the stable project ID matches and the stored primary path is specifically NotFound
  • atomically promote the new primary path, rewrite root/nested session locations, invalidate session context epochs, and replace the project-directory record
  • preserve existing live clone/worktree behavior and keep filesystem I/O off normal project opens/listing

Validation

  • regression test fails on 71c3a7c8f (worktree remains the deleted path)
  • same test passes on this branch, including concurrent relocation, nested sessions, epoch invalidation, and directory replacement
  • existing live-clone guard passes on both dev and this branch
  • project suite: 37 passed
  • session runner suite: 80 passed
  • core/opencode typechecks and pre-push monorepo typecheck pass
  • real isolated opencode serve flow passes

Related: #27822 #25625 #29703 #29823 #30697 #31869 #31888

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 27, 2026 03:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants