reducer.ts ×3

Frontier kind: Joint frontier

unlabeled · c_557d6b4e28a5

1 test · 50189 LOC · 291 files · introduces 1 test · 24 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges24 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5202 ranges50189 lines · 291 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: 24 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/common/state/protocol/channels-chat/reducer.ts 17 introduced LOC · 3 ranges

Open complete file

595
596 case ActionType.ChatToolCallAuthRequired:
597 > return refreshSummaryStatus(updateToolCallInParts(state, action.turnId, action.toolCallId, tc => { reducer.ts
598 > if (tc.status !== ToolCallStatus.Running) {
599 return tc;
600 }
601 > // Invariant: auth-required only applies to MCP-contributed tool calls. reducer.ts
602 > if (!tc.contributor || tc.contributor.kind !== ToolCallContributorKind.MCP) {
603 return tc;
604 }
605 > const base = tcBaseWithMeta(tc, action._meta); reducer.ts
606 > return {
607 > status: ToolCallStatus.AuthRequired,
608 > ...base,
609 > contributor: tc.contributor,
610 > invocationMessage: tc.invocationMessage,
611 > toolInput: tc.toolInput,
612 > confirmed: tc.confirmed,
613 > ...(tc.selectedOption ? { selectedOption: tc.selectedOption } : {}),
614 > ...(tc.content ? { content: tc.content } : {}),
615 > auth: action.auth,
616 > };
617 > }));
618
619 case ActionType.ChatToolCallAuthResolved:
src/vs/platform/agentHost/node/agentSideEffects.ts 7 introduced LOC · 1 range

Open complete file

422
423 if (toolCall?.status === ToolCallStatus.AuthRequired) {
424 > this._setSessionInputNeeded(chatUri, { agentSideEffects.ts
425 > id: authenticationId,
426 > kind: SessionInputRequestKind.ToolAuthentication,
427 > chat: chatUri,
428 > turnId,
429 > toolCall,
430 > });
431 } else {
432 this._removeSessionInputNeeded(chatUri, authenticationId);