activeClientState.ts ×2

Frontier kind: Code frontier

unlabeled · c_61d5b55dc3fe

20 tests · 4672 LOC · 25 files · introduces 0 tests · 2 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges2 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
657 ranges4672 lines · 25 files · Browse complete extent
All tests (intent)
20 testsBrowse complete intent

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.

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.

Introduced files, introduced tests, and structurally relevant concept specializationcopilotAgent.test|title=CopilotAgent client tool call contributor prefers the message sender when it provides the tool|occurrence=1 · 0 introduced LOCcopilotAgent.test|title=…copilotAgent.test|title=CopilotAgent client tool refresh on reload (#319516) clientId-only change (reload) does NOT require a restart and updates the live owner|occurrence=1 · 0 introduced LOCcopilotAgent.test|title=…copilotAgent.test|title=CopilotAgent client tool refresh on reload (#319516) multiple active clients merge their tools and removal isolates per client|occurrence=1 · 0 introduced LOCcopilotAgent.test|title=…copilotAgent.ts ×4 · 13 introduced LOCcopilotAgent.ts ×4copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool handler does not emit tool_ready (permission flow owns it)|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool auto-readies when SDK allow-all mode is on|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.ts ×10 · 47 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.ts ×3 · 27 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.test|title=CopilotAgentSession client tool calls pending_confirmation forwards parentToolCallId for tools inside subagents|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls permission request before client tool handler emits only confirmation ready|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.ts ×1 · 3 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.test|title=CopilotAgentSession client tool calls agent-coordination client tools auto-ready with a tailored invocation message|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.ts ×1 · 27 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool handler waits for completion without emitting tool_ready|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.ts ×1 · 3 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool start stamps the owning clientId from the shared ActiveClientToolSet|occurrence=1 · 0 introduced LOCcopilotAgentSession.test…copilotAgentSession.ts ×1 · 2 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.ts ×1 · 3 introduced LOCcopilotAgentSession.ts ×…copilotAgentSession.ts ×2 · 4 introduced LOCcopilotAgentSession.ts ×…codexMapAppServerEvents.ts ×1 · 16 introduced LOCcodexMapAppServerEvents.…codexMapAppServerEvents.test|title=codexMapAppServerEvents dynamicToolCall item carries a Client contributor when a client owns the tool|occurrence=1 · 0 introduced LOCcodexMapAppServerEvents.…claudeSessionClientToolsModel.test|title=SessionClientToolsDiff ownerOf prefers the requested client when it provides the shared tool|occurrence=1 · 0 introduced LOCclaudeSessionClientTools…claudeSessionClientToolsModel.ts ×1 · 4 introduced LOCclaudeSessionClientTools…claudeSessionClientToolsModel.ts ×1 · 2 introduced LOCclaudeSessionClientTools…claudeSessionClientToolsModel.test|title=SessionClientToolsDiff merged unions multiple clients and dedupes by name (first client wins)|occurrence=1 · 0 introduced LOCclaudeSessionClientTools…claudeSessionClientToolsModel.ts ×1 · 2 introduced LOCclaudeSessionClientTools…activeClientState.ts ×1 · 2 introduced LOCactiveClientState.ts ×1activeClientState.ts ×1 · 2 introduced LOCactiveClientState.ts ×1activeClientState.ts ×1 · 2 introduced LOCactiveClientState.ts ×1activeClientState.ts ×1 · 2 introduced LOCactiveClientState.ts ×1activeClientState.ts ×1 · 2 introduced LOCactiveClientState.ts ×1activeClientState.ts ×2 · 2 introduced LOCactiveClientState.ts ×2activeClientState.ts ×1 · 1 introduced LOCactiveClientState.ts ×1activeClientState.ts ×1 · 1 introduced LOCactiveClientState.ts ×1activeClientState.ts ×1 · 1 introduced LOCactiveClientState.ts ×1activeClientState.ts ×17 · 120 introduced LOCactiveClientState.ts ×17cancellation.ts ×18 · 90 introduced LOCcancellation.ts ×18event.ts ×93 · 864 introduced LOCevent.ts ×93equals.ts ×14 · 108 introduced LOCequals.ts ×14utils.ts ×3 · 9 introduced LOCutils.ts ×3linkedList.ts ×13 · 44 introduced LOClinkedList.ts ×13objects.ts ×13 · 65 introduced LOCobjects.ts ×13lifecycle.ts ×2 · 4 introduced LOClifecycle.ts ×2lifecycle.ts ×4 · 8 introduced LOClifecycle.ts ×4lifecycle.ts ×6 · 16 introduced LOClifecycle.ts ×6lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 2 introduced LOClifecycle.ts ×1lifecycle.ts ×1 · 3 introduced LOClifecycle.ts ×1map.ts ×97 · 3334 introduced LOCmap.ts ×97src/vs/base/common/arrays.ts · 949 LOCcommon/arrays.tssrc/vs/base/common/arraysFind.ts · 226 LOCcommon/arraysFind.tssrc/vs/base/common/assert.ts · 91 LOCcommon/assert.tssrc/vs/base/common/cancellation.ts · 206 LOCcommon/cancellation.tssrc/vs/base/common/charCode.ts · 450 LOCcommon/charCode.tssrc/vs/base/common/collections.ts · 176 LOCcommon/collections.tssrc/vs/base/common/equals.ts · 206 LOCcommon/equals.tssrc/vs/base/common/errors.ts · 357 LOCcommon/errors.tssrc/vs/base/common/event.ts · 1964 LOCcommon/event.tssrc/vs/base/common/functional.ts · 32 LOCcommon/functional.tssrc/vs/base/common/iterator.ts · 194 LOCcommon/iterator.tssrc/vs/base/common/lifecycle.ts · 974 LOCcommon/lifecycle.tssrc/vs/base/common/linkedList.ts · 151 LOCcommon/linkedList.tssrc/vs/base/common/map.ts · 1016 LOCcommon/map.tssrc/vs/base/common/marshallingIds.ts · 33 LOCcommon/marshallingIds.tssrc/vs/base/common/objects.ts · 286 LOCcommon/objects.tssrc/vs/base/common/path.ts · 1589 LOCcommon/path.tssrc/vs/base/common/platform.ts · 281 LOCcommon/platform.tssrc/vs/base/common/process.ts · 76 LOCcommon/process.tssrc/vs/base/common/stopwatch.ts · 41 LOCcommon/stopwatch.tssrc/vs/base/common/types.ts · 410 LOCcommon/types.tssrc/vs/base/common/uri.ts · 754 LOCcommon/uri.tssrc/vs/base/test/common/utils.ts · 107 LOCcommon/utils.tssrc/vs/nls.ts · 244 LOCvs/nls.tssrc/vs/platform/agentHost/node/activeClientState.ts · 195 LOCnode/activeClientState.t…src/vs/platform/agentHost/node/claude/clientTools/claudeSessionClientToolsModel.ts · 127 LOCclientTools/claudeSessio…src/vs/platform/agentHost/node/codex/codexMapAppServerEvents.ts · 1060 LOCcodex/codexMapAppServerE…src/vs/platform/agentHost/node/copilot/copilotAgent.ts · 4445 LOCcopilot/copilotAgent.tssrc/vs/platform/agentHost/node/copilot/copilotAgentSession.ts · 4663 LOCcopilot/copilotAgentSess…src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts · 1201 LOCcopilot/copilotToolDispl…claudeSessionClientToolsModel.test|title=SessionClientToolsDiff merged unions multiple clients and dedupes by name (first client wins)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/clientTools/claudeSessionClientToolsModel.test|title=SessionClientToolsDiff merged unions multiple clients and dedupes by name (first client wins)|occurrence=1claudeSessionClientTools…claudeSessionClientToolsModel.test|title=SessionClientToolsDiff ownerOf prefers the requested client when it provides the shared tool|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/clientTools/claudeSessionClientToolsModel.test|title=SessionClientToolsDiff ownerOf prefers the requested client when it provides the shared tool|occurrence=1claudeSessionClientTools…claudeSessionClientToolsModel.test|title=SessionClientToolsDiff ownerOf reflects which client contributed a tool; getTools returns a client slice|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/clientTools/claudeSessionClientToolsModel.test|title=SessionClientToolsDiff ownerOf reflects which client contributed a tool; getTools returns a client slice|occurrence=1claudeSessionClientTools…claudeSessionClientToolsModel.test|title=SessionClientToolsDiff removeClient drops that client and re-flips dirty when the merged set changes|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/clientTools/claudeSessionClientToolsModel.test|title=SessionClientToolsDiff removeClient drops that client and re-flips dirty when the merged set changes|occurrence=1claudeSessionClientTools…codexMapAppServerEvents.test|title=codexMapAppServerEvents dynamicToolCall item carries a Client contributor when a client owns the tool|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/codex/codexMapAppServerEvents.test|title=codexMapAppServerEvents dynamicToolCall item carries a Client contributor when a client owns the tool|occurrence=1codexMapAppServerEvents.…codexMapAppServerEvents.test|title=codexMapAppServerEvents dynamicToolCall item maps to tool call lifecycle|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/codex/codexMapAppServerEvents.test|title=codexMapAppServerEvents dynamicToolCall item maps to tool call lifecycle|occurrence=1codexMapAppServerEvents.…copilotAgent.test|title=CopilotAgent client tool call contributor prefers the message sender when it provides the tool|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent client tool call contributor prefers the message sender when it provides the tool|occurrence=1copilotAgent.test|title=…copilotAgent.test|title=CopilotAgent client tool refresh on reload (#319516) clientId-only change (reload) does NOT require a restart and updates the live owner|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent client tool refresh on reload (#319516) clientId-only change (reload) does NOT require a restart and updates the live owner|occurrence=1copilotAgent.test|title=…copilotAgent.test|title=CopilotAgent client tool refresh on reload (#319516) multiple active clients merge their tools and removal isolates per client|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgent.test|title=CopilotAgent client tool refresh on reload (#319516) multiple active clients merge their tools and removal isolates per client|occurrence=1copilotAgent.test|title=…copilotAgentSession.test|title=CopilotAgentSession client tool calls SDK-approved client tool auto-readies in assisted mode|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls SDK-approved client tool auto-readies in assisted mode|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls agent-coordination client tools auto-ready with a tailored invocation message|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls agent-coordination client tools auto-ready with a tailored invocation message|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool auto-readies when SDK allow-all mode is on|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool auto-readies when SDK allow-all mode is on|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool handler does not emit tool_ready (permission flow owns it)|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool handler does not emit tool_ready (permission flow owns it)|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool handler waits for completion without emitting tool_ready|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool handler waits for completion without emitting tool_ready|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool start stamps the owning clientId from the shared ActiveClientToolSet|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool start stamps the owning clientId from the shared ActiveClientToolSet|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool started with no connected client fails immediately|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls client tool started with no connected client fails immediately|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls completion arriving before the permission request unblocks the SDK|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls completion arriving before the permission request unblocks the SDK|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls pending_confirmation forwards parentToolCallId for tools inside subagents|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls pending_confirmation forwards parentToolCallId for tools inside subagents|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls permission request before client tool handler emits only confirmation ready|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls permission request before client tool handler emits only confirmation ready|occurrence=1copilotAgentSession.test…copilotAgentSession.test|title=CopilotAgentSession client tool calls tool-search override routes to the client and injects deferred candidates|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/copilotAgentSession.test|title=CopilotAgentSession client tool calls tool-search override routes to the client and injects deferred candidates|occurrence=1copilotAgentSession.test…Focused concept · activeClientState.ts ×2 · 2 introduced LOCactiveClientState.ts ×2

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

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 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/activeClientState.ts 2 introduced LOC · 2 ranges

Open complete file

129 */
130 ownerOf(toolName: string, preferredClientId?: string): string | undefined {
131 > if (preferredClientId && this.get(preferredClientId).some(tool => tool.name === toolName)) { activeClientState.ts
132 return preferredClientId;
133 }