File tree Expand file tree Collapse file tree
container/agent-runner/src/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -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 {
You can’t perform that action at this time.
0 commit comments