MCPcopy Create free account
hub / github.com/cortexkit/magic-context / createSession

Method createSession

packages/e2e-tests/src/harness.ts:100–105  ·  view source on GitHub ↗

Create a session bound to the isolated workdir. Throws on failure.

()

Source from the content-addressed store, hash-verified

98
99 /** Create a session bound to the isolated workdir. Throws on failure. */
100 async createSession(): Promise<string> {
101 return this.createSessionWithRetry(
102 () => this.client.session.create({ query: { directory: this.opencode.env.workdir } }),
103 "session.create",
104 );
105 }
106
107 /**
108 * Post a session.create and retry the transient warmup failure where the

Calls 2

createMethod · 0.45

Tested by

no test coverage detected