claudeSdkPipeline.ts ×3

Frontier kind: Code frontier

unlabeled · c_a5e2122a4c90

5 tests · 56555 LOC · 346 files · introduces 0 tests · 40 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges40 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5620 ranges56555 lines · 346 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.

3 files ranked by introduced lines: 40 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeAgentSession.ts 20 introduced LOC · 2 ranges

Open complete file

807 */
808 injectSteering(steeringMessage: PendingMessage): void {
809 > const pipeline = this._requirePipeline(); claudeAgentSession.ts
810 > if (pipeline.isAborted) {
811 return;
812 }
813 > const contentBlocks = resolvePromptToContentBlocks( claudeAgentSession.ts
814 > steeringMessage.message.text,
815 > steeringMessage.message.attachments,
816 > );
817 > const sdkMessage: SDKUserMessage = {
818 > type: 'user',
819 > message: { role: 'user', content: contentBlocks },
820 > session_id: this.sessionId,
821 > parent_tool_use_id: null,
822 > priority: 'now',
823 > // Reuse the protocol PendingMessage.id as the SDK uuid — same
824 > // pattern as `ClaudeAgent.sendMessage` reusing turnId. The SDK's
825 > // `uuid` field is typed as a branded UUID, but the cast at the
826 > // boundary is the convention for both code paths.
827 > uuid: steeringMessage.id as `${string}-${string}-${string}-${string}-${string}`,
828 > };
829 > pipeline.injectSteering(sdkMessage, steeringMessage.id);
830 > }
831
832 /** Live permission-mode change. Forwards to the pipeline; the pipeline remembers it for re-application after a rebind. */
src/vs/platform/agentHost/node/claude/claudeSdkPipeline.ts 18 introduced LOC · 3 ranges

Open complete file

431 */
432 injectSteering(prompt: SDKUserMessage, pendingMessageId: string): void {
433 > if (this._abortController.signal.aborted) { claudeSdkPipeline.ts
434 this._logService.warn(`[Claude:${this.sessionId}] injectSteering: dropped (controller aborted) id=${pendingMessageId}`);
435 return;
436 }
437 > const parent = this._queue.peekParent(); claudeSdkPipeline.ts
438 > if (!parent) {
439 this._logService.warn(`[Claude:${this.sessionId}] injectSteering: dropped (no in-flight turn) id=${pendingMessageId}`);
440 return;
441 }
442 > const sdkUuid = typeof prompt.uuid === 'string' ? prompt.uuid : pendingMessageId; claudeSdkPipeline.ts
443 > // Steering deferreds aren't observed by anyone (the agent's send
444 > // promise is the original entry's deferred); attach a no-op catch
445 > // so a `failAll` rejection on abort/crash doesn't surface as an
446 > // unhandled rejection.
447 > this._queue.push({
448 > sdkMessage: prompt,
449 > sdkUuid,
450 > turnId: parent.turnId,
451 > stopWatch: parent.stopWatch,
452 > deferred: new DeferredPromise<void>(),
453 > steeringPendingId: pendingMessageId,
454 > }).catch(() => { /* expected on abort/crash */ });
455 > this._logService.info(`[Claude:${this.sessionId}] injectSteering: enqueued id=${pendingMessageId} sdkUuid=${sdkUuid}`);
456 > }
457
458 /**
src/vs/platform/agentHost/node/claude/claudeAgent.ts 2 introduced LOC · 1 range

Open complete file

2037 }
2038 if (steeringMessage) {
2039 > context.target.injectSteering(steeringMessage); claudeAgent.ts
2040 > }
2041 }
2042