mockAgent.ts ×1
Frontier kind: Code frontier
unlabeled · c_bcee5c7e6f45
38 tests · 49845 LOC · 290 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.
mockAgent.ts ×1 — Focused concept
Introduced files:
agentService.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
historyRecordFixtures.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotToolDisplay.ts ×7 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostChangesetService.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subscriber refcount eviction a restored idle session is evicted when its last subscriber drops|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subscriber refcount eviction nested subagent subscriber pins ancestor session against eviction|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subscriber refcount eviction re-subscribing within the grace cancels the release|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentPeerChats.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) restoreSession restores a session with subagent tool calls|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×10 — Ancestor (broader)
Introduced files:
agentHostChangesetService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) session config persistence restoreSession overlays persisted config values onto the resolved config|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×5 — Ancestor (broader)
Introduced files:
agentService.ts ×5 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) aggregation createSession attaches git state into state _meta when working directory is present|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.ts ×10 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) restoreSession restores the AH-owned workspaceless marker onto the summary _meta for any agent|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×5 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) restoreSession restores chat drafts from session metadata|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) restoreSession restores the default chat's independently-renamed title|occurrence=1 — Ancestor (broader)
Introduced tests:
sessionDatabase.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
historyRecordFixtures.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) restoreSession restores a session with tool calls|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
historyRecordFixtures.ts ×6 — Ancestor (broader)
Introduced files:
historyRecordFixtures.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) restoreSession restores a session with message history|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×3 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) aggregation createSession infers workspace-less (and skips git overlay) when no working directory|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) aggregation listSessions aggregates sessions from all providers|occurrence=1, agentService.test|title=AgentService (node dispatcher) aggregation listSessions uses SDK title when no custom title exists|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentService (node dispatcher) aggregation listSessions overlays the AH-owned workspaceless marker for any agent|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) aggregation listSessions overlays custom title from session database|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.test|title=AgentSideEffects title persistence handleListSessions returns persisted custom title|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×5 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentHostChangesetService.ts ×6 — Ancestor (broader)
Introduced files:
agentService.ts ×11 — Ancestor (broader)
Introduced files:
agentService.ts ×4 — Ancestor (broader)
Introduced files:
mockAgent.ts ×1 — Descendant (narrower)
Introduced files:
agentService.ts ×14 — Descendant (narrower)
Introduced files:
agentService.ts ×10 — Descendant (narrower)
Introduced files:
agentHostTelemetryService.ts ×1 — Descendant (narrower)
Introduced files:
agentSideEffects.ts ×1 — Descendant (narrower)
Introduced files:
agentService.ts ×122 — Descendant (narrower)
Introduced files:
mockAgent.ts ×2 — Descendant (narrower)
Introduced files:
mockAgent.ts ×2 — Descendant (narrower)
Introduced files:
agentSideEffects.ts ×4 — Descendant (narrower)
Introduced files:
agentSideEffects.ts ×3 — Descendant (narrower)
Introduced files:
agentSideEffects.ts ×3 — Descendant (narrower)
Introduced files:
agentSideEffects.ts ×6 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
mockAgent.ts ×1 — Descendant (narrower)
Introduced files:
mockAgent.ts ×31 — Descendant (narrower)
Introduced files:
mockAgent.ts ×8 — Descendant (narrower)
Introduced files:
agentHostSkillCompletionProvider.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSkillCompletionProvider.ts ×6 — Descendant (narrower)
Introduced files:
agentHostChangesetFileMonitorCoordinator.ts ×2 — Descendant (narrower)
Introduced files:
agentHostTerminalManager.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×6 — Descendant (narrower)
Introduced files:
agentHostChangesetFileMonitorCoordinator.ts ×27 — Descendant (narrower)
Introduced files:
agentHostTerminalManager.ts ×6 — Descendant (narrower)
Introduced files:
agentHostPullRequestOperationProvider.ts ×1 — Descendant (narrower)
Introduced files:
agentHostTerminalManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostCommitOperationProvider.ts ×1 — Descendant (narrower)
Introduced files:
agentHostPullRequestOperationHandler.ts ×1 — Descendant (narrower)
Introduced files:
agentHostPullRequestOperationProvider.ts ×5 — Descendant (narrower)
Introduced files:
agentHostCommitOperationHandler.ts ×1 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×1 — Descendant (narrower)
Introduced files:
agentHostCommitOperationProvider.ts ×5 — Descendant (narrower)
Introduced files:
agentHostTerminalManager.ts ×41 — Descendant (narrower)
Introduced files:
async.ts ×3 — Descendant (narrower)
Introduced files:
agentHostPullRequestOperationHandler.ts ×16 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×1 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×8 — Descendant (narrower)
Introduced files:
fileService.ts ×1 — Descendant (narrower)
Introduced files:
fileService.ts ×6 — Descendant (narrower)
Introduced files:
agentHostFileCompletionProvider.ts ×1 — Descendant (narrower)
Introduced files:
agentHostCommitOperationHandler.ts ×10 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×3 — Descendant (narrower)
Introduced files:
fileService.ts ×1 — Descendant (narrower)
Introduced files:
agentHostGitHubEndpointService.ts ×3 — Descendant (narrower)
Introduced files:
agentHostFileCompletionProvider.ts ×7 — Descendant (narrower)
Introduced files:
agentHostGitStateService.ts ×7 — Descendant (narrower)
Introduced files:
agentHostSyncOperationProvider.ts ×1 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×1 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×1 — Descendant (narrower)
Introduced files:
fileService.ts ×2 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×2 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×5 — Descendant (narrower)
Introduced files:
fileService.ts ×5 — Descendant (narrower)
Introduced files:
agentServerToolHost.ts ×2 — Descendant (narrower)
Introduced files:
agentHostChangesetOperationService.ts ×5 — Descendant (narrower)
Introduced files:
agentHostDiscardChangesOperationHandler.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×2 — Descendant (narrower)
Introduced files:
agentHostSyncOperationProvider.ts ×5 — Descendant (narrower)
Introduced files:
agentHostChangesetSubscriptionService.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×3 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostDiscardChangesOperationHandler.ts ×5 — Descendant (narrower)
Introduced files:
agentServerToolHost.ts ×5 — Descendant (narrower)
Introduced files:
agentHostChangesetOperationService.ts ×9 — Descendant (narrower)
Introduced files:
fileService.ts ×4 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×60 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×20 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
agentHostFileMonitorService.ts ×2 — Descendant (narrower)
Introduced files:
agentHostCompletions.ts ×2 — Descendant (narrower)
Introduced files:
agentHostFileMonitorService.ts ×14 — Descendant (narrower)
Introduced files:
copilotApiService.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×5 — Descendant (narrower)
Introduced files:
label.ts ×1 — Descendant (narrower)
Introduced files:
agentHostOctoKitService.ts ×1 — Descendant (narrower)
Introduced files:
agentHostGitHubEndpointService.ts ×9 — Descendant (narrower)
Introduced files:
environment.ts ×1 — Descendant (narrower)
Introduced files:
agentHostWorkspaceFiles.ts ×3 — Descendant (narrower)
Introduced files:
log.ts ×1 — Descendant (narrower)
Introduced files:
sessionDatabase.ts ×50 — Descendant (narrower)
Introduced files:
agentHostUri.ts ×5 — 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:
serviceCollection.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.test|title=Instantiation Service service collection, cannot overwrite|occurrence=1 — Descendant (narrower)
Introduced tests:
glob.ts ×24 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
request.ts ×15 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×5 — Descendant (narrower)
Introduced files:
autorunImpl.ts ×7 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×2 — Descendant (narrower)
Introduced files:
observableValue.ts ×5 — Descendant (narrower)
Introduced files:
sessionState.ts ×2 — Descendant (narrower)
Introduced files:
transaction.ts ×3 — Descendant (narrower)
Introduced files:
equals.ts ×1 — Descendant (narrower)
Introduced files:
transaction.ts ×4 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
mcpAppDefaults.ts ×1 — Descendant (narrower)
Introduced files:
baseObservable.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
observableSignalFromEvent.ts ×1 — Descendant (narrower)
Introduced files:
promise.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×3 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
htmlContent.ts ×20 — Descendant (narrower)
Introduced files:
resources.ts ×2 — Descendant (narrower)
Introduced files:
resources.ts ×4 — Descendant (narrower)
Introduced files:
amdX.ts ×8 — Descendant (narrower)
Introduced files:
network.ts ×1 — 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:
map.ts ×1 — Descendant (narrower)
Introduced files:
hash.ts ×17 — Descendant (narrower)
Introduced files:
labels.ts ×12 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
telemetryUtils.ts ×15 — Descendant (narrower)
Introduced files:
commandLineHelpers.ts ×3 — Descendant (narrower)
Introduced files:
productService.ts ×1 — Descendant (narrower)
Introduced files:
configurationRegistry.ts ×1 — Descendant (narrower)
Introduced files:
network.ts ×20 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
cancellation.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×57 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×5 — Descendant (narrower)
Introduced files:
policy.ts ×8 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
cancellation.ts ×1 — Descendant (narrower)
Introduced files:
cancellation.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
cancellation.ts ×3 — Descendant (narrower)
Introduced files:
cancellation.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:
lifecycle.ts ×1 — 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:
agentHostSchema.test|title=agentHostSchema validateOrDefault uses defaults when input is undefined|occurrence=1 — Descendant (narrower)
Introduced tests:
agentHostSchema.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:
agentHostSchema.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.test|title=URI VSCode URI module's driveLetterPath regex is incorrect, #32961|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×2 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
objects.ts ×1 — 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:
json.ts ×14 — Descendant (narrower)
Introduced files:
languageStatusDedupe.test|title=LanguageStatus - Dedicated Entry Deduplication disposes entries no longer in model|occurrence=1 — Descendant (narrower)
Introduced tests:
path.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
mime.ts ×5 — Descendant (narrower)
Introduced files:
uuid.test|title=UUID generation|occurrence=1 — Descendant (narrower)
Introduced tests:
types.test|title=Types isUndefinedOrNull|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
arrays.test|title=Arrays coalesce|occurrence=1 — Descendant (narrower)
Introduced tests:
types.test|title=Types isString|occurrence=1 — Descendant (narrower)
Introduced tests:
arrays.ts ×1 — Descendant (narrower)
Introduced files:
map.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:
nls.ts ×1 — Descendant (narrower)
Introduced files:
path.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:
performance.ts ×6 — Descendant (narrower)
Introduced files:
path.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
path.ts ×1 — 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/test/node/mockAgent.ts 2 introduced LOC · 1 range
Open complete file
108
109
async listSessions () : Promise < IAgentSessionMetadata [] > {
110
>
return [... this . _sessions . values ()]. map ( s => ({ session : s , startTime : Date.now (), modifiedTime : Date.now (), project : mockProject ( this . id ), ... this . sessionMetadataOverrides }));
mockAgent.ts
111
>
}
112
113
async getSessionMetadata ( session : URI ) : Promise < IAgentSessionMetadata | undefined > {