agentHostStateManager.ts ×1
Frontier kind: Code frontier
unlabeled · c_db7980d30fdc
59 tests · 19622 LOC · 83 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.
agentHostStateManager.ts ×1 — Focused concept
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subagent membership sequencing subscribe to a subagent chat announced via _meta.subagentChatUri waits for the resource instead of failing immediately|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subagent membership sequencing a subagent chat survives subagent_completed (stays live and subscribable, its turn completed)|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) createChat side chats creates a side chat from the current active turn|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subagent membership sequencing membership stays a single entry when the agent also mirrors the subagent onto onDidSpawnChat, regardless of order|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subagent membership sequencing a subagent_started signal yields exactly one catalog entry with the parent origin, title, and a started turn|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.test|title=AgentService (node dispatcher) subagent membership sequencing a subagent_started signal without a taskDescription falls back to the agent display name for the tab title|occurrence=1, agentService.test|title=AgentService (node dispatcher) subagent membership sequencing the spawned catalog chat is resolvable from the inline pill resource via parseChatUri (the Open-Subagent contract)|occurrence=1 — Ancestor (broader)
Introduced tests:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
agentService.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentPeerChats.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
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:
agentSideEffects.test|title=AgentSideEffects subagent sessions reads inside parent working directory are auto-approved for tools in subagent sessions|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects tool_ready dispatches progress actions to advance tool call state tool_ready for an additional chat is emitted on that chat channel|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects session permissions subagent tool calls inherit parent session permissions|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects tool_ready dispatches progress actions to advance tool call state pending_confirmation for a tool inside a subagent routes to the subagent session|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects subagent sessions session-level autoApprove on the parent is inherited by tools in subagent sessions|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentSideEffects.test|title=AgentSideEffects queued message consumption drains a peer chat queued message to the owning session with the chat arg|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×3 — Ancestor (broader)
Introduced files:
agentSideEffects.test|title=AgentSideEffects subagent sessions subagent_completed signal completes the subagent turn|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects subagent sessions completeSubagentSession clears pending buffered events when subagent never started|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
unread marks the parent session unread when a subagent turn completes|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
agentSideEffects.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
agentSideEffects.test|title=AgentSideEffects session inputNeeded production a blocker inside a subagent is produced against the subagent chat|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects subagent sessions inner tool_start arriving BEFORE subagent_started routes to subagent (not parent)|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentSideEffects.test|title=AgentSideEffects subagent sessions deltas with parentToolCallId route to subagent session|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.test|title=AgentSideEffects subagent sessions events with parentToolCallId route to subagent session|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.test|title=AgentSideEffects subagent sessions subagent_started creates a subagent chat and dispatches content on parent tool call|occurrence=1 — Ancestor (broader)
Introduced tests:
agentSideEffects.ts ×2 — Ancestor (broader)
Introduced files:
agentHostSessionTitleController.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×2 — Ancestor (broader)
Introduced files:
reducer.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×2 — Ancestor (broader)
Introduced files:
agentHostSessionTitleController.ts ×2 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentSideEffects.ts ×3 — Ancestor (broader)
Introduced files:
map.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×1 — Ancestor (broader)
Introduced files:
agentSideEffects.ts ×9 — Ancestor (broader)
Introduced files:
agentSideEffects.test|title=AgentSideEffects pending message sync syncs a peer chat steering message addressed by the peer chat URI|occurrence=1 — Ancestor (broader)
Introduced tests:
protocolServerHandler.ts ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
protocolServerHandler.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
protocolServerHandler.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
protocolServerHandler.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager catalog characterization (A3) SessionSummaryNotifier rolls a running peer chat up onto the session summary and emits one coalesced SessionSummaryChanged|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat clears a peer chat that is removed mid-turn|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog a running peer chat forwards its own status to the session catalog so its tab can show progress|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat flips the session idle when the removed peer held the last active turn|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog active-turn event and active-session count flip once per session across concurrent chats|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog a running peer chat promotes the session summary to InProgress while the default chat is idle|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog hasActiveTurn stays true until all concurrent chat turns finish|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat emits SessionChatRemoved for a peer|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog addChat grows the catalog, creates chat state and emits SessionChatAdded|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) removeChat drops the chat providerData|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog addChat is idempotent for an existing chat URI|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog session title and default chat title stay independent once multi-chat|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) addChat records providerData verbatim and getChatProviderData returns it unchanged|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog updateChatTitle on a peer leaves the session and default titles untouched|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog addChat supports multiple peers and only snapshots the default title once|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) removeSession drops providerData for every peer chat|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) addChat is idempotent and preserves the originally stored providerData|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) addChat without providerData stores nothing|occurrence=1 — Ancestor (broader)
Introduced tests:
agentHostStateManager.ts ×1 — Ancestor (broader)
Introduced files:
agentHostStateManager.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
reducer.ts ×2 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×3 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×2 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×1 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×7 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×60 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×5 — Descendant (narrower)
Introduced files:
agentCustomizationSettings.ts ×7 — Descendant (narrower)
Introduced files:
log.ts ×1 — Descendant (narrower)
Introduced files:
log.ts ×72 — Descendant (narrower)
Introduced files:
buffer.test|title=Buffer Performance issue with VSBuffer#slice #76076|occurrence=1 — Descendant (narrower)
Introduced tests:
async.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×3 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×3 — 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:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×2 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×2 — Descendant (narrower)
Introduced files:
contextkey.ts ×2 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
contextkey.ts ×201 — Descendant (narrower)
Introduced files:
annotationsUri.ts ×3 — Descendant (narrower)
Introduced files:
sessionState.ts ×2 — Descendant (narrower)
Introduced files:
sessionActions.ts ×1 — Descendant (narrower)
Introduced files:
sessionActions.ts ×1 — Descendant (narrower)
Introduced files:
sessionActions.ts ×1 — Descendant (narrower)
Introduced files:
sessionReducers.ts ×1 — Descendant (narrower)
Introduced files:
hash.ts ×17 — 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:
network.ts ×20 — Descendant (narrower)
Introduced files:
strings.test|title=Strings trimWhitespace|occurrence=1 — Descendant (narrower)
Introduced tests:
extpath.ts ×17 — Descendant (narrower)
Introduced files:
strings.ts ×101 — Descendant (narrower)
Introduced files:
reducer.ts ×29 — Descendant (narrower)
Introduced files:
reducer.ts ×14 — Descendant (narrower)
Introduced files:
changesetUri.ts ×16 — Descendant (narrower)
Introduced files:
sessionActions.ts ×6 — Descendant (narrower)
Introduced files:
sessionState.ts ×3 — Descendant (narrower)
Introduced files:
sessionState.ts ×57 — Descendant (narrower)
Introduced files:
cancellation.test|title=CancellationToken None|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:
event.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×4 — 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:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×1 — Descendant (narrower)
Introduced files:
buffer.ts ×4 — Descendant (narrower)
Introduced files:
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:
buffer.ts ×2 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×1 — Descendant (narrower)
Introduced files:
agentHostSchema.ts ×21 — Descendant (narrower)
Introduced files:
buffer.ts ×1 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
scanner.ts ×13 — Descendant (narrower)
Introduced files:
scanner.ts ×3 — Descendant (narrower)
Introduced files:
scanner.ts ×1 — Descendant (narrower)
Introduced files:
scanner.ts ×1 — Descendant (narrower)
Introduced files:
scanner.ts ×1 — Descendant (narrower)
Introduced files:
scanner.ts ×1 — Descendant (narrower)
Introduced files:
scanner.ts ×1 — Descendant (narrower)
Introduced files:
scanner.ts ×1 — Descendant (narrower)
Introduced files:
scanner.ts ×36 — 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 ×8 — 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:
sessionProtocol.ts ×5 — 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 ×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:
sessionConfigKeys.ts ×1 — 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:
equals.ts ×14 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
actions.ts ×1 — Descendant (narrower)
Introduced files:
actions.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×1 — 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:
instantiation.ts ×4 — 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:
errorMessage.ts ×6 — Descendant (narrower)
Introduced files:
linkedList.ts ×13 — 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:
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 ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×6 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×3 — 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:
iterator.ts ×1 — 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: 2 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/agentHostStateManager.ts 2 introduced LOC · 1 range
Open complete file
718
const defaultEntry = sessionState . chats . find ( c => c . resource === defaultChatUri );
719
if ( defaultEntry && ! defaultEntry . title && sessionState . title ) {
721
>
}
722
723
const chatSummary : ChatSummary = {