copilotAgentSession.ts ×5

Frontier kind: Code frontier

unlabeled · c_0028cd5878eb

16 tests · 44008 LOC · 243 files · introduces 0 tests · 17 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges17 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4108 ranges44008 lines · 243 files · Browse complete extent
All tests (intent)
16 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: 17 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 17 introduced LOC · 5 ranges

Open complete file

3395 return;
3396 }
3398 > const content: ToolResultContent[] = [...tracked.content];
3399 > if (toolOutput !== undefined) {
3400 content.push({ type: ToolResultContentType.Text, text: toolOutput });
3401 }
3403 > // Attach the pty terminal reference for shell tools before folding in
3404 > // SDK result content, so a `shell_exit` lands its completion data on
3405 > // the terminal block (skip if any terminal block was already added
3406 > // while the tool was running).
3407 const ptyTerminalUri = isShellTool(tracked.toolName) ? this._shellManager?.getTerminalUriForToolCall(e.data.toolCallId) : undefined;
3408 let retireNonPtyShellTracking = !!ptyTerminalUri;
3414 });
3415 }
3417 const shellExit = appendSdkToolResultContent(content, e.data.result?.contents, { session: this.sessionUri, toolCallId: e.data.toolCallId, title: tracked.displayName });
3418 if (isShellTool(tracked.toolName) && !ptyTerminalUri) {
3435 }
3436 }
3438 const command = isString(tracked.parameters?.command) ? tracked.parameters.command : undefined;
3439 const filePaths = isEditTool(tracked.toolName, command) ? this._getEditFilePaths(tracked.parameters) : [];
3448 }
3449 }
3451 > this._emitAction({
3452 > type: ActionType.ChatToolCallComplete,
3453 > turnId: this._turnId,
3454 > toolCallId: e.data.toolCallId,
3455 > result: {
3456 > success: e.data.success,
3457 pastTenseMessage: getPastTenseMessage(tracked.toolName, displayName, tracked.parameters, e.data.success, e.data.success ? toolOutput : undefined),
3458 content: content.length > 0 ? content : undefined,