runSubagentTool.ts ×2

Frontier kind: Joint frontier

unlabeled · c_002dae7504e2

7 tests · 50296 LOC · 214 files · introduces 2 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges20 lines · 1 files
Tests
2 tests

Contains — complete concept membership

All code (extent)
3899 ranges50296 lines · 214 files · Browse complete extent
All tests (intent)
7 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.

2 tests introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

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

src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.ts 20 introduced LOC · 2 ranges

Open complete file

380 return createToolSimpleTextResult(`Agent error: ${result.errorDetails.message}`);
381 }
383 > // This is a hack due to the fact that edits are represented as empty codeblocks with URIs. That needs to be cleaned up,
384 > // in the meantime, just strip an empty codeblock left behind.
385 > const resultText = markdownParts.join('').replace(/^\n*```\n+```\n*/g, '').trim() || 'Agent completed with no output';
386
387 // Store result in toolSpecificData for serialization
390 invocation.toolSpecificData.modelName = resolvedModelName;
391 }
393 > // Return result with toolMetadata containing subAgentInvocationId for trajectory tracking
394 > return {
395 > content: [{
396 > kind: 'text',
397 > value: resultText
398 > }],
399 > toolMetadata: {
400 > subAgentInvocationId,
401 > description: args.description,
402 > agentName: agentRequest.subAgentName,
403 > modelName: resolvedModelName,
404 > }
405 > };
406 >
407 > } catch (error) {
408 const errorMessage = `Error invoking subagent: ${error instanceof Error ? error.message : 'Unknown error'}`;
409 this.logService.error(errorMessage, error);