copilotAgent.ts ×1
Frontier kind: Code frontier
unlabeled · c_da6102713549
10 tests · 52176 LOC · 300 files · introduces 0 tests · 2 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 2 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.
copilotAgent.ts ×1 — Focused concept
Introduced files:
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping uses long_context when model has no surcharge, no explicit selection and preferLongContext is enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping leaves the SDK on its default tier when model has no surcharge and no explicit selection|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the default numeric context size to default|occurrence=1, copilotAgent.test|title=CopilotAgent contextSize to contextTier mapping maps the largest numeric context size to long_context|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSessionLauncher.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.test|title=CopilotAgent configSchema shows only long context option when long_context tier has no surcharge and preferLongContext is enabled|occurrence=1 — Ancestor (broader)
Introduced tests:
agentModelPricing.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent configSchema shows both context options by default when long_context tier has no surcharge|occurrence=1 — Ancestor (broader)
Introduced tests:
agentModelPricing.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgent.test|title=CopilotAgent configSchema emits a numeric contextSize property when long_context tier exceeds default|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgent.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgent.test|title=CopilotAgent configSchema omits contextSize when long_context tier is missing or not larger|occurrence=1 — Ancestor (broader)
Introduced tests:
agentModelPricing.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgent.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×13 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×3 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×15 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×16 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×1 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×22 — Descendant (narrower)
Introduced files:
copilotAgent.ts ×185 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×3 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×1 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×6 — Descendant (narrower)
Introduced files:
copilotSlashCommandProvider.ts ×1 — Descendant (narrower)
Introduced files:
workspacelessScratchDir.ts ×2 — Descendant (narrower)
Introduced files:
copilotAgentSession.ts ×141 — Descendant (narrower)
Introduced files:
agentHostReviewService.ts ×2 — Descendant (narrower)
Introduced files:
agentFeedbackAttachments.ts ×9 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×7 — Descendant (narrower)
Introduced files:
buildSessionEvents.ts ×4 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×7 — Descendant (narrower)
Introduced files:
copilotSessionLauncher.ts ×3 — Descendant (narrower)
Introduced files:
copilotSessionWrapper.ts ×51 — Descendant (narrower)
Introduced files:
agentHostTelemetryService.ts ×1 — Descendant (narrower)
Introduced files:
mcpCustomizationController.ts ×29 — Descendant (narrower)
Introduced files:
agentHostTelemetryService.ts ×29 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×1 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×1 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×2 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×5 — Descendant (narrower)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Descendant (narrower)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×6 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostProxyResolver.ts ×9 — Descendant (narrower)
Introduced files:
fileService.ts ×2 — Descendant (narrower)
Introduced files:
fileService.ts ×56 — Descendant (narrower)
Introduced files:
agentHostCompletions.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
fileService.ts ×18 — Descendant (narrower)
Introduced files:
forwardedChatError.ts ×12 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×5 — Descendant (narrower)
Introduced files:
testGitHubEndpointService.ts ×1 — Descendant (narrower)
Introduced files:
testGitHubEndpointService.ts ×1 — Descendant (narrower)
Introduced files:
environment.ts ×1 — Descendant (narrower)
Introduced files:
loopbackProxyServer.ts ×12 — Descendant (narrower)
Introduced files:
log.ts ×1 — Descendant (narrower)
Introduced files:
sessionDatabase.ts ×50 — 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:
pluginParsers.ts ×47 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×6 — Descendant (narrower)
Introduced files:
utilsCancellation.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×3 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×2 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×1 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×2 — Descendant (narrower)
Introduced files:
async.ts ×2 — Descendant (narrower)
Introduced files:
utilsCancellation.ts ×1 — Descendant (narrower)
Introduced files:
utilsCancellation.ts ×8 — Descendant (narrower)
Introduced files:
async.ts ×2 — Descendant (narrower)
Introduced files:
pendingRequestRegistry.ts ×9 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×2 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×1 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×9 — Descendant (narrower)
Introduced files:
request.ts ×15 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×5 — Descendant (narrower)
Introduced files:
serverToolGroups.ts ×2 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×7 — Descendant (narrower)
Introduced files:
async.ts ×202 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×33 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×2 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
autorun.ts ×1 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×15 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×1 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×13 — Descendant (narrower)
Introduced files:
observableValue.ts ×2 — Descendant (narrower)
Introduced files:
observableValue.ts ×5 — Descendant (narrower)
Introduced files:
baseObservable.ts ×2 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×4 — Descendant (narrower)
Introduced files:
derived.ts ×1 — Descendant (narrower)
Introduced files:
derivedImpl.ts ×2 — Descendant (narrower)
Introduced files:
transaction.ts ×3 — Descendant (narrower)
Introduced files:
equals.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×3 — Descendant (narrower)
Introduced files:
transaction.ts ×4 — Descendant (narrower)
Introduced files:
baseObservable.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×3 — Descendant (narrower)
Introduced files:
baseObservable.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
baseObservable.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:
devToolsLogger.ts ×24 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×3 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — 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:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×3 — Descendant (narrower)
Introduced files:
resources.ts ×23 — Descendant (narrower)
Introduced files:
copilotGitProject.ts ×3 — Descendant (narrower)
Introduced files:
instantiation.ts ×1 — Descendant (narrower)
Introduced files:
byokLmBridgeRegistry.ts ×1 — Descendant (narrower)
Introduced files:
activeClientState.ts ×17 — Descendant (narrower)
Introduced files:
agentCustomizationMeta.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×2 — Descendant (narrower)
Introduced files:
sessionState.ts ×3 — Descendant (narrower)
Introduced files:
map.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 ×2 — Descendant (narrower)
Introduced files:
byokLmBridgeRegistry.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
assert.ts ×2 — Descendant (narrower)
Introduced files:
cancellation.test|title=CancellationToken None|occurrence=1 — Descendant (narrower)
Introduced tests:
event.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×1 — 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:
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:
agentHostSchema.test|title=agentHostSchema validateOrDefault uses defaults when input is undefined|occurrence=1 — Descendant (narrower)
Introduced tests:
agentHostSchema.ts ×3 — 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:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
copilotHome.ts ×2 — Descendant (narrower)
Introduced files:
objects.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
agentHostGitHubTelemetryRouter.ts ×3 — Descendant (narrower)
Introduced files:
copilotGitHubTelemetryForwarder.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
copilotGitHubTelemetryForwarder.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — 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 ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
utils.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — 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:
equals.ts ×14 — Descendant (narrower)
Introduced files:
types.test|title=Types isUndefinedOrNull|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
reasoningEffort.ts ×2 — Descendant (narrower)
Introduced files:
types.test|title=Types isString|occurrence=1 — Descendant (narrower)
Introduced tests:
aiAgentEnv.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 ×2 — Descendant (narrower)
Introduced files:
utils.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
instantiation.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
instantiation.ts ×5 — 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:
lifecycle.ts ×1 — 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:
lifecycle.ts ×1 — 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: 2 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/copilotAgent.ts 2 introduced LOC · 1 range
Open complete file
1458
const tokenPrices = billing ? . tokenPrices ;
1459
const hasLargerLongContext = !! tokenPrices ? . contextMax
1461
>
&& tokenPrices . longContext . contextMax > tokenPrices . contextMax ;
1462
if ( preferLongContext && hasLargerLongContext && ! hasLongContextSurcharge ( billing )) {
1463
this . _freeLongContextModels . add ( m . id );