copilotAgent.ts ×7

Frontier kind: Code frontier

unlabeled · c_da3042bf38ae

14 tests · 54209 LOC · 300 files · introduces 0 tests · 25 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges25 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5718 ranges54209 lines · 300 files · Browse complete extent
All tests (intent)
14 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.

2 files ranked by introduced lines: 25 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgent.ts 23 introduced LOC · 7 ranges

Open complete file

1929 agentSession = this._createAgentSession(launchPlan, customizationDirectory, activeClient);
1930 await agentSession.initializeSession();
1931 > this._registerInitializedSession(sessionId, agentSession); copilotAgent.ts
1932 } catch (error) {
1933 agentSession?.dispose();
1934 throw error;
1935 }
1937 const project = await projectFromCopilotContext({ cwd: workingDirectory?.fsPath }, this._gitService);
1939 > this._provisionalSessions.delete(sessionId);
1940 > await this._storeSessionMetadata(sessionUri, provisional.model, workingDirectory, customizationDirectory, project, true);
1941 > if (agent !== undefined) {
1942 await this._storeSessionAgentMetadata(sessionUri, agent);
1943 }
1945 > // Capture the per-session baseline (turn/0) git checkpoint so
1946 > // per-turn diffs computed on `ChatTurnComplete` can reflect the
1947 > // full working-tree delta — including terminal-tool edits that are
1948 > // invisible to the FileEditTracker pipeline. Best-effort: a
1949 > // non-git folder or capture failure leaves the session running
1950 > // with the legacy `file_edits`-based per-turn diff path.
1951 > this._checkpointService.captureBaseline(sessionUri, workingDirectory).catch(err => {
1952 this._logService.warn(`[Copilot:${sessionId}] Baseline checkpoint capture failed: ${err instanceof Error ? err.message : String(err)}`);
1953 > }); copilotAgent.ts
1954 >
1955 > this._logService.info(`[Copilot] Session materialized: ${sessionUri.toString()}`);
1956 > this._onDidMaterializeSession.fire({ session: sessionUri, workingDirectory, project });
1957 > return agentSession;
1958 }
1959
3242 }
3243 if (workingDirectory) {
3244 > work.push(db.setMetadata(CopilotAgent._META_CWD, workingDirectory.toString())); copilotAgent.ts
3245 > }
3246 if (customizationDirectory) {
3247 > work.push(db.setMetadata(CopilotAgent._META_CUSTOMIZATION_DIRECTORY, customizationDirectory.toString())); copilotAgent.ts
3248 > }
3249 if (projectResolved) {
3250 work.push(db.setMetadata(CopilotAgent._META_PROJECT_RESOLVED, 'true'));
src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 2 introduced LOC · 1 range

Open complete file

1065 */
1066 get appliedSnapshot(): IActiveClientSnapshot {
1067 > return this._appliedSnapshot; copilotAgentSession.ts
1068 > }
1069
1070 get customizationDirectory(): URI | undefined {