agentService.ts ×10

Frontier kind: Code frontier

unlabeled · c_615801e21f6c

20 tests · 50608 LOC · 290 files · introduces 0 tests · 32 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges32 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
5310 ranges50608 lines · 290 files · Browse complete extent
All tests (intent)
20 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: 32 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/agentService.ts 32 introduced LOC · 10 ranges

Open complete file

2446 const db = await ref;
2447 if (db) {
2448 > try { agentService.ts
2449 > const m = await db.object.getMetadataObject({
2450 > customTitle: true,
2451 > isRead: true,
2452 > [AH_META_IS_ARCHIVED_DB_KEY]: true,
2453 > [AH_META_IS_DONE_DB_KEY]: true,
2454 > configValues: true,
2455 > [AH_META_WORKSPACELESS_DB_KEY]: true,
2456 > ...GIT_DB_METADATA_KEYS,
2457 > ...CHANGESET_DB_METADATA_KEYS,
2458 > });
2459 > if (m.customTitle) {
2460 title = m.customTitle;
2461 }
2462 > if (m.isRead !== undefined) { agentService.ts
2463 isRead = m.isRead === 'true';
2464 }
2465 > if (m[AH_META_IS_ARCHIVED_DB_KEY] !== undefined) { agentService.ts
2466 isArchived = m[AH_META_IS_ARCHIVED_DB_KEY] === 'true';
2467 > } else if (m[AH_META_IS_DONE_DB_KEY] !== undefined) { agentService.ts
2468 isArchived = m[AH_META_IS_DONE_DB_KEY] === 'true';
2469 }
2471 > changesetMetadata = m as Record<string, string | undefined>;
2472 > if (changesetMetadata[META_CHANGES_SUMMARY]) {
2473 try {
2474 changes = JSON.parse(changesetMetadata[META_CHANGES_SUMMARY]);
2477 }
2478 }
2480 > gitMetadata = m as Record<string, string | undefined>;
2481 >
2482 > if (gitMetadata[META_GIT_STATE]) {
2483 try {
2484 const gitState = JSON.parse(gitMetadata[META_GIT_STATE]);
2488 }
2489 }
2491 > if (gitMetadata[META_GITHUB_STATE]) {
2492 try {
2493 const githubState = JSON.parse(gitMetadata[META_GITHUB_STATE]);
2500 }
2501 }
2503 > if (m[AH_META_WORKSPACELESS_DB_KEY] !== undefined) {
2504 sessionMetadata = withSessionWorkspaceless(sessionMetadata, m[AH_META_WORKSPACELESS_DB_KEY] === 'true');
2505 }
2507 > if (m.configValues) {
2508 try {
2509 persistedConfigValues = JSON.parse(m.configValues);
2512 }
2513 }
2514 > } finally { agentService.ts
2515 > db.dispose();
2516 > }
2517 > }
2518 } catch {
2519 // Best-effort: fall back to agent-provided metadata