MCPcopy Index your code
hub / github.com/codeaashu/claude-code / wrapWithCwd

Function wrapWithCwd

src/tools/AgentTool/resumeAgent.ts:227–228  ·  view source on GitHub ↗
(fn: () => T)

Source from the content-addressed store, hash-verified

225 }
226
227 const wrapWithCwd = <T>(fn: () => T): T =>
228 resumedWorktreePath ? runWithCwdOverride(resumedWorktreePath, fn) : fn()
229
230 void runWithAgentContext(asyncAgentContext, () =>
231 wrapWithCwd(() =>

Callers 1

resumeAgentBackgroundFunction · 0.70

Calls 1

runWithCwdOverrideFunction · 0.85

Tested by

no test coverage detected