Intent of agentHostStateManager.ts ×4
All 78 exact tests in this concept. Every test is marked by where it enters the hierarchy.
-
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/78 tests-
platform/78 tests-
agentHost/78 tests-
test/78 tests-
node/78 tests-
agentService.test|title=AgentService (node dispatcher) chat surface routing createSession/1 test-
createChat/1 test
-
-
agentSideEffects.test|title=AgentSideEffects handleAction — chat/1 test -
agentSideEffects.test|title=AgentSideEffects handleAction — session/2 tests-
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects handleAction — session/turnStarted rejects a turn on a read-only chat without calling the agent|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects handleAction — session/turnStarted rejects chat attachments whose endTurn is still active|occurrence=1
-
-
agentSideEffects.test|title=AgentSideEffects turn completion — read/1 test -
protocolServerHandler.test|title=ProtocolServerHandler createChat /4 tests-
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/protocolServerHandler.test|title=ProtocolServerHandler createChat / disposeChat createChat for an additional chat forwards to the agent service and grows the catalog|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/protocolServerHandler.test|title=ProtocolServerHandler createChat / disposeChat createChat forwards a fork source to the agent service|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/protocolServerHandler.test|title=ProtocolServerHandler createChat / disposeChat createChat forwards a side chat source to the agent service|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/protocolServerHandler.test|title=ProtocolServerHandler createChat / disposeChat disposeChat forwards to the agent service and shrinks the catalog|occurrence=1
-
-
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager catalog characterization (A3) restoreChat is a no-op for an already-registered chat URI|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog active-turn event and active-session count flip once per session across concurrent chats|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog addChat grows the catalog, creates chat state and emits SessionChatAdded|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog addChat is idempotent for an existing chat URI|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog addChat supports multiple peers and only snapshots the default title once|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog hasActiveTurn stays true until all concurrent chat turns finish|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat clears a peer chat that is removed mid-turn|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat emits SessionChatRemoved for a peer|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat flips the session idle when the removed peer held the last active turn|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog removeChat shrinks the catalog and refuses the default chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog session title and default chat title stay independent once multi-chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager multi-chat catalog updateChatTitle on a peer leaves the session and default titles untouched|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) addChat is idempotent and preserves the originally stored providerData|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) addChat records providerData verbatim and getChatProviderData returns it unchanged|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) addChat without providerData stores nothing|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) removeChat drops the chat providerData|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentHostStateManager.test|title=AgentHostStateManager providerData (G-B1) removeSession drops providerData for every peer chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) chat surface routing fork routes to chats.fork with the resolved source chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat a peer chat backing session is filtered out of listSessions and stays filtered across a restart|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat creates the backing chat before registering the chat in the catalog|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat disposeChat removes the chat from the catalog and tears down the chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat fork at a host-injected local turn redirects the SDK boundary to the concrete anchor and carries the local turn into the new chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat fork seeds the new chat with remapped source turns and forwards fork to the provider|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat fork with an unknown turn id drops the fork and seeds no turns|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat restoreSession preserves peer chat catalog order regardless of load timing|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat routes a tracked session and registers the chat with its title in the catalog|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat routes to the provider for a restored session not tracked in the provider map|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat side chats creates a fresh peer with a SideChat origin and no copied source turns|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat side chats creates a side chat from a completed local turn without losing its stable source turn identity|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat side chats creates a side chat from a later active turn without losing the current user question|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat side chats creates a side chat from the current active turn|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat side chats hydrates a missing peer chat when resolving a generic Chat attachment|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) createChat side chats persists and restores the SideChat origin|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) peer chat catalog persistence a valid new-format peerChats catalog restores without consulting legacy chats|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) peer chat catalog persistence createChat persists providerData; restore re-materializes from the orchestrator catalog before reading history|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) peer chat catalog persistence disposeChat removes the chat from the persisted catalog|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) peer chat catalog persistence onDidChangeChatData re-persists the updated providerData blob|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) restoreSession eagerly registers subagent child sessions during parent restore|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) spawn channel routing onDidSpawnChat adds the chat to the catalog with a Tool origin from its parent|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) spawn channel routing onDidSpawnChat without a parent adds the chat with no tool origin|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) subagent membership sequencing a subagent chat survives subagent_completed (stays live and subscribable, its turn completed)|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) subagent membership sequencing a subagent tool call awaiting user confirmation does not time out before the user responds|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentService.test|title=AgentService (node dispatcher) subagent membership sequencing an inner tool call arriving before subagent_started is buffered and drained onto the subagent chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects pending message sync syncs a peer chat steering message addressed by the peer chat URI|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects queued message consumption drains a peer chat queued message to the owning session with the chat arg|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects session inputNeeded production a blocker inside a subagent is produced against the subagent chat|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects session permissions subagent tool calls inherit parent session permissions|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions cancelSubagentSessions cancels all subagent chats|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions completeSubagentSession clears pending buffered events when subagent never started|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions deltas with parentToolCallId route to subagent session|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions events with parentToolCallId route to subagent session|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions inner tool_start arriving BEFORE subagent_started routes to subagent (not parent)|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions nested subagent_started routes discovery block and seeds each request prompt via the immediate parent chat (arbitrary depth)|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions reads inside parent working directory are auto-approved for tools in subagent sessions|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions removeSubagentSessions removes all subagent chats from state|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions session-level autoApprove on the parent is inherited by tools in subagent sessions|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions subagent_completed signal completes the subagent turn|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions subagent_started creates a subagent chat and dispatches content on parent tool call|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/agentSideEffects.test|title=AgentSideEffects subagent sessions tool_complete preserves subagent content in completed tool call|occurrence=1 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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 -
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/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
-
-
-
-
-