Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export async function claudeRemoteAgentSdk(opts: {
mcpServers: opts.mcpServers,
settingSources,
permissionMode: mappedPermissionMode,
allowDangerouslySkipPermissions: mappedPermissionMode === 'bypassPermissions',
allowDangerouslySkipPermissions: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing test will now fail

The test in claudeRemoteAgentSdk.optionsAndHooks.test.ts:103 asserts:

expect((await runOnce('default'))?.allowDangerouslySkipPermissions).toBe(false);

With this change, allowDangerouslySkipPermissions is now always true, so this assertion will fail. The test (line 55) and its description — "sets allowDangerouslySkipPermissions only when permissionMode is bypassPermissions" — need to be updated to reflect the new behavior (e.g., assert true for all modes and rename the test case).

model: argOverrides.model ?? mode.model,
fallbackModel: argOverrides.fallbackModel ?? mode.fallbackModel,
maxTurns: argOverrides.maxTurns,
Expand Down