copilotAgent.ts ×3

Frontier kind: Joint frontier

unlabeled · c_ccbf08294598

1 test · 53497 LOC · 300 files · introduces 1 test · 8 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges8 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5469 ranges53497 lines · 300 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

src/vs/platform/agentHost/node/copilot/copilotAgent.ts 6 introduced LOC · 3 ranges

Open complete file

1519 /** Ensures a workspace-less chat's scratch dir exists (mkdir -p), recreating it if it was reaped. */
1520 private async _ensureWorkspacelessScratchDir(scratchDir: URI, sessionId: string): Promise<void> {
1521 > try { copilotAgent.ts
1522 > await fs.mkdir(scratchDir.fsPath, { recursive: true });
1523 > this._logService.trace(`[Copilot:${sessionId}] Workspace-less scratch directory ready: ${scratchDir.fsPath}`);
1524 > } catch (error) {
1525 this._logService.warn(`[Copilot:${sessionId}] Failed to ensure workspace-less scratch directory '${scratchDir.fsPath}': ${error instanceof Error ? error.message : String(error)}`);
1526 }
1527 > } copilotAgent.ts
1528
1529 /** Removes a workspace-less chat's stable scratch dir on session delete/dispose. */
3126 let resolvedWorkingDirectory = workingDirectory;
3127 if (storedMetadata.workspaceless) {
3128 > await this._ensureWorkspacelessScratchDir(workingDirectory, sessionId); copilotAgent.ts
3129 } else {
3130 resolvedWorkingDirectory = await this._configurationService.resolveWorkingDirectoryForResume(sessionUri.toString(), workingDirectory);
src/vs/platform/agentHost/node/copilot/copilotSessionLauncher.ts 2 introduced LOC · 1 range

Open complete file

211 function shouldCreateEmptySessionAfterResumeError(err: unknown): boolean {
212 if (getCopilotSdkErrorCode(err) !== -32603) {
213 > return false; copilotSessionLauncher.ts
214 > }
215
216 const message = getErrorMessage(err);