claudeAgent.ts ×2
Frontier kind: Code frontier
unlabeled · c_6ca18959750e
7 tests · 55485 LOC · 346 files · introduces 0 tests · 6 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
2 ranges 6 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.
claudeAgent.ts ×2 — Focused concept
Introduced files:
claudeAgent.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
claudeAgent.test|title=ClaudeAgent truncateSession() with no turnId awaits the live query teardown (subprocess exit) before deleteSession|occurrence=1 — Ancestor (broader)
Introduced tests:
claudeAgent.test|title=ClaudeAgent truncateSession(turnId) resolves the anchor, restarts at it on the same id, and prunes the DB|occurrence=1 — Ancestor (broader)
Introduced tests:
claudeAgent.ts ×2 — Ancestor (broader)
Introduced files:
claudeAgent.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
claudeAgent.ts ×1 — Ancestor (broader)
Introduced files:
claudeAgent.test|title=ClaudeAgent truncateSession() with no turnId on an UNLOADED session deletes + recreates fresh on the same id, preserving the overlay (cold remove-all)|occurrence=1 — Ancestor (broader)
Introduced tests:
claudeAgent.test|title=ClaudeAgent truncateSession() with no turnId clears the session in place (deleteSession + fresh same id)|occurrence=1 — Ancestor (broader)
Introduced tests:
claudeSdkPipeline.ts ×2 — Ancestor (broader)
Introduced files:
claudeAgent.ts ×4 — Ancestor (broader)
Introduced files:
claudeAgent.ts ×1 — Ancestor (broader)
Introduced files:
claudeAgent.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
claudeAgent.ts ×1 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×1 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×1 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×5 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×2 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×3 — Descendant (narrower)
Introduced files:
claudeAgentSession.ts ×4 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×1 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×4 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×3 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×3 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×1 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×5 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×6 — Descendant (narrower)
Introduced files:
claudeAgent.ts ×91 — Descendant (narrower)
Introduced files:
agentService.ts ×122 — Descendant (narrower)
Introduced files:
agentPeerChats.ts ×1 — Descendant (narrower)
Introduced files:
agentPeerChats.ts ×1 — Descendant (narrower)
Introduced files:
agentPeerChats.ts ×1 — Descendant (narrower)
Introduced files:
agentPeerChats.ts ×1 — Descendant (narrower)
Introduced files:
agentPeerChats.ts ×1 — Descendant (narrower)
Introduced files:
copilotGitProject.ts ×2 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×1 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×1 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×6 — Descendant (narrower)
Introduced files:
workspacelessScratchDir.ts ×2 — Descendant (narrower)
Introduced files:
agentHostReviewService.ts ×2 — Descendant (narrower)
Introduced files:
agentFeedbackAttachments.ts ×9 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×7 — Descendant (narrower)
Introduced files:
agentModelPricing.ts ×7 — Descendant (narrower)
Introduced files:
claudeSdkPipeline.ts ×26 — Descendant (narrower)
Introduced files:
claudeSessionCustomizationDiscovery.ts ×2 — Descendant (narrower)
Introduced files:
claudeRuleScan.ts ×1 — Descendant (narrower)
Introduced files:
claudeAgentSdkService.ts ×16 — Descendant (narrower)
Introduced files:
claudeMapSessionEventsTestUtils.ts ×16 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×1 — Descendant (narrower)
Introduced files:
agentConfigurationService.ts ×2 — Descendant (narrower)
Introduced files:
claudeSessionCustomizationDiscovery.ts ×9 — Descendant (narrower)
Introduced files:
fileService.ts ×1 — Descendant (narrower)
Introduced files:
fileService.ts ×1 — Descendant (narrower)
Introduced files:
fileService.ts ×3 — Descendant (narrower)
Introduced files:
claudeNativePluginScan.ts ×7 — Descendant (narrower)
Introduced files:
claudeAgentSkillScan.ts ×4 — Descendant (narrower)
Introduced files:
claudeHookScan.ts ×2 — Descendant (narrower)
Introduced files:
fileService.ts ×1 — Descendant (narrower)
Introduced files:
fileService.ts ×6 — Descendant (narrower)
Introduced files:
agentHostStateManager.ts ×4 — Descendant (narrower)
Introduced files:
fileService.ts ×1 — Descendant (narrower)
Introduced files:
inMemoryFilesystemProvider.ts ×20 — Descendant (narrower)
Introduced files:
fileService.ts ×2 — Descendant (narrower)
Introduced files:
fileService.ts ×56 — Descendant (narrower)
Introduced files:
claudeSubagentResolver.test|title=claudeSubagentResolver — SUBAGENT_ID_SUFFIX_REGEX matches canonical and drifted formats; rejects unrelated text|occurrence=1 — Descendant (narrower)
Introduced tests:
claudeSubagentResolver.ts ×15 — Descendant (narrower)
Introduced files:
claudeProxyService.ts ×22 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×1 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×2 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×1 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×1 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×1 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×2 — Descendant (narrower)
Introduced files:
claudePromptQueue.ts ×10 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
testGitHubEndpointService.ts ×1 — Descendant (narrower)
Introduced files:
testGitHubEndpointService.ts ×1 — Descendant (narrower)
Introduced files:
claudeSessionConfigKeys.ts ×1 — Descendant (narrower)
Introduced files:
claudeSessionConfigKeys.ts ×3 — Descendant (narrower)
Introduced files:
claudeSessionMetadataStore.ts ×1 — Descendant (narrower)
Introduced files:
claudeSessionMetadataStore.ts ×7 — Descendant (narrower)
Introduced files:
log.ts ×1 — Descendant (narrower)
Introduced files:
log.ts ×72 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
claudeInteractiveTools.ts ×6 — Descendant (narrower)
Introduced files:
observableValue.ts ×1 — Descendant (narrower)
Introduced files:
claudeSessionClientCustomizationsModel.ts ×14 — Descendant (narrower)
Introduced files:
instantiationService.test|title=Instantiation Service @Param - fixed args|occurrence=1, instantiationService.test|title=Instantiation Service @Param - simple clase|occurrence=1 — Descendant (narrower)
Introduced tests:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×6 — Descendant (narrower)
Introduced files:
instantiationService.ts ×2 — Descendant (narrower)
Introduced files:
claudeSessionClientToolsModel.ts ×3 — Descendant (narrower)
Introduced files:
instantiationService.ts ×3 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
instantiationService.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×2 — Descendant (narrower)
Introduced files:
pendingRequestRegistry.ts ×2 — Descendant (narrower)
Introduced files:
pendingRequestRegistry.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
async.ts ×1 — Descendant (narrower)
Introduced files:
claudeSessionClientToolsModel.ts ×10 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×1 — 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:
sessionTestHelpers.ts ×1 — Descendant (narrower)
Introduced files:
sessionTestHelpers.ts ×33 — Descendant (narrower)
Introduced files:
contextkey.ts ×1 — Descendant (narrower)
Introduced files:
observableValue.ts ×3 — Descendant (narrower)
Introduced files:
debugGetDependencyGraph.ts ×2 — Descendant (narrower)
Introduced files:
agentService.ts ×1 — Descendant (narrower)
Introduced files:
agentService.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.test|title=githubEndpoints github.com resources are byte-for-byte the canonical protected-resource constants|occurrence=1 — Descendant (narrower)
Introduced tests:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×1 — Descendant (narrower)
Introduced files:
githubEndpoints.ts ×3 — Descendant (narrower)
Introduced files:
agentService.ts ×15 — Descendant (narrower)
Introduced files:
hash.ts ×6 — Descendant (narrower)
Introduced files:
resources.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×1 — Descendant (narrower)
Introduced files:
files.ts ×41 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
copilotGitProject.test|title=Copilot Git Project returns undefined outside a git working tree|occurrence=1 — Descendant (narrower)
Introduced tests:
copilotGitProject.ts ×1 — Descendant (narrower)
Introduced files:
copilotGitProject.ts ×1 — Descendant (narrower)
Introduced files:
copilotGitProject.ts ×3 — Descendant (narrower)
Introduced files:
copilotGitProject.ts ×3 — Descendant (narrower)
Introduced files:
resources.ts ×23 — Descendant (narrower)
Introduced files:
copilotGitProject.ts ×3 — Descendant (narrower)
Introduced files:
productService.ts ×1 — Descendant (narrower)
Introduced files:
strings.test|title=Strings trimWhitespace|occurrence=1 — Descendant (narrower)
Introduced tests:
instantiation.ts ×1 — Descendant (narrower)
Introduced files:
strings.ts ×101 — Descendant (narrower)
Introduced files:
claudeElicitation.ts ×7 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
sessionState.ts ×57 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
cancellation.test|title=CancellationToken None|occurrence=1 — Descendant (narrower)
Introduced tests:
event.ts ×1 — Descendant (narrower)
Introduced files:
event.ts ×1 — Descendant (narrower)
Introduced files:
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 ×2 — Descendant (narrower)
Introduced files:
event.ts ×2 — Descendant (narrower)
Introduced files:
buffer.ts ×1 — 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:
buffer.ts ×4 — 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 ×1 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
claudeSdkOptions.ts ×4 — Descendant (narrower)
Introduced files:
claudeSubagentRegistry.ts ×2 — Descendant (narrower)
Introduced files:
uri.test|title=URI VSCode URI module's driveLetterPath regex is incorrect, #32961|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×1 — Descendant (narrower)
Introduced files:
claudeModelId.ts ×1 — Descendant (narrower)
Introduced files:
claudeModelId.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
claudeModelId.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×6 — Descendant (narrower)
Introduced files:
claudeModelId.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
claudeModelConfig.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
claudeModelConfig.ts ×2 — Descendant (narrower)
Introduced files:
uri.ts ×1 — Descendant (narrower)
Introduced files:
state.ts ×1 — Descendant (narrower)
Introduced files:
utils.ts ×1 — Descendant (narrower)
Introduced files:
commands.ts ×1 — Descendant (narrower)
Introduced files:
uri.ts ×3 — Descendant (narrower)
Introduced files:
claudeServerToolMcpServer.ts ×2 — Descendant (narrower)
Introduced files:
uri.ts ×2 — Descendant (narrower)
Introduced files:
claudeClientToolResult.ts ×3 — Descendant (narrower)
Introduced files:
types.test|title=Types isUndefinedOrNull|occurrence=1 — Descendant (narrower)
Introduced tests:
uri.ts ×3 — Descendant (narrower)
Introduced files:
libc.test|title=libc non-Linux platforms return undefined|occurrence=1 — Descendant (narrower)
Introduced tests:
errors.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 ×3 — Descendant (narrower)
Introduced files:
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:
lifecycle.ts ×1 — 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 ×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:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
uint.ts ×2 — 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: 6 introduced LOC across 2 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/platform/agentHost/node/claude/claudeAgent.ts 6 introduced LOC · 2 ranges
Open complete file
815
*/
816
async truncateSession ( session : URI , turnId? : string ) : Promise < void > {
818
>
await this . _sessionSequencer . queue ( sessionId , async () => {
819
>
const existing = this . _findAnySession ( sessionId );
820
>
if ( existing && ! existing . isPipelineReady ) {
821
this . _logService . info ( `[Claude: ${ sessionId } ] truncateSession on a provisional session — nothing to truncate` );
822
return ;
840
await live . truncateToTurn ( turnId , anchor );
841
this . _logService . info ( `[Claude: ${ sessionId } ] truncateSession kept [0.. ${ turnId } ] (anchor= ${ anchor } )` );
843
>
}
844
845
/**