copilotToolDisplay.ts ×1
Frontier kind: Code frontier
unlabeled · c_a60131439359
40 tests · 18214 LOC · 67 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.
copilotToolDisplay.ts ×1 — Focused concept
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping live tool_complete past-tense message reflects the rewritten command|occurrence=1 — Ancestor (broader)
Introduced tests:
mapSessionEvents.ts ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping background shell output remains live until its session is disposed|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping completed non-pty shell calls retire their distinct live output resources|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool partial results stream into an output-only terminal channel|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool success without shell_exit does not fabricate a process exit|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping background shell does not create an output-only terminal|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping zero-partial shell completion creates, seeds, and finalizes the output channel|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping empty shell preview still retires the completed output channel|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping history replay does not duplicate assistant tool requests with lifecycle events|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping live tool_complete maps SDK shell_exit content to terminal completion|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping completions without partials or shell_exit never create output channels|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×3 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping reasoning delta after tool_start starts a new reasoning response part|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping subagent tool completion routes to the subagent session scope|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×5 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping live tool_start strips redundant cd prefix matching workingDirectory|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.test|title=CopilotAgentSession event mapping live tool_start does not rewrite when cd target differs from workingDirectory|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool_complete event produces past-tense message|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotAgentSession.ts ×3 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×2 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×3 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
copilotAgentSession.ts ×2 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool_start derives intention from a shell tool description argument|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×4 — Ancestor (broader)
Introduced files:
copilotAgentSession.test|title=CopilotAgentSession event mapping tool_start event is mapped for non-hidden tools|occurrence=1, copilotAgentSession.test|title=CopilotAgentSession event mapping live tool_start without workingDirectory passes command through|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotNonPtyShellTerminals.ts ×1 — Ancestor (broader)
Introduced files:
copilotNonPtyShellTerminals.ts ×2 — Ancestor (broader)
Introduced files:
copilotAgentSession.ts ×1 — Ancestor (broader)
Introduced files:
mapSessionEvents.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
buildSessionEvents.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
buildSessionEvents.test|title=buildSessionEventsFromTurns — reverse of mapSessionEvents round-trips a completed tool call interleaved with assistant text preserving order and identity|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.test|title=mapSessionEventsToHistoryRecords cd-prefix rewriting handles quoted directory in cd prefix|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.test|title=mapSessionEventsToHistoryRecords cd-prefix rewriting handles trailing slash on workingDirectory|occurrence=1, historyRecordFixtures.test|title=mapSessionEventsToHistoryRecords cd-prefix rewriting strips redundant bash cd prefix matching workingDirectory|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.test|title=mapSessionEventsToHistoryRecords cd-prefix rewriting leaves command unchanged when cd dir does not match|occurrence=1 — Ancestor (broader)
Introduced tests:
historyRecordFixtures.test|title=mapSessionEventsToHistoryRecords cd-prefix rewriting rewrites powershell commands too|occurrence=1 — Ancestor (broader)
Introduced tests:
mapSessionEvents.test|title=mapSessionEvents — history replay maps SDK shell_exit content to terminal completion on replayed tool completion|occurrence=1, mapSessionEvents.test|title=mapSessionEvents — history replay preserves non-zero terminal completion even when SDK tool completion succeeded|occurrence=1 — Ancestor (broader)
Introduced tests:
buildSessionEvents.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
mapSessionEvents.test|title=mapSessionEvents — history replay uses top-level user messages as turn boundaries|occurrence=1 — Ancestor (broader)
Introduced tests:
buildSessionEvents.ts ×2 — Ancestor (broader)
Introduced files:
mapSessionEvents.test|title=mapSessionEvents — history replay a regular tool still renders as a tool call|occurrence=1, mapSessionEvents.test|title=mapSessionEvents — history replay tool-only turn without a terminal assistant message remains cancelled|occurrence=1 — Ancestor (broader)
Introduced tests:
mapSessionEvents.test|title=mapSessionEvents — history replay derives shell tool intention from the description argument on replay|occurrence=1 — Ancestor (broader)
Introduced tests:
buildSessionEvents.ts ×1 — Ancestor (broader)
Introduced files:
buildSessionEvents.ts ×5 — Ancestor (broader)
Introduced files:
historyRecordFixtures.test|title=mapSessionEventsToHistoryRecords cd-prefix rewriting leaves command unchanged when no workingDirectory provided|occurrence=1 — Ancestor (broader)
Introduced tests:
mapSessionEvents.ts ×1 — Ancestor (broader)
Introduced files:
copilotToolDisplay.ts ×1 — Ancestor (broader)
Introduced files:
copilotToolDisplay.ts ×1 — Ancestor (broader)
Introduced files:
read_ shell tools getToolKind returns terminal for bash|occurrence=1, read_ shell tools getToolKind returns terminal for powershell|occurrence=1 — Ancestor (broader)
Introduced tests:
copilotToolDisplay.ts ×1 — Descendant (narrower)
Introduced files:
copilotToolDisplay.ts ×31 — Descendant (narrower)
Introduced files:
serverToolGroups.ts ×2 — Descendant (narrower)
Introduced files:
sessionServerTools.ts ×4 — Descendant (narrower)
Introduced files:
sessionServerTools.ts ×46 — Descendant (narrower)
Introduced files:
agentFeedbackServerTools.ts ×23 — Descendant (narrower)
Introduced files:
openSessionLink.ts ×7 — Descendant (narrower)
Introduced files:
htmlContent.ts ×20 — Descendant (narrower)
Introduced files:
agentService.ts ×15 — Descendant (narrower)
Introduced files:
annotationsUri.ts ×3 — Descendant (narrower)
Introduced files:
iconLabels.ts ×6 — Descendant (narrower)
Introduced files:
hash.ts ×17 — Descendant (narrower)
Introduced files:
commandLineHelpers.ts ×3 — Descendant (narrower)
Introduced files:
filters.ts ×47 — 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:
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:
themables.ts ×14 — Descendant (narrower)
Introduced files:
normalization.ts ×5 — Descendant (narrower)
Introduced files:
state.ts ×1 — Descendant (narrower)
Introduced files:
codicons.ts ×2 — Descendant (narrower)
Introduced files:
commands.ts ×1 — Descendant (narrower)
Introduced files:
korean.ts ×5 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
uuid.test|title=UUID generation|occurrence=1 — Descendant (narrower)
Introduced tests:
map.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
map.ts ×1 — Descendant (narrower)
Introduced files:
types.test|title=Types isString|occurrence=1 — Descendant (narrower)
Introduced tests:
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:
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:
types.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:
uuid.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: 2 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/copilot/copilotToolDisplay.ts 2 introduced LOC · 1 range
Open complete file
976
export function getToolKind ( toolName : string ) : 'terminal' | 'subagent' | 'search' | undefined {
977
if ( SHELL_TOOL_NAMES . has ( toolName )) {
979
>
}
980
if ( SUBAGENT_TOOL_NAMES . has ( toolName )) {
981
return 'subagent' ;