agentService.ts ×5

Frontier kind: Code frontier

unlabeled · c_6701c7d1f68c

7 tests · 50983 LOC · 304 files · introduces 0 tests · 24 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges24 lines · 1 files
Tests
0 tests

Contains — complete concept membership

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

src/vs/platform/agentHost/node/agentService.ts 24 introduced LOC · 5 ranges

Open complete file

877 const liveSummary = this._stateManager.getSessionSummary(s.session.toString());
878 if (liveSummary) {
879 > // Overlay the live `_meta` over the DB-derived value. The live agentService.ts
880 > // `_meta` is the freshest source (e.g. the GitHub state is
881 > // published here as soon as a PR is created), so a freshly-created
882 > // session that has not yet persisted its state to its session
883 > // database still reports it here. Keep the DB value as the base so
884 > // any keys absent from the live `_meta` are preserved.
885 > const _meta = liveSummary._meta !== undefined || s._meta !== undefined
886 ? { ...s._meta, ...liveSummary._meta }
887 : undefined;
888 > const liveWorkingDir = liveSummary.workingDirectories?.[0]; agentService.ts
889 > return {
890 > ...s,
891 > summary: liveSummary.title || s.summary,
892 > status: liveSummary.status,
893 > activity: liveSummary.activity,
894 > modifiedTime: Date.parse(liveSummary.modifiedAt),
895 > project: liveSummary.project
896 > ? { uri: URI.parse(liveSummary.project.uri), displayName: liveSummary.project.displayName }
897 : s.project,
898 > workingDirectory: typeof liveWorkingDir === 'string' agentService.ts
899 ? URI.parse(liveWorkingDir)
900 : s.workingDirectory,
901 > changes: liveSummary.changes ?? s.changes, agentService.ts
902 > changesets: this._stateManager.getSessionState(s.session.toString())?.changesets ?? s.changesets,
903 > ...(_meta !== undefined ? { _meta } : {}),
904 > };
905 > }
906 return s;
907 });
922 for (const summary of this._stateManager.getOverlaySessionSummaries()) {
923 if (known.has(summary.resource)) {
924 > continue; agentService.ts
925 > }
926 // Subagent sessions are nested under their parent and must never
927 // surface as top-level entries in the session list.