MCPcopy Create free account
hub / github.com/coder/mux / forkWorkspace

Method forkWorkspace

src/node/runtime/WorktreeRuntime.ts:153–160  ·  view source on GitHub ↗
(params: WorkspaceForkParams)

Source from the content-addressed store, hash-verified

151 }
152
153 async forkWorkspace(params: WorkspaceForkParams): Promise<WorkspaceForkResult> {
154 // Resolve the source path through this runtime's override-aware getWorkspacePath so forks
155 // FROM a workspace with a persisted path override (e.g. an isolation: "none" task sharing
156 // its parent's checkout) read the real source checkout, not a name-derived path.
157 return this.worktreeManager.forkWorkspace(params, {
158 sourceWorkspacePath: this.getWorkspacePath(params.projectPath, params.sourceWorkspaceName),
159 });
160 }
161}

Callers

nothing calls this directly

Calls 2

getWorkspacePathMethod · 0.95
forkWorkspaceMethod · 0.65

Tested by

no test coverage detected