@@ -257,8 +257,12 @@ function transcriptRotateBytes(): number {
257257 * non-positive value) disables the age check; size alone then governs.
258258 */
259259function transcriptRotateAgeMs ( ) : number {
260- const days = Number ( process . env . CLAUDE_TRANSCRIPT_ROTATE_AGE_DAYS ) ;
261- return Number . isFinite ( days ) && days > 0 ? days * 86_400_000 : 14 * 86_400_000 ;
260+ const raw = process . env . CLAUDE_TRANSCRIPT_ROTATE_AGE_DAYS ;
261+ if ( raw === undefined || raw . trim ( ) === '' ) return 14 * 86_400_000 ;
262+ const days = Number ( raw ) ;
263+ if ( ! Number . isFinite ( days ) ) return 14 * 86_400_000 ;
264+ // Explicit non-positive override disables the age check; size alone governs.
265+ return days > 0 ? days * 86_400_000 : Infinity ;
262266}
263267
264268function claudeProjectsDir ( ) : string {
@@ -411,7 +415,7 @@ export class ClaudeProvider implements AgentProvider {
411415 effort : this . effort as any ,
412416 permissionMode : 'bypassPermissions' ,
413417 allowDangerouslySkipPermissions : true ,
414- settingSources : [ 'project' , 'user' ] ,
418+ settingSources : [ 'project' , 'user' , 'local' ] ,
415419 mcpServers : this . mcpServers ,
416420 hooks : {
417421 PreToolUse : [ { hooks : [ preToolUseHook ] } ] ,
0 commit comments