claudeAgent.ts ×4

Frontier kind: Code frontier

unlabeled · c_81d86d700dc7

139 tests · 54295 LOC · 346 files · introduces 0 tests · 29 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges29 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5022 ranges54295 lines · 346 files · Browse complete extent
All tests (intent)
139 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 29 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeAgent.ts 29 introduced LOC · 4 ranges

Open complete file

717
718 async createSession(config: IAgentCreateSessionConfig = {}): Promise<IAgentCreateSessionResult> {
719 > this._ensureAuthenticated(); claudeAgent.ts
720 > if (config.fork) {
721 return this._forkSession(config, config.fork);
722 }
723 > const sessionId = config.session ? AgentSession.id(config.session) : generateUuid(); claudeAgent.ts
724 > const sessionUri = AgentSession.uri(this.id, sessionId);
725 >
726 > const existing = this._findAnySession(sessionId);
727 > if (existing) {
728 // Re-apply the eager active client on reconnect: AgentService reissues
729 // `createSession` for an existing URI, so the reconnected client's
752 ? await projectFromCopilotContext({ cwd: config.workingDirectory.fsPath }, this._gitService)
753 : undefined;
755 > const permissionMode = this._resolvePermissionMode(config.config);
756 >
757 > const session = ClaudeAgentSession.createProvisional(
758 > sessionId,
759 > sessionUri,
760 > URI.parse(buildDefaultChatUri(sessionUri)),
761 > workingDirectory,
762 > project,
763 > config.model,
764 > config.agent,
765 > config.config,
766 > new PendingRequestRegistry<CallToolResult>(),
767 > permissionMode,
768 > this._metadataStore,
769 > this._instantiationService,
770 > );
771 > this._seedSessionEntry(sessionId, sessionUri, session);
772 > await this._seedEagerActiveClient(sessionUri, config.activeClient);
773
774 return {
776 workingDirectory,
777 provisional: true,
778 > ...(project ? { project } : {}), claudeAgent.ts
779 > };
780 > }
781
782 /**