codexMapAppServerEvents.ts ×3

Frontier kind: Code frontier

unlabeled · c_d0b4e9278d87

5 tests · 21635 LOC · 93 files · introduces 0 tests · 38 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges38 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1733 ranges21635 lines · 93 files · Browse complete extent
All tests (intent)
5 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: 38 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/codex/codexMapAppServerEvents.ts 38 introduced LOC · 3 ranges

Open complete file

261 * `sendInput`, …) render as plain tool calls in the parent chat.
262 */
263 > function collabAgentToolLabels(tool: CollabAgentTool): { readonly displayName: string; readonly present: string; readonly past: string } { codexMapAppServerEvents.ts
264 > switch (tool) {
265 > case 'spawnAgent': return { displayName: 'Spawn agent', present: 'Spawning agent', past: 'Spawned agent' };
266 > case 'sendInput': return { displayName: 'Send input to agent', present: 'Sending input to agent', past: 'Sent input to agent' };
267 > case 'resumeAgent': return { displayName: 'Resume agent', present: 'Resuming agent', past: 'Resumed agent' };
268 > case 'wait': return { displayName: 'Wait for agents', present: 'Waiting for agents', past: 'Finished waiting' };
269 > case 'closeAgent': return { displayName: 'Close agent', present: 'Closing agent', past: 'Closed agent' };
270 > default: return { displayName: tool, present: tool, past: tool };
271 > }
272 > }
273
274 /** One-line summary of a spawned agent's state — the subagent's result. */
663 }
664 if (params.item.type === 'collabAgentToolCall') {
665 > const toolCallId = generateUuid(); codexMapAppServerEvents.ts
666 > const labels = collabAgentToolLabels(params.item.tool);
667 > const toolName = `codex.${params.item.tool}`;
668 > state.itemToToolCall.set(params.item.id, {
669 > toolCallId,
670 > turnId: params.turnId,
671 > toolName,
672 > output: '',
673 > });
674 > // `spawnAgent` opens a read-only peer chat for the child thread (the
675 > // host attaches the subagent-discovery block to THIS tool call on
676 > // `subagent_started`), so we deliberately do NOT dump the raw prompt
677 > // into the tool box — it would duplicate the child chat's first user
678 > // message and blow out the tool-call width. The other collab tools
679 > // (`sendInput`, `wait`, `closeAgent`, …) are lifecycle ops with no peer
680 > // chat, so they keep a compact prompt/model summary.
681 > if (params.item.tool === 'spawnAgent') {
682 return [
683 {
718 toolCallId,
719 content: toolInput,
720 > } satisfies SessionAction | ChatAction] : []), codexMapAppServerEvents.ts
721 > {
722 > type: ActionType.ChatToolCallReady,
723 > turnId: params.turnId,
724 > toolCallId,
725 > invocationMessage: labels.present,
726 > toolInput,
727 > confirmed: ToolCallConfirmationReason.NotNeeded,
728 > },
729 > ];
730 > }
731 return [];
732 }