agentService.ts ×2

Frontier kind: Code frontier

unlabeled · c_b435eb5b44ad

7 tests · 50827 LOC · 304 files · introduces 0 tests · 19 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges19 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5188 ranges50827 lines · 304 files · Browse complete extent
All tests (intent)
7 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.

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.

3 files ranked by introduced lines: 19 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

1780
1781 async disposeSession(session: URI): Promise<void> {
1782 > this._logService.trace(`[AgentService] disposeSession: ${session.toString()}`); agentService.ts
1783 > const provider = this._findProviderForSession(session);
1784 > if (provider) {
1785 await this._disposeSession(provider, session);
1786 this._sessionToProvider.delete(session.toString());
1787 this._clearDownloadProgressInterest(session.toString());
1788 }
1789 > // Remove any worktree this process created for the session (host-owned; agentService.ts
1790 > // agents stay unaware).
1791 > await this._worktree?.removeCreatedWorktree(AgentSession.id(session));
1792 > this._changesetCoordinator.onSessionDisposed(session.toString());
1793 > this._sideEffects.cancelSessionTitleGeneration(session.toString());
1794 > // Remove all subagent sessions for this parent
1795 > this._sideEffects.removeSubagentSessions(session.toString());
1796 > this._stateManager.deleteSession(session.toString());
1797 > // Remove the VS Code per-session data directory (metadata DB + checkpoints) to mirror the SDK-side cleanup
1798 > // performed by the provider above. No-op when the directory does not exist.
1799 > await this._sessionDataService.deleteSessionData(session);
1800 > }
1801
1802 // ---- Protocol methods ---------------------------------------------------
src/vs/platform/agentHost/node/agentHostChangesetService.ts 2 introduced LOC · 1 range

Open complete file

394 */
395 onSessionDisposed(session: ProtocolURI): void {
396 > this._pendingMaterialization.delete(session); agentHostChangesetService.ts
397 > }
398
399 async computeTurnChangeset(session: ProtocolURI, turnId: string): Promise<ProtocolURI> {
src/vs/platform/agentHost/node/agentSideEffects.ts 2 introduced LOC · 1 range

Open complete file

1362
1363 cancelSessionTitleGeneration(session: ProtocolURI): void {
1364 > this._titleController.cancelTitleGeneration(session); agentSideEffects.ts
1365 > }
1366
1367 /**