forwardedChatError.ts ×2

Frontier kind: Joint frontier

unlabeled · c_5d4cd2f6b6fc

1 test · 43745 LOC · 243 files · introduces 1 test · 20 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges20 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
4007 ranges43745 lines · 243 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: 20 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 15 introduced LOC · 1 range

Open complete file

3590
3591 this._register(wrapper.onSessionError(e => {
3592 > this._logService.error(`[Copilot:${sessionId}] Session error: ${e.data.errorType} - ${e.data.message}`); copilotAgentSession.ts
3593 > // Prefer the structured SDK fields (the Copilot CLI classifies its own
3594 > // CAPI errors); fall back to decoding a forwarded marker from the message.
3595 > const meta = tryBuildChatErrorMetaFromFields(e.data) ?? tryBuildChatErrorMeta(e.data.message);
3596 > this._emitAction({
3597 > type: ActionType.ChatError,
3598 > turnId: this._turnId,
3599 > duration: this._currentTurn?.duration ?? 0,
3600 > error: {
3601 > errorType: e.data.errorType,
3602 > message: stripProxyErrorMarker(e.data.message),
3603 > stack: e.data.stack,
3604 > ...(meta ? { _meta: meta } : {}),
3605 > },
3606 > });
3607 }));
3608
src/vs/platform/agentHost/node/shared/forwardedChatError.ts 5 introduced LOC · 2 ranges

Open complete file

260 const idx = text.indexOf(PROXY_ERROR_PREFIX);
261 if (idx === -1) {
262 > return text; forwardedChatError.ts
263 > }
264 return text.slice(0, idx).trim() || text.slice(0, idx);
265 }
290 */
291 export function tryBuildChatErrorMetaFromFields(data: ISdkChatErrorFields): Record<string, unknown> | undefined {
292 > const forwarded = buildForwardedChatErrorFromFields(data); forwardedChatError.ts
293 > return forwarded ? toChatErrorMeta(forwarded) : undefined;
294 > }
295
296 /**