agentService.ts ×1
Frontier kind: Code frontier
unlabeled · c_b3a1709dc21a
99 tests · 13969 LOC · 44 files · introduces 0 tests · 3 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 3 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.
agentService.ts ×1 — Focused concept
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
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.test|title=AgentService (node dispatcher) createChat routes to the provider for a restored session not tracked in the provider map|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
historyRecordFixtures.ts ×10 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
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 ×2 — Ancestor (broader)
Introduced files:
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 known session without listing all provider sessions|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:
agentService.test|title=AgentService (node dispatcher) chat surface routing restore reads the default chat via chats.getMessages on the default chat URI|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×3 — Ancestor (broader)
Introduced files:
<uuid> URI with provisional: true; no DB or SDK contact|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) createSession creates session via specified provider|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) createSession uses default provider when none specified|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) disposeSession is a no-op for unknown sessions|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostStateManager.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
claudeAgent.test|title=ClaudeAgent AgentSession URI helpers round-trip the claude scheme|occurrence=1 — Ancestor (broader)
Introduced tests:
protocolServerHandler.ts ×4 — Ancestor (broader)
Introduced files:
Introduced tests:
editSurvivalReporter.test|title=agentHost editSurvivalReporter resolves ahp-chat sub-channel URIs back to the parent harness|occurrence=1 — Ancestor (broader)
Introduced tests:
editSurvivalReporter.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
editSurvivalReporter.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
editSurvivalReporter.ts ×3 — Ancestor (broader)
Introduced files:
editSurvivalReporter.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
editSurvivalReporter.ts ×1 — Ancestor (broader)
Introduced files:
sessionServerTools.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
sessionServerTools.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
sessionServerTools.test|title=SessionServerTools create_session builds config, starts the default chat, and returns an open link|occurrence=1 — Ancestor (broader)
Introduced tests:
sessionServerTools.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
sessionServerTools.ts ×5 — Ancestor (broader)
Introduced files:
sessionServerTools.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
cc" typed|occurrence=1 — Ancestor (broader)
Introduced tests:
sessionServerTools.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions includes runtime skills whose name differs from the prefixed known skill candidate|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
" (config-action items filtered)|occurrence=1, mode toggles) for a leading slash|occurrence=1, +3 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions does not expand a skill hint into option items|occurrence=1, copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions surfaces the skill prompt hint as an argument hint|occurrence=1, +2 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions excludes runtime skills that match a known plugin skill (with plugin prefix)|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions excludes runtime skills that match a known synced plugin skill (no prefix)|occurrence=1, copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions excludes runtime skills that match a known plugin skill with the same name (no prefix)|occurrence=1 — Ancestor (broader)
Introduced tests:
r" typed|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider provideCompletionItems range covers only the leading slash word|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider provideCompletionItems uses runtime input metadata to determine trailing space insertion|occurrence=1 — Ancestor (broader)
Introduced tests:
p" typed|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
s" typed|occurrence=1 — Ancestor (broader)
Introduced tests:
sessionServerTools.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
c" typed|occurrence=1, e" typed and runtime command exists|occurrence=1 — Ancestor (broader)
Introduced tests:
sessionServerTools.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider provideCompletionItems includes runtime SDK commands in completion results|occurrence=1, copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider provideCompletionItems surfaces the free-text hint as an argument hint when there are no choices|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider provideCompletionItems passes raw session id to runtime command listing|occurrence=1 — Ancestor (broader)
Introduced tests:
word does not match any command prefix|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions excludes known skills even for an in-message slash token|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider provideCompletionItems returns no completion items when runtime command list is empty|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.test|title=CopilotSlashCommandCompletionProvider runtime skill completions returns only runtime skills for an in-message slash token|occurrence=1 — Ancestor (broader)
Introduced tests:
sessionServerTools.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
sessionServerTools.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
sessionServerTools.ts ×2 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
sessionServerTools.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×3 — Ancestor (broader)
Introduced files:
sessionServerTools.ts ×9 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×4 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×11 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×2 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×7 — Ancestor (broader)
Introduced files:
agentHostSlashCompletion.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostSlashCompletion.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
copilotSlashCommandCompletionProvider.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotSlashCommandCompletionProvider.ts ×3 — Ancestor (broader)
Introduced files:
agentService.test|title=AgentSession namespace provider extracts copilot from a copilot-scheme URI|occurrence=1 — Ancestor (broader)
Introduced tests:
openSessionLink.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
openSessionLink.test|title=openSessionLink round-trips backend session URI|occurrence=1 — Ancestor (broader)
Introduced tests:
openSessionLink.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.ts ×15 — Descendant (narrower)
Introduced files:
strings.test|title=Strings trimWhitespace|occurrence=1 — Descendant (narrower)
Introduced tests:
strings.ts ×101 — Descendant (narrower)
Introduced files:
sessionState.ts ×57 — Descendant (narrower)
Introduced files:
cancellation.test|title=CancellationToken None|occurrence=1 — Descendant (narrower)
Introduced tests:
cancellation.ts ×18 — Descendant (narrower)
Introduced files:
event.ts ×93 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
state.ts ×1 — Descendant (narrower)
Introduced files:
commands.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
state.ts ×1 — Descendant (narrower)
Introduced files:
state.ts ×1 — Descendant (narrower)
Introduced files:
state.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:
uri.ts ×9 — Descendant (narrower)
Introduced files:
linkedList.ts ×13 — Descendant (narrower)
Introduced files:
instantiation.ts ×5 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×6 — Descendant (narrower)
Introduced files:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
lazy.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
uint.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×97 — 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: 3 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/common/agentService.ts 3 introduced LOC · 1 range
Open complete file
1402
*/
1403
export function provider ( session : URI | string ) : AgentProvider | undefined {
1404
>
const parsed = typeof session === 'string' ? URI . parse ( session ) : session ;
agentService.ts
1405
>
return parsed . scheme || undefined ;
1406
>
}
1407
}
1408