copilotAgent.ts ×3

Frontier kind: Joint frontier

unlabeled · c_715a67c3db11

1 test · 51716 LOC · 300 files · introduces 1 test · 19 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges19 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5017 ranges51716 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.

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

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

Open complete file

2099 this._logService.info(`[Copilot:${context.sessionId}] sendMessage: cachedEntry=${hadCachedEntry}, hasActiveClient=${!!activeClient}, activeClientId=${activeClient ? '(set)' : '(none)'}`);
2100 if (entry && activeClient && await activeClient.requiresRestart(entry.appliedSnapshot)) {
2101 > this._logService.info(`[Copilot:${context.sessionId}] Session config changed (requiresRestart=true), refreshing session. clients=[${[...activeClient.toolSet.clientIds()].join(', ') || '(none)'}]`); copilotAgent.ts
2102 > // Finish disconnecting before resuming the same SDK session id.
2103 > await entry.destroySession();
2104 > this._sessions.get(context.sessionId)?.clearDefaultChat();
2105 > entry = undefined;
2106 > }
2107
2108 if (!entry) {
2109 > this._logService.info(`[Copilot:${context.sessionId}] No cached entry${hadCachedEntry ? ' (was evicted by requiresRestart)' : ''}, calling _resumeSession`); copilotAgent.ts
2110 > }
2111 entry ??= await this._resumeSession(context.sessionId);
2113 > // Reset per-turn streaming state on the session so that the
2114 > // next text/reasoning chunk (and any host-emitted announcement)
2115 > // allocates a fresh response part.
2116 if (turnId) {
2117 entry.resetTurnState(turnId, senderClientId);
src/vs/platform/agentHost/node/agentPeerChats.ts 5 introduced LOC · 1 range

Open complete file

279 /** Dispose the default chat leaf (e.g. a config-driven restart) while keeping peer chats. */
280 clearDefaultChat(): void {
281 > if (this._defaultChatKey !== undefined) { agentPeerChats.ts
282 > this._chats.deleteAndDispose(this._defaultChatKey);
283 > this._defaultChatKey = undefined;
284 > }
285 > }
286
287 /** The session's materialized default (main) chat, or `undefined` while provisional. */
src/vs/platform/agentHost/node/activeClientState.ts 2 introduced LOC · 1 range

Open complete file

80 /** The client ids currently contributing tools, in insertion order. */
81 clientIds(): IterableIterator<string> {
82 > return this._byClient.keys(); activeClientState.ts
83 > }
84
85 /** This client's contributed tools, or an empty array when absent. */