copilotAgentSession.ts ×3
Frontier kind: Code frontier
unlabeled · c_1491f72fe479
8 tests · 44103 LOC · 243 files · introduces 0 tests · 5 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
3 ranges 5 lines · 1 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
copilotAgentSession.ts ×3 — Focused concept
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping background shell output remains live until its session is disposed|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping completed non-pty shell calls retire their distinct live output resources|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool partial results stream into an output-only terminal channel|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool success without shell_exit does not fabricate a process exit|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping zero-partial shell completion creates, seeds, and finalizes the output channel|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping empty shell preview still retires the completed output channel|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping live tool_complete maps SDK shell_exit content to terminal completion|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×3 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×5 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×3 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×5 — Descendant (narrower)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×12 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×5 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×7 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×10 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×5 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×67 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping non-pty shell terminal URIs are scoped by session and tool call|occurrence=1 — Descendant (narrower)
Introduced tests:
copilotAgentSession.ts ×141 — Descendant (narrower)
Introduced files:
testAgentHostTerminalManager.ts ×1 — Descendant (narrower)
Introduced files:
agentFeedbackAttachments.ts ×9 — Descendant (narrower)
Introduced files:
testAgentHostTerminalManager.ts ×4 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Descendant (narrower)
Introduced files:
mapSessionEvents.ts ×2 — Descendant (narrower)
Introduced files:
mapSessionEvents.ts ×12 — Descendant (narrower)
Introduced files:
copilotSessionWrapper.ts ×51 — Descendant (narrower)
Introduced files:
copilotShellTools.ts ×23 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×3 — Descendant (narrower)
Introduced files:
shellCommandExecution.ts ×12 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×29 — Descendant (narrower)
Introduced files:
agentHostTerminalManager.ts ×41 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
terminalSandboxEngine.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSlashCommand.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×60 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
copilotPluginConverters.ts ×17 — Descendant (narrower)
Introduced files:
fileEditTracker.ts ×9 — Descendant (narrower)
Introduced files:
agentHostRepoInfoTelemetry.ts ×13 — Descendant (narrower)
Introduced files:
editSurvivalReporter.ts ×7 — Descendant (narrower)
Introduced files:
forwardedChatError.ts ×12 — Descendant (narrower)
Introduced files:
shell.ts ×3 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×7 — Descendant (narrower)
Introduced files:
agentHostGitService.ts ×3 — Descendant (narrower)
Introduced files:
agentHostHeadlessTerminal.ts ×11 — Descendant (narrower)
Introduced files:
testGitHubEndpointService.ts ×1 — Descendant (narrower)
Introduced files:
agentHostGitHubEndpointService.ts ×9 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×16 — Descendant (narrower)
Introduced files:
agentCustomizationSettings.ts ×7 — Descendant (narrower)
Introduced files:
byokLmProxyService.ts ×11 — Descendant (narrower)
Introduced files:
terminalEnvironment.ts ×6 — Descendant (narrower)
Introduced files:
otlpLogEmitter.ts ×29 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
loopbackProxyServer.ts ×12 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×14 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×17 — Descendant (narrower)
Introduced files:
read_ shell tools getToolInputString write_bash extracts command field|occurrence=1, read_ shell tools getToolInputString write_powershell extracts command field|occurrence=1 — Descendant (narrower)
Introduced tests:
copilotToolDisplay.test|title=copilotToolDisplay — friendly tool names falls back to the raw tool name for unknown tools|occurrence=1 — Descendant (narrower)
Introduced tests:
copilotToolDisplay.ts ×2 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×2 — Descendant (narrower)
Introduced files:
read_ shell tools getToolKind returns terminal for bash|occurrence=1, read_ shell tools getToolKind returns terminal for powershell|occurrence=1 — Descendant (narrower)
Introduced tests:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
read_ shell tools getShellLanguage bash returns shellscript|occurrence=1, read_ shell tools getShellLanguage powershell returns powershell|occurrence=1, +4 — Descendant (narrower)
Introduced tests:
copilotToolDisplay.ts ×2 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×6 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
log.ts ×72 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×31 — Descendant (narrower)
Introduced files:
sessionDataService.ts ×1 — Descendant (narrower)
Introduced files:
powershell.ts ×16 — Descendant (narrower)
Introduced files:
buffer.test|title=Buffer Performance issue with VSBuffer#slice #76076|occurrence=1 — Descendant (narrower)
Introduced tests:
agentHostTelemetryReporter.ts ×13 — Descendant (narrower)
Introduced files:
pendingRequestRegistry.ts ×9 — Descendant (narrower)
Introduced files:
serverToolGroups.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
serverToolGroups.ts ×1 — Descendant (narrower)
Introduced files:
serverToolGroups.ts ×4 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
serverToolGroups.ts ×2 — Descendant (narrower)
Introduced files:
async.ts ×202 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×33 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
mcpAppDefaults.ts ×1 — Descendant (narrower)
Introduced files:
debugGetDependencyGraph.ts ×2 — Descendant (narrower)
Introduced files:
observableSignalFromEvent.ts ×1 — Descendant (narrower)
Introduced files:
promise.ts ×1 — Descendant (narrower)
Introduced files:
devToolsLogger.ts ×24 — Descendant (narrower)
Introduced files:
agentService.ts ×1 — Descendant (narrower)
Introduced files:
agentService.ts ×1 — Descendant (narrower)
Introduced files:
htmlContent.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
htmlContent.ts ×20 — Descendant (narrower)
Introduced files:
agentService.ts ×15 — Descendant (narrower)
Introduced files:
annotationsUri.ts ×3 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×41 — Descendant (narrower)
Introduced files:
windowsVersion.ts ×6 — Descendant (narrower)
Introduced files:
commandLineHelpers.test|title=stripRedundantCdPrefix handles missing parameters|occurrence=1, commandLineHelpers.test|title=stripRedundantCdPrefix handles missing working directory|occurrence=1 — Descendant (narrower)
Introduced tests:
commandLineHelpers.test|title=stripRedundantCdPrefix matches backslash extracted dir against backslash native wd on Windows|occurrence=1, commandLineHelpers.test|title=stripRedundantCdPrefix matches mixed path separators (forward-slash extracted vs native fsPath wd)|occurrence=1 — Descendant (narrower)
Introduced tests:
sessionReducers.ts ×1 — Descendant (narrower)
Introduced files:
commandLineHelpers.ts ×1 — Descendant (narrower)
Introduced files:
commandLineHelpers.ts ×2 — Descendant (narrower)
Introduced files:
hash.ts ×17 — Descendant (narrower)
Introduced files:
commandLineHelpers.ts ×3 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
resources.ts ×23 — Descendant (narrower)
Introduced files:
productService.ts ×1 — Descendant (narrower)
Introduced files:
network.ts ×20 — Descendant (narrower)
Introduced files:
strings.test|title=Strings trimWhitespace|occurrence=1 — Descendant (narrower)
Introduced tests:
instantiation.ts ×1 — Descendant (narrower)
Introduced files:
strings.ts ×101 — Descendant (narrower)
Introduced files:
activeClientState.ts ×17 — Descendant (narrower)
Introduced files:
changesetUri.ts ×16 — Descendant (narrower)
Introduced files:
agentToolCallMeta.ts ×1 — Descendant (narrower)
Introduced files:
agentToolCallMeta.ts ×2 — Descendant (narrower)
Introduced files:
sessionState.ts ×57 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×5 — Descendant (narrower)
Introduced files:
cancellation.test|title=CancellationToken None|occurrence=1 — Descendant (narrower)
Introduced tests:
event.ts ×8 — Descendant (narrower)
Introduced files:
promptRegistry.ts ×7 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×4 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
oauth.ts ×19 — Descendant (narrower)
Introduced files:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
copilotCliConfig.ts ×1 — Descendant (narrower)
Introduced files:
copilotCliConfig.ts ×2 — Descendant (narrower)
Introduced files:
sandboxConfigForSdk.ts ×1 — Descendant (narrower)
Introduced files:
sandboxConfigSchema.ts ×1 — Descendant (narrower)
Introduced files:
copilotCliConfig.ts ×2 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
yaml.ts ×54 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
environmentVariableCollection.ts ×11 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
path.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×10 — Descendant (narrower)
Introduced files:
editSurvivalTracker.ts ×8 — Descendant (narrower)
Introduced files:
osc633Parser.ts ×8 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
editChunkExtractor.ts ×5 — Descendant (narrower)
Introduced files:
mime.ts ×5 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
uuid.test|title=UUID generation|occurrence=1 — Descendant (narrower)
Introduced tests:
client tool-search names are distinct and stable|occurrence=1, toolSearchDeferral.test|title=toolSearchDeferral constants non-deferred client allowlist holds the core VS Code tools, not the search tool|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
types.test|title=Types isString|occurrence=1 — Descendant (narrower)
Introduced tests:
aiAgentEnv.ts ×1 — Descendant (narrower)
Introduced files:
claudeProxyAuth.ts ×1 — Descendant (narrower)
Introduced files:
mcpPlatformTypes.ts ×1 — Descendant (narrower)
Introduced files:
utils.ts ×3 — Descendant (narrower)
Introduced files:
nls.ts ×1 — Descendant (narrower)
Introduced files:
path.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×9 — Descendant (narrower)
Introduced files:
telemetry.ts ×3 — Descendant (narrower)
Introduced files:
nls.ts ×1 — Descendant (narrower)
Introduced files:
path.ts ×3 — Descendant (narrower)
Introduced files:
nls.ts ×6 — Descendant (narrower)
Introduced files:
objects.ts ×13 — Descendant (narrower)
Introduced files:
instantiation.ts ×5 — Descendant (narrower)
Introduced files:
path.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
uuid.ts ×3 — Descendant (narrower)
Introduced files:
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: 5 introduced LOC across 3 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 5 introduced LOC · 3 ranges
Open complete file
3419
const completion = this . _nonPtyShellTerminals . completeToolCall ( e . data . toolCallId , toolOutput , shellExit );
3420
if ( completion ) {
3422
>
const terminalIndex = content . findIndex ( c => c . type === ToolResultContentType . Terminal );
3423
>
if ( terminalIndex === - 1 ) {
3424
content . push ({
3425
type : ToolResultContentType . Terminal ,
3429
...( completion . result ? { result : completion.result } : {}),
3430
});
3432
const terminalBlock = content [ terminalIndex ] as ToolResultTerminalContent ;
3433
content [ terminalIndex ] = { ... terminalBlock , result : completion.result };
3434
}
3436
}
3437