copilotAgentSession.ts ×2

Frontier kind: Code frontier

unlabeled · c_3c6fbb9f6e8b

27 tests · 43577 LOC · 242 files · introduces 0 tests · 14 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges14 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3978 ranges43577 lines · 242 files · Browse complete extent
All tests (intent)
27 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: 14 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts 14 introduced LOC · 2 ranges

Open complete file

2199 return { kind: 'approve-once' };
2200 }
2202 > // Auto-approve reads of files under the session's attachments
2203 > // directory. The agent host writes user-message attachments
2204 > // (pasted images, snapshotted client-side files, etc.) there
2205 > // before dispatching the turn; the agent ends up needing to
2206 > // read those same files back, and prompting the user to
2207 > // approve a read of bytes they themselves attached is
2208 > // redundant.
2209 > if (request.kind === 'read' && typeof request.path === 'string'
2210 && this._isSessionAttachmentPath(request.path)
2211 ) {
2213 return { kind: 'approve-once' };
2214 }
2216 > // Auto-approve reads of large-tool-output temp files written by the
2217 > // Copilot SDK itself. The SDK spills oversized tool results to
2218 > // `os.tmpdir()/copilot-tool-output-…txt` and then asks the model
2219 > // to read them back in a follow-up turn — no need to confirm.
2220 if (request.kind === 'read' && typeof request.path === 'string') {
2221 if (isCopilotSdkToolOutputTempFile(request.path, this._environmentService.tmpDir.fsPath)) {