claudeAgent.ts ×7

Frontier kind: Joint frontier

unlabeled · c_315e5065244c

1 test · 56935 LOC · 346 files · introduces 1 test · 28 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges28 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5757 ranges56935 lines · 346 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

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

src/vs/platform/agentHost/node/claude/claudeAgent.ts 27 introduced LOC · 7 ranges

Open complete file

1387 let project = parent?.project;
1388 if (!workingDirectory) {
1389 > const sdkInfo = await this._sdkService.getSessionInfo(parentSessionId); claudeAgent.ts
1390 > workingDirectory = sdkInfo?.cwd ? URI.file(sdkInfo.cwd) : undefined;
1391 > }
1392 if (!workingDirectory) {
1393 throw new Error(`[Claude] createChat: cannot resolve working directory for parent session ${session.toString()}`);
1493 return existing;
1494 }
1495 > const parentSession = await this._resolveParentSession(session, sessionId); claudeAgent.ts
1496 > const mainSession = ClaudeAgentSession.createProvisional(
1497 > sessionId,
1498 > session,
1499 > URI.parse(buildDefaultChatUri(session)),
1500 > parentSession.workingDirectory,
1501 > parentSession.project,
1502 > parentSession.model,
1503 > parentSession.agent,
1504 > undefined,
1505 > new PendingRequestRegistry<CallToolResult>(),
1506 > parentSession.permissionMode,
1507 > this._metadataStore,
1508 > this._instantiationService,
1509 > );
1510 > return this._seedSessionEntry(sessionId, session, mainSession);
1511 });
1512 }
1611 */
1612 async materializeChat(chat: URI, providerData: string | undefined): Promise<void> {
1613 > if (isDefaultChatUri(chat)) { claudeAgent.ts
1614 return;
1615 }
1616 > const chatInfo = parseChatUri(chat); claudeAgent.ts
1617 > if (!chatInfo) {
1618 return;
1619 }
1620 > if (providerData === undefined) { claudeAgent.ts
1621 return;
1622 }
1623 > const backing = decodeProviderData(providerData); claudeAgent.ts
1624 > if (!backing) {
1625 this._logService.warn(`[Claude] materializeChat: dropping corrupt providerData for ${chat.toString()}`);
1626 return;
1627 }
1628 > this._chatBackings.set(chat.toString(), backing); claudeAgent.ts
1629 > }
1630
1631 // #endregion
src/vs/platform/agentHost/node/agentPeerChats.ts 1 introduced LOC · 1 range

Open complete file

197 // looks like a `ModelSelection`.
198 const validModel = model && typeof model === 'object' && typeof (model as { id?: unknown }).id === 'string'
199 > ? model as ModelSelection agentPeerChats.ts
200 : undefined;
201 const sideChat = value.sideChat as { source?: unknown; turnId?: unknown; selection?: unknown; providerAnchorTurnId?: unknown; inheritedTurnCount?: unknown; partialResponse?: unknown; context?: unknown } | undefined;