MCPcopy Create free account
hub / github.com/cli/cli / createSession

Method createSession

evals/src/core/home.ts:21–29  ·  view source on GitHub ↗
(config: SessionConfig)

Source from the content-addressed store, hash-verified

19 }
20
21 override createSession(config: SessionConfig) {
22 const isolated = {
23 ...config,
24 enableConfigDiscovery: false,
25 requestExtensions: false,
26 disabledSkills: [...new Set([...(config.disabledSkills ?? []), ...this.disabledBuiltins])],
27 };
28 return super.createSession(this.afterTool ? afterSuccessfulTool(isolated, this.afterTool) : isolated);
29 }
30}
31
32/** Prepares an isolated agent home: gh (observed by default), its token, and a git credential helper. */

Callers

nothing calls this directly

Calls 2

afterSuccessfulToolFunction · 0.85
createSessionMethod · 0.65

Tested by

no test coverage detected