agentHostStateManager.ts ×2

Frontier kind: Code frontier

unlabeled · c_dd10272c5327

8 tests · 50948 LOC · 304 files · introduces 0 tests · 26 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges26 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5181 ranges50948 lines · 304 files · Browse complete extent
All tests (intent)
8 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.

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

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

Open complete file

921 const additions: IAgentSessionMetadata[] = [];
922 for (const summary of this._stateManager.getOverlaySessionSummaries()) {
923 > if (known.has(summary.resource)) { agentService.ts
924 continue;
925 }
931
932 const summaryWorkingDir = summary.workingDirectories?.[0];
933 > additions.push({ agentService.ts
934 > session: URI.parse(summary.resource),
935 > startTime: Date.parse(summary.createdAt),
936 > modifiedTime: Date.parse(summary.modifiedAt),
937 > summary: summary.title,
938 > status: summary.status,
939 > activity: summary.activity,
940 > workingDirectory: typeof summaryWorkingDir === 'string' ? URI.parse(summaryWorkingDir) : undefined,
941 > ...(summary.project ? { project: { uri: URI.parse(summary.project.uri), displayName: summary.project.displayName } } : {}),
942 > changes: summary.changes,
943 > // This overlay path never opens the session database (unlike the
944 > // provider-returned sessions handled above), so carry the
945 > // in-memory `summary._meta` directly. It holds the live state
946 > // (e.g. the GitHub state published when a PR is created), so a
947 > // freshly-created session that the provider transiently omits
948 > // still reports it here.
949 > ...(summary._meta !== undefined ? { _meta: summary._meta } : {}),
950 > });
951 > }
952 const combined = additions.length > 0 ? [...withStatus, ...additions] : withStatus;
953
src/vs/platform/agentHost/node/agentHostStateManager.ts 6 introduced LOC · 2 ranges

Open complete file

431 const summaries: SessionSummary[] = [];
432 for (const [key, entry] of this._sessionStates) {
433 > // Turn activity lives on the session's default chat after the agentHostStateManager.ts
434 > // multi-chat protocol move, so consult that chat's turns/activeTurn.
435 > const chat = this._chatStates.get(buildDefaultChatUri(key));
436 > if (entry.state.lifecycle === SessionLifecycle.Creating && !chat?.activeTurn && (chat?.turns.length ?? 0) === 0) {
437 continue;
438 }
439 > summaries.push(this._toSummary(key, entry)); agentHostStateManager.ts
440 > }
441 return summaries;
442 }