copilotAgentSession.ts ×7

Frontier kind: Code frontier

unlabeled · c_8d8c7553316c

42 tests · 43548 LOC · 242 files · introduces 0 tests · 13 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges13 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3989 ranges43548 lines · 242 files · Browse complete extent
All tests (intent)
42 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.

1 file ranked by introduced lines: 13 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 13 introduced LOC · 7 ranges

Open complete file

1637 await this.applyMode(mode);
1638 await this.syncPermissionMode('turn-start');
1639 > await this._applyEffectiveSandboxConfig(); copilotAgentSession.ts
1640 > await this._reconcileMcpServerEnablement();
1641 > this._markEnabledMcpServersStarting();
1642 await this._wrapper.session.send({ prompt, attachments: sdkAttachments?.length ? sdkAttachments : undefined });
1643 > this._logService.info(`[Copilot:${this.sessionId}] session.send() returned`); copilotAgentSession.ts
1644 }
1645
2044 */
2045 private _markEnabledMcpServersStarting(): void {
2046 > const customizations = this._stateManager.getSessionState(this.sessionUri.toString())?.customizations ?? []; copilotAgentSession.ts
2047 > const enabled = getEffectiveMcpServerCustomizations(customizations).filter(server => server.enabled);
2048 > if (enabled.length > 0) {
2049 this._mcpCustomizations.markStarting(enabled.map(server => server.name));
2050 }
2052
2053 private async _disableMcpServer(serverName: string): Promise<void> {
2537 */
2538 private async _applyEffectiveSandboxConfig(): Promise<void> {
2539 > if (this._isCustomTerminalToolEnabled()) { copilotAgentSession.ts
2540 return;
2541 }
2542 const sandbox = this._configurationService.getRootValue(sandboxConfigSchema, AgentHostSandboxConfigKey.Sandbox);
2543 const base = buildSandboxConfigForSdk(this._platform, sandbox);
2544 > const sandboxConfig: ISdkSandboxConfig | { enabled: false } = (base && !this._isBypassApprovals()) ? base : { enabled: false }; copilotAgentSession.ts
2545 > try {
2546 > await this._wrapper.session.rpc.options.update({ sandboxConfig });
2547 } catch (err) {
2548 this._logService.warn(`[Copilot:${this.sessionId}] Failed to update sandbox config for request`, err);
2549 }
2551
2552 /**