claudeAgent.ts ×2

Frontier kind: Code frontier

unlabeled · c_51acafef617e

5 tests · 53917 LOC · 346 files · introduces 0 tests · 20 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges20 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
4928 ranges53917 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.

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/platform/agentHost/node/claude/claudeAgent.ts 20 introduced LOC · 2 ranges

Open complete file

1746
1747 async listSessions(): Promise<IAgentSessionMetadata[]> {
1748 > // Plan section 3.3.2: SDK is the source of truth; we deliberately do claudeAgent.ts
1749 > // NOT filter entries that lack a per-session DB — external Claude Code
1750 > // CLI sessions have no DB and must still surface (Phase-5 exit
1751 > // criterion). The projected metadata is derived purely from the SDK
1752 > // entry, so no per-session overlay read is needed here.
1753 > //
1754 > // `AgentService.listSessions` fans out across all providers via
1755 > // `Promise.all` (agentService.ts:202-204). If our SDK dynamic
1756 > // import fails (corrupt install, missing optional dep) and we let
1757 > // it reject, *every* provider's session list disappears — the
1758 > // sibling Copilot provider gets nuked too. Catch and log instead.
1759 > let sdkEntries: readonly SDKSessionInfo[];
1760 > try {
1761 > // Don't trigger a cold SDK download just to populate the session
1762 > // list at startup. When the SDK isn't local yet, surface an empty
1763 > // list; the download fires (with host-level progress) once the user
1764 > // starts a session, and the next `listSessions` — driven by the
1765 > // renderer's post-turn refresh — returns the full list.
1766 > if (!(await this._sdkService.canLoadWithoutDownload())) {
1767 this._logService.info('[Claude] SDK not downloaded yet; deferring session list until a session triggers the download');
1768 return [];
1774 }
1775 return sdkEntries.map(entry => this._metadataStore.project(entry));
1776 > } claudeAgent.ts
1777
1778 /**