claudeAgentSession.ts ×5

Frontier kind: Code frontier

unlabeled · c_836b7a28551e

86 tests · 56344 LOC · 346 files · introduces 0 tests · 27 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges27 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5550 ranges56344 lines · 346 files · Browse complete extent
All tests (intent)
86 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.

2 files ranked by introduced lines: 27 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeSdkPipeline.ts 17 introduced LOC · 1 range

Open complete file

655 }
656 if (message.type === 'result') {
657 > const completed = this._queue.settleHead(); claudeSdkPipeline.ts
658 > this._logService.info(`[Claude:${this.sessionId}] result for sdkUuid=${completed?.sdkUuid}`);
659 > // Final result: queue fully drained → protocol turn done.
660 > // Intermediate result (still pending entries from a
661 > // steering preempt) does NOT fire ChatTurnComplete.
662 > if (completed && this._queue.isEmpty) {
663 > this._onDidProduceSignal.fire({
664 > kind: 'action',
665 > resource: this.chatChannelUri,
666 > action: {
667 > type: ActionType.ChatTurnComplete,
668 > turnId: completed.turnId,
669 > duration: Math.max(0, completed.stopWatch.elapsed()),
670 > },
671 > });
672 > }
673 > }
674 }
675 if (this._abortController.signal.aborted) {
src/vs/platform/agentHost/node/claude/claudeAgentSession.ts 10 introduced LOC · 5 ranges

Open complete file

278 */
279 private _enrichSignalWithCredits(signal: AgentSignal): AgentSignal {
280 > if (this._transportKind !== 'proxy' || signal.kind !== 'action' || signal.action.type !== ActionType.ChatUsage || this._currentTurnNanoAiu <= 0) { claudeAgentSession.ts
281 > return signal;
282 > }
283 const usage = signal.action.usage;
284 return {
305 */
306 private _enrichSignalWithMcpContributor(signal: AgentSignal): AgentSignal {
307 > if (signal.kind !== 'action' || signal.action.type !== ActionType.ChatToolCallStart || signal.action.contributor !== undefined) { claudeAgentSession.ts
308 > return signal;
309 > }
310 const toolName = signal.action.toolName;
311 if (!toolName.startsWith('mcp__')) {
313 }
314 const serverName = toolName.split('__')[1];
315 > const customizationId = serverName ? findMcpChildId(this._lastCustomizations, serverName) : undefined; claudeAgentSession.ts
316 > if (customizationId === undefined) {
317 return signal;
318 }
319 return { ...signal, action: { ...signal.action, contributor: { kind: ToolCallContributorKind.MCP, customizationId } } };
321
322 constructor(