agentService.ts ×4

Frontier kind: Code frontier

unlabeled · c_df76f7384aad

27 tests · 40900 LOC · 234 files · introduces 0 tests · 18 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges18 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3744 ranges40900 lines · 234 files · Browse complete extent
All tests (intent)
27 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: 18 introduced LOC across 4 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/common/agentService.ts 18 introduced LOC · 4 ranges

Open complete file

1094 */
1095 export function subagentChatTitle(taskDescription: string | undefined, agentDisplayName: string | undefined): string {
1096 > const task = taskDescription?.trim(); agentService.ts
1097 > if (task) {
1098 return truncate(task, SUBAGENT_CHAT_TITLE_MAX_LENGTH);
1099 }
1100 > return agentDisplayName?.trim() || 'Subagent'; agentService.ts
1101 > }
1102
1103 /**
1118 return undefined;
1119 }
1120 > let session: string; agentService.ts
1121 > try {
1122 > session = parseRequiredSessionUriFromChatUri(signal.chat);
1123 > } catch {
1124 return undefined;
1125 }
1126 > return { agentService.ts
1127 > session: URI.parse(session),
1128 > chat: URI.parse(buildSubagentChatUri(session, signal.toolCallId)),
1129 > parent: { chat: signal.chat, toolCallId: signal.toolCallId },
1130 > // Prefer the concise per-task description so two subagents of the same
1131 > // type still get distinct, meaningful tab names; fall back to the agent
1132 > // type's display name. Truncate so an over-long description never blows
1133 > // out the tab strip or the Subagents dropdown.
1134 > title: subagentChatTitle(signal.taskDescription, signal.agentDisplayName),
1135 > };
1136 }
1137 }