@@ -248,6 +248,7 @@ function buildClaudeCodeOptions(args: {
248248 effort ?: EffortLevel ;
249249 plugins : { type : "local" ; path : string } [ ] ;
250250 disallowedTools ?: string [ ] ;
251+ settingSources ?: ( "user" | "project" | "local" ) [ ] ;
251252} ) {
252253 return {
253254 ...( args . additionalDirectories ?. length && {
@@ -257,6 +258,9 @@ function buildClaudeCodeOptions(args: {
257258 ...( args . disallowedTools ?. length && {
258259 disallowedTools : args . disallowedTools ,
259260 } ) ,
261+ ...( args . settingSources ?. length && {
262+ settingSources : args . settingSources ,
263+ } ) ,
260264 plugins : args . plugins ,
261265 } ;
262266}
@@ -278,6 +282,7 @@ interface SessionConfig {
278282 systemPromptOverride ?: string ;
279283 /** Tool names denied for this session (passed to the Claude SDK). */
280284 disallowedTools ?: string [ ] ;
285+ settingSources ?: ( "user" | "project" | "local" ) [ ] ;
281286 /** Effort level for Claude sessions */
282287 effort ?: EffortLevel ;
283288 /** Model to use for the session (e.g. "claude-sonnet-4-6") */
@@ -779,6 +784,7 @@ If a repository IS genuinely required, attach one in this priority order:
779784 customInstructions,
780785 systemPromptOverride,
781786 disallowedTools,
787+ settingSources,
782788 effort,
783789 model,
784790 jsonSchema,
@@ -1010,6 +1016,7 @@ If a repository IS genuinely required, attach one in this priority order:
10101016 effort,
10111017 plugins,
10121018 disallowedTools,
1019+ settingSources,
10131020 } ) ;
10141021
10151022 let configOptions : SessionConfigOption [ ] | undefined ;
@@ -2131,6 +2138,8 @@ For git operations while detached:
21312138 : undefined ,
21322139 disallowedTools :
21332140 "disallowedTools" in params ? params . disallowedTools : undefined ,
2141+ settingSources :
2142+ "settingSources" in params ? params . settingSources : undefined ,
21342143 effort : "effort" in params ? params . effort : undefined ,
21352144 model : "model" in params ? params . model : undefined ,
21362145 jsonSchema : "jsonSchema" in params ? params . jsonSchema : undefined ,
0 commit comments