claudeAgent.ts ×1

Frontier kind: Joint frontier

unlabeled · c_3f3345294220

1 test · 54336 LOC · 346 files · introduces 1 test · 48 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range48 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
5025 ranges54336 lines · 346 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 48 introduced LOC across 1 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/claudeAgent.ts 48 introduced LOC · 1 range

Open complete file

1809
1810 resolveSessionConfig(_params: IAgentResolveSessionConfigParams): Promise<ResolveSessionConfigResult> {
1811 > // Decision B5 (plan section 3.3.5): Claude collapses the platform's claudeAgent.ts
1812 > // `autoApprove` × `mode` two-axis approval surface onto a single
1813 > // `permissionMode` axis matching the SDK's native enum. The
1814 > // platform `Permissions` key is reused unchanged because the
1815 > // Claude SDK accepts `allowedTools` / `disallowedTools`
1816 > // natively. Skipped: AutoApprove, Mode, Isolation, Branch,
1817 > // BranchNameHint — workbench pickers key off the property names
1818 > // to decide what to render, so omitting these intentionally
1819 > // suppresses the default mode/branch UI for Claude sessions.
1820 > const sessionSchema = createSchema({
1821 > [ClaudeSessionConfigKey.PermissionMode]: schemaProperty<ClaudePermissionMode>({
1822 > type: 'string',
1823 > title: localize('claude.sessionConfig.permissionMode', "Approvals"),
1824 > description: localize('claude.sessionConfig.permissionModeDescription', "How Claude handles tool approvals."),
1825 > enum: ['default', 'acceptEdits', 'plan', 'auto', 'bypassPermissions'],
1826 > enumLabels: [
1827 > localize('claude.sessionConfig.permissionMode.default', "Ask Before Edits"),
1828 > localize('claude.sessionConfig.permissionMode.acceptEdits', "Edit Automatically"),
1829 > localize('claude.sessionConfig.permissionMode.plan', "Plan Mode"),
1830 > localize('claude.sessionConfig.permissionMode.auto', "Auto Mode"),
1831 > localize('claude.sessionConfig.permissionMode.bypassPermissions', "Bypass Permissions"),
1832 > ],
1833 > enumDescriptions: [
1834 > localize('claude.sessionConfig.permissionMode.defaultDescription', "Claude asks before editing files."),
1835 > localize('claude.sessionConfig.permissionMode.acceptEditsDescription', "Claude edits files without asking, and asks before using other tools."),
1836 > localize('claude.sessionConfig.permissionMode.planDescription', "Claude creates a plan before making changes."),
1837 > localize('claude.sessionConfig.permissionMode.autoDescription', "Claude decides whether to ask for each tool operation."),
1838 > localize('claude.sessionConfig.permissionMode.bypassPermissionsDescription', "Claude runs all tools without asking."),
1839 > ],
1840 > default: 'default',
1841 > sessionMutable: true,
1842 > }),
1843 > [SessionConfigKey.Permissions]: platformSessionSchema.definition[SessionConfigKey.Permissions],
1844 > });
1845 >
1846 > const values = sessionSchema.validateOrDefault(_params.config, {
1847 > [ClaudeSessionConfigKey.PermissionMode]: 'default' satisfies ClaudePermissionMode,
1848 > // Permissions intentionally omitted from defaults — leave
1849 > // unset so auto-approval falls through to the host-level
1850 > // default, materializing on the session only once the user
1851 > // approves a tool "in this Session".
1852 > });
1853 >
1854 > return Promise.resolve({
1855 > schema: sessionSchema.toProtocol(),
1856 > values,
1857 > });
1858 > }
1859
1860 sessionConfigCompletions(_params: IAgentSessionConfigCompletionsParams): Promise<SessionConfigCompletionsResult> {