claudeAgentSession.ts ×1

Frontier kind: Code frontier

unlabeled · c_1b826bc28397

23 tests · 56475 LOC · 346 files · introduces 0 tests · 33 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range33 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5583 ranges56475 lines · 346 files · Browse complete extent
All tests (intent)
23 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: 33 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeAgentSession.ts 33 introduced LOC · 1 range

Open complete file

539
540 pipeline.attachRematerializer(async (_reason) => {
541 > const liveMode = readClaudePermissionMode(this._configurationService, this._storageUri) ?? this._permissionModeFallback; claudeAgentSession.ts
542 > try {
543 > const { mcpServers: rebuildMcp, allowedTools: rebuildAllowedTools } = await this._buildStartupToolWiring(ctx.serverToolHost);
544 > const rebuildAgentName = await resolveClaudeAgentName(this._provisionalAgent, this._fileService, this._logService, this.sessionId);
545 > const rebuildAbort = new AbortController();
546 > const rebuildOptions = await buildOptions(
547 > {
548 > sessionId: this.sessionId,
549 > workingDirectory: this.workingDirectory!,
550 > model: this._provisionalModel,
551 > abortController: rebuildAbort,
552 > permissionMode: liveMode,
553 > canUseTool: ctx.canUseTool,
554 > onElicitation: ctx.onElicitation,
555 > isResume: true,
556 > resumeSessionAt: this._pendingResumeSessionAt,
557 > mcpServers: rebuildMcp,
558 > allowedTools: rebuildAllowedTools,
559 > plugins: this.clientCustomizationsDiff.consume(this._desiredClientPluginPaths()),
560 > agent: rebuildAgentName,
561 > },
562 > ctx.transport,
563 > data => this._logService.error(`[Claude SDK stderr] ${data}`),
564 > );
565 > this._logService.info(`[Claude] session ${this.sessionId}: resume rebuild agent=${rebuildOptions.agent ?? '(none)'}`);
566 > const rebuildWarm = await this._sdkService.startup({ options: rebuildOptions });
567 > // Rebuild succeeded with the anchor applied — clear it so it
568 > // isn't re-applied. A throw above keeps it staged (handled in the
569 > // catch alongside the tool/customization diffs) so the next send
570 > // retries the truncation instead of dropping the restore.
571 > this._pendingResumeSessionAt = undefined;
572 > return { warm: rebuildWarm, abortController: rebuildAbort };
573 > } catch (err) {
574 this.toolDiff.markDirty();
575 this.clientCustomizationsDiff.markDirty();