copilotAgentSession.ts ×5
Frontier kind: Code frontier
unlabeled · c_1913078a3269
11 tests · 43801 LOC · 243 files · introduces 0 tests · 10 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
5 ranges 10 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 ×5 — Focused concept
Introduced files:
copilotAttachmentUtils.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession preserves simple attachment display kind through SDK blobs|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAttachmentUtils.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAttachmentUtils.ts ×3 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession extracts selected text from file contents for different line endings and bounds|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.ts ×7 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×7 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — 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 ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×7 — 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 ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×2 — 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.ts ×23 — Descendant (narrower)
Introduced files:
copilotSessionWrapper.ts ×2 — Descendant (narrower)
Introduced files:
testAgentHostTerminalManager.ts ×1 — Descendant (narrower)
Introduced files:
agentFeedbackAttachments.ts ×1 — Descendant (narrower)
Introduced files:
agentFeedbackAttachments.ts ×9 — Descendant (narrower)
Introduced files:
testAgentHostTerminalManager.ts ×4 — Descendant (narrower)
Introduced files:
types.ts ×1 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×3 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×2 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×2 — Descendant (narrower)
Introduced files:
shellCommandExecution.ts ×12 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×29 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
agentHostTerminalManager.ts ×41 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
fileEditTracker.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×60 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
fileEditTracker.ts ×9 — Descendant (narrower)
Introduced files:
editSurvivalReporter.ts ×7 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
forwardedChatError.ts ×12 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×7 — Descendant (narrower)
Introduced files:
agentHostGitService.ts ×3 — Descendant (narrower)
Introduced files:
testGitHubEndpointService.ts ×1 — Descendant (narrower)
Introduced files:
agentHostGitHubEndpointService.ts ×9 — Descendant (narrower)
Introduced files:
environment.ts ×1 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×16 — Descendant (narrower)
Introduced files:
loopbackProxyServer.ts ×12 — Descendant (narrower)
Introduced files:
appNodeModules.ts ×3 — Descendant (narrower)
Introduced files:
log.ts ×1 — Descendant (narrower)
Introduced files:
log.ts ×72 — Descendant (narrower)
Introduced files:
sessionDataService.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.test|title=Instantiation Service @Param - fixed args|occurrence=1, instantiationService.test|title=Instantiation Service @Param - simple clase|occurrence=1 — Descendant (narrower)
Introduced tests:
buffer.test|title=Buffer Performance issue with VSBuffer#slice #76076|occurrence=1 — Descendant (narrower)
Introduced tests:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×3 — Descendant (narrower)
Introduced files:
instantiationService.test|title=Instantiation Service service collection, cannot overwrite|occurrence=1 — Descendant (narrower)
Introduced tests:
async.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×21 — Descendant (narrower)
Introduced files:
glob.ts ×24 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×3 — Descendant (narrower)
Introduced files:
agentHostTelemetryReporter.ts ×13 — Descendant (narrower)
Introduced files:
pendingRequestRegistry.ts ×9 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — 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:
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:
contextkey.ts ×2 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
transaction.ts ×1 — Descendant (narrower)
Introduced files:
transaction.ts ×4 — Descendant (narrower)
Introduced files:
mcpAppDefaults.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×3 — Descendant (narrower)
Introduced files:
derived.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
debugLocation.ts ×2 — 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:
htmlContent.ts ×20 — Descendant (narrower)
Introduced files:
agentService.ts ×15 — 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:
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:
iconLabels.ts ×6 — Descendant (narrower)
Introduced files:
telemetryUtils.ts ×15 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
resources.ts ×23 — Descendant (narrower)
Introduced files:
instantiation.ts ×1 — Descendant (narrower)
Introduced files:
productService.ts ×1 — Descendant (narrower)
Introduced files:
remoteHosts.ts ×7 — 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:
activeClientState.ts ×17 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×57 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.test|title=No Leakage Utilities ensureNoDisposablesAreLeakedInTest Basic Test|occurrence=1 — Descendant (narrower)
Introduced tests:
event.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
cancellation.ts ×18 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.test|title=Lifecycle dispose disposable array|occurrence=1, lifecycle.test|title=Lifecycle Action bar has broken accessibility #100273|occurrence=1 — Descendant (narrower)
Introduced tests:
lifecycle.ts ×3 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×93 — Descendant (narrower)
Introduced files:
sandboxConfigForSdk.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
sandboxConfigForSdk.ts ×7 — Descendant (narrower)
Introduced files:
buffer.ts ×3 — Descendant (narrower)
Introduced files:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
copilotCliConfig.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSchema.test|title=agentHostSchema validateOrDefault uses defaults when input is undefined|occurrence=1 — Descendant (narrower)
Introduced tests:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
copilotCliConfig.ts ×2 — Descendant (narrower)
Introduced files:
sandboxConfigForSdk.ts ×1 — Descendant (narrower)
Introduced files:
buffer.ts ×2 — Descendant (narrower)
Introduced files:
sandboxConfigSchema.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSchema.test|title=agentHostSchema createSchema toProtocol emits a JSON-Schema-compatible object|occurrence=1, agentHostSchema.test|title=agentHostSchema platformSessionSchema exposes approval choices in picker order with current copy|occurrence=1 — Descendant (narrower)
Introduced tests:
buffer.ts ×2 — 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:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
configuration.ts ×12 — Descendant (narrower)
Introduced files:
languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication disposes entries no longer in model|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×10 — Descendant (narrower)
Introduced files:
languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication mixed unique and duplicate IDs|occurrence=1, languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication creates new entry when none exists|occurrence=1, +4 — Descendant (narrower)
Introduced tests:
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:
map.ts ×1 — Descendant (narrower)
Introduced files:
types.test|title=Types isUndefinedOrNull|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
platform.ts ×1 — Descendant (narrower)
Introduced files:
types.test|title=Types isString|occurrence=1 — Descendant (narrower)
Introduced tests:
types.test|title=Types isUndefined|occurrence=1 — Descendant (narrower)
Introduced tests:
claudeProxyAuth.ts ×1 — Descendant (narrower)
Introduced files:
mcpPlatformTypes.ts ×1 — Descendant (narrower)
Introduced files:
uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
product.ts ×4 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
utils.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
telemetry.ts ×3 — Descendant (narrower)
Introduced files:
nls.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
objects.ts ×13 — Descendant (narrower)
Introduced files:
instantiation.ts ×5 — Descendant (narrower)
Introduced files:
platform.ts ×5 — Descendant (narrower)
Introduced files:
types.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
assert.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×3 — Descendant (narrower)
Introduced files:
types.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
types.ts ×1 — Descendant (narrower)
Introduced files:
uuid.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
path.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — 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: 10 introduced LOC across 5 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 10 introduced LOC · 5 ranges
Open complete file
1629
1630
const sdkAttachments = attachments ? . length
1631
>
? ( await Promise . all ( attachments . map ( a => this . _toSdkAttachment ( a )))). filter ( isDefined )
copilotAgentSession.ts
1632
: undefined ;
1633
if ( sdkAttachments ? . length ) {
1634
>
this . _logService . trace ( `[Copilot: ${ this . sessionId } ] Attachments: ${ JSON . stringify ( sdkAttachments . map ( a => ({ type : a . type } )))}` );
copilotAgentSession.ts
1635
>
}
1636
1637
await this . applyMode ( mode );
1678
*/
1679
private async _toSdkAttachment ( attachment : MessageAttachment ) : Promise < CopilotSdkAttachment | undefined > {
1681
const rendered = renderAgentFeedbackAnnotationsAttachment ( attachment );
1682
if ( ! rendered ) {
1708
}
1709
const uri = URI . parse ( attachment . uri );
1711
>
const displayName = attachment . label ?? path ;
1712
>
if ( attachment . selection ) {
1713
try {
1714
const text = await this . _readSelectedText ( uri , attachment . selection . range );
1722
return { type : 'file' as const , path , displayName };
1723
}
1725
>
return { type , path , displayName };
1726
>
}
1727
1728
private async _readSelectedText ( uri : URI , range : { readonly start : { readonly line : number ; readonly character : number }; readonly end : { readonly line : number ; readonly character : number } }) : Promise < string > {