copilotApiService.test|title=CopilotApiService Models reuses cached token across messages and models calls|occurrence=1, copilotApiService.test|title=CopilotApiService Endpoint Discovery in-flight discovery dedup spans concurrent messages + models calls|occurrence=1
Frontier kind: Test frontier
unlabeled · c_394cdf66a016
2 tests · 20218 LOC · 84 files · introduces 2 tests · 0 LOC · 0 files
Introduces — evidence that enters the hierarchy at this concept
- Code
- 0 ranges0 lines · 0 files
- Tests
- 2 tests
Contains — complete concept membership
- All code (extent)
- 1609 ranges20218 lines · 84 files · Browse complete extent
- All tests (intent)
- 2 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.
- 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.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
-
copilotApiService.test|title=CopilotApiService Models reuses cached token across messages and models calls|occurrence=1, copilotApiService.test|title=CopilotApiService Endpoint Discovery in-flight discovery dedup spans concurrent messages + models calls|occurrence=1 — Focused concept
Introduced tests:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery in-flight discovery dedup spans concurrent messages + models calls|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Models reuses cached token across messages and models calls|occurrence=1
-
copilotApiService.test|title=CopilotApiService Shared Behavior both modes share the same cached copilot token|occurrence=1, copilotApiService.test|title=CopilotApiService Request Format suppressIntegrationId opt-in controls the Copilot-Integration-Id header|occurrence=1, +3 — Descendant (narrower)
Introduced tests:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery does not double-discover when concurrent requests race on first call|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery does not re-discover when the cache is still warm for the same token|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery reuses cached endpoint discovery for consecutive calls with same github token|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format suppressIntegrationId opt-in controls the Copilot-Integration-Id header|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Shared Behavior both modes share the same cached copilot token|occurrence=1
-
user response as the CAPI base|occurrence=1, copilotApiService.test|title=CopilotApiService Request Format sends model in the body|occurrence=1, +21 — Descendant (narrower)
Introduced tests:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Cancellation does not forward AbortSignal to the shared token mint fetch|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Cancellation forwards AbortSignal to fetch for messages|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery discovers independently for concurrent requests with different github tokens|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery falls back to default API base when endpoints.api is missing|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery re-discovers endpoints when the github token changes|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery runs endpoint discovery on first request|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery sends the github token as a Bearer Authorization header to the discovery endpoint|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Endpoint Discovery uses endpoints.api from the /copilot_internal/user response as the CAPI base|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Non-Streaming Responses concatenates multiple text blocks|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Non-Streaming Responses returns empty string when no text blocks are present|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Non-Streaming Responses returns text content from a single text block|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Non-Streaming Responses returns the stop reason|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Non-Streaming Responses skips non-text content blocks (tool_use, thinking)|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Non-Streaming Responses stop_reason is null when missing from server response|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format caller-supplied headers cannot override security-sensitive standard headers|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format defaults to non-streaming when stream is omitted|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format merges caller-provided headers into the request|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format non-streaming sends stream=false in the body|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format omits system field entirely when not provided|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format passes messages through as-is|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format sends correct CAPI headers|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format sends max_tokens in the body|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Request Format sends model in the body|occurrence=1
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.test|title=CopilotApiService Models suppressIntegrationId opt-in controls the Copilot-Integration-Id header|occurrence=1 — Descendant (narrower) Introduced tests:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×2 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×3 — Descendant (narrower) Introduced files:
-
copilotApiService.ts ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Cancellation forwards AbortSignal to fetch for models|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Models caller-supplied headers cannot override Authorization in models()|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Models returns empty array when data is missing|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Models returns models from the data array|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Models routes to the models endpoint URL|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/agentHost/test/node/shared/copilotApiService.test|title=CopilotApiService Models sends Bearer token in Authorization header|occurrence=1
- copilotApiService.ts ×2 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×3 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×5 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×9 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×1 — Descendant (narrower) Introduced files:
- copilotApiService.ts ×30 — Descendant (narrower) Introduced files:
- testGitHubEndpointService.ts ×1 — Descendant (narrower) Introduced files:
- testGitHubEndpointService.ts ×1 — Descendant (narrower) Introduced files:
- agentHostGitHubEndpointService.ts ×9 — Descendant (narrower) Introduced files:
- agentConfigurationService.ts ×16 — 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:
- contextkey.ts ×1 — Descendant (narrower) Introduced files:
- contextkey.ts ×3 — 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:
- githubEndpoints.ts ×1 — Descendant (narrower) Introduced files:
- githubEndpoints.ts ×3 — Descendant (narrower) Introduced files:
- githubEndpoints.ts ×4 — Descendant (narrower) Introduced files:
- agentService.ts ×15 — Descendant (narrower) Introduced files:
- id.ts ×3 — Descendant (narrower) Introduced files:
- id.ts ×2 — Descendant (narrower) Introduced files:
- macAddress.ts ×2 — Descendant (narrower) Introduced files:
- id.ts ×6 — Descendant (narrower) Introduced files:
- hash.ts ×17 — Descendant (narrower) Introduced files:
- ternarySearchTree.ts ×60 — Descendant (narrower) Introduced files:
- resources.ts ×23 — Descendant (narrower) Introduced files:
- productService.ts ×1 — Descendant (narrower) Introduced files:
- strings.test|title=Strings stripUTF8BOM|occurrence=1 — Descendant (narrower) Introduced tests:
- network.ts ×20 — Descendant (narrower) Introduced files:
- strings.test|title=Strings startsWithUTF8BOM|occurrence=1 — Descendant (narrower) Introduced tests:
- strings.ts ×1 — Descendant (narrower) Introduced files:
- strings.test|title=Strings trimWhitespace|occurrence=1 — Descendant (narrower) Introduced tests:
- strings.ts ×1 — Descendant (narrower) Introduced files:
- extpath.ts ×17 — Descendant (narrower) Introduced files:
- instantiation.ts ×1 — Descendant (narrower) Introduced files:
- strings.ts ×101 — Descendant (narrower) Introduced files:
- sessionActions.ts ×6 — 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 ×2 — Descendant (narrower) Introduced files:
- event.ts ×2 — Descendant (narrower) Introduced files:
- event.ts ×93 — Descendant (narrower) Introduced files:
- sandboxConfigSchema.ts ×1 — Descendant (narrower) Introduced files:
- copilotCliConfig.ts ×2 — Descendant (narrower) Introduced files:
- agentHostSchema.ts ×21 — 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:
- settings.ts ×2 — Descendant (narrower) Introduced files:
- configuration.ts ×12 — Descendant (narrower) Introduced files:
- sessionProtocol.ts ×5 — Descendant (narrower) Introduced files:
- settings.ts ×1 — Descendant (narrower) Introduced files:
- sessionConfigKeys.ts ×1 — Descendant (narrower) Introduced files:
- state.ts ×1 — Descendant (narrower) Introduced files:
-
commands.ts ×1 — Descendant (narrower)
Introduced files:
- src/vs/platform/agentHost/common/state/protocol/channels-changeset/commands.ts
- src/vs/platform/agentHost/common/state/protocol/channels-chat/commands.ts
- src/vs/platform/agentHost/common/state/protocol/channels-session/commands.ts
- src/vs/platform/agentHost/common/state/protocol/commands.ts
- src/vs/platform/agentHost/common/state/protocol/common/commands.ts
- uuid.test|title=UUID generation|occurrence=1 — Descendant (narrower) Introduced tests:
- equals.ts ×14 — Descendant (narrower) Introduced files:
- actions.ts ×1 — Descendant (narrower) Introduced files:
- copilotTokenFields.ts ×2 — Descendant (narrower) Introduced files:
- actions.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:
mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/charCode.test|title=CharCode has good values|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/path.test|title=Paths (Node Implementation) path|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI File paths containing apostrophes break URI parsing and cannot be opened #276075|occurrence=1mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/base/test/common/uri.test|title=URI URI#file, win-speciale|occurrence=1
- product.ts ×4 — Descendant (narrower) Introduced files:
- utils.ts ×3 — Descendant (narrower) Introduced files:
- instantiation.ts ×4 — 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:
- 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:
- 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:
- src/vs/base/common/arrays.ts
- src/vs/base/common/arraysFind.ts
- src/vs/base/common/assert.ts
- src/vs/base/common/charCode.ts
- src/vs/base/common/collections.ts
- src/vs/base/common/errors.ts
- src/vs/base/common/functional.ts
- src/vs/base/common/iterator.ts
- src/vs/base/common/lifecycle.ts
- src/vs/base/common/map.ts
- src/vs/base/common/marshallingIds.ts
- src/vs/base/common/path.ts
- src/vs/base/common/platform.ts
- src/vs/base/common/process.ts
- src/vs/base/common/types.ts
- src/vs/base/common/uri.ts
- src/vs/base/test/common/utils.ts
- src/vs/nls.ts
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
2 tests introduced at this concept.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
No code is introduced at this concept. Its 1609 extent ranges are introduced by other concepts.