agentSideEffects.ts ×8

Frontier kind: Code frontier

unlabeled · c_3bb1b1b0d83e

151 tests · 42527 LOC · 237 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4027 ranges42527 lines · 237 files · Browse complete extent
All tests (intent)
151 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: 20 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentSideEffects.ts 20 introduced LOC · 8 ranges

Open complete file

206 this._register(this._stateManager.onDidEmitEnvelope(envelope => {
207 if (isAhpChatChannel(envelope.channel) && isChatAction(envelope.action)) {
208 > if (envelope.action.type === ActionType.ChatTurnCancelled) { agentSideEffects.ts
209 let turnIds = this._cancelledTurnIds.get(envelope.channel);
210 if (!turnIds) {
214 turnIds.add(envelope.action.turnId);
215 }
216 > this._syncSessionInputNeededForChatAction(envelope.channel, envelope.action); agentSideEffects.ts
217 > }
218 if (!envelope.origin && envelope.action.type === ActionType.ChatToolCallComplete) {
219 const action = envelope.action;
331
332 private _syncSessionInputNeededForChatAction(chatUri: ProtocolURI, action: ChatAction): void {
333 > switch (action.type) { agentSideEffects.ts
334 > case ActionType.ChatInputRequested:
335 this._syncChatInputNeeded(chatUri, action.request.id);
336 break;
337 > case ActionType.ChatInputAnswerChanged: agentSideEffects.ts
338 this._syncChatInputNeeded(chatUri, action.requestId);
339 break;
340 > case ActionType.ChatInputCompleted: agentSideEffects.ts
341 this._removeSessionInputNeeded(chatUri, this._chatInputNeededId(chatUri, action.requestId));
342 break;
343 > case ActionType.ChatToolCallStart: agentSideEffects.ts
344 > case ActionType.ChatToolCallReady:
345 > case ActionType.ChatToolCallConfirmed:
346 > case ActionType.ChatToolCallComplete:
347 > case ActionType.ChatToolCallResultConfirmed:
348 > case ActionType.ChatToolCallAuthRequired:
349 > case ActionType.ChatToolCallAuthResolved:
350 this._syncToolInputNeeded(chatUri, action.turnId, action.toolCallId);
351 break;
352 > case ActionType.ChatTurnComplete: agentSideEffects.ts
353 > case ActionType.ChatTurnCancelled:
354 > case ActionType.ChatError:
355 > case ActionType.ChatTruncated:
356 this._removeSessionInputNeededForChat(chatUri);
357 break;
359 > }
360
361 private _syncChatInputNeeded(chatUri: ProtocolURI, requestId: string): void {