anomalyco / anomalyco/opencode

opencode v2: /move loses parent workspace MCP and skill configuration

Open
#44,915 1 comment 0 reactions 1 assignee View on GitHub

@kitlangton is already working on this.

Since Aug 25, 2026.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Summary

OpenCode V2 loses parent-defined workspace configuration when /move relocates a session into an OpenCode-managed worktree.

The original session detects MCPs and skills configured in the parent repository directory, but the relocated session does not because its generated worktree is outside that configuration hierarchy.

Environment

  • opencode version: 0.0.0-beta-18155
  • OS: Linux 7.0.0-30-generic (linux x64)
  • Terminal: Ghostty (TERM=xterm-ghostty, COLORTERM=truecolor)
  • Shell: /usr/bin/zsh
  • Install/channel: beta
  • Active plugins: configured; omitted for privacy.

Reproduction

  1. Keep shared OpenCode MCP and skill configuration in a parent repository directory used by multiple child projects.
  2. Start OpenCode V2 in one of the child projects.
  3. Confirm that the session detects the MCPs and skills inherited from the parent configuration.
  4. Run /move.
  5. OpenCode relocates the session to a generated worktree under a path similar to:
    ~/.local/share/opencode/worktree/<id>/<generated-name>
    
  6. Inspect the MCPs and skills available in the relocated session.

Expected Behavior

/move should preserve the effective MCP and skill configuration of the source workspace.

If worktree isolation intentionally changes configuration discovery, OpenCode V2 should warn before moving or clearly document that parent-defined configuration will not be available in the relocated session.

Actual Behavior

The relocated session no longer detects MCPs and skills configured in the source project's parent repository directory.

The original session, which remains in the source workspace, continues to detect the same MCPs and skills correctly.

Additional Context

The generated worktree is outside the source repository's parent directory hierarchy, so normal configuration discovery no longer reaches the shared configuration. This changes the available session capabilities unexpectedly after /move.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.