From d8158afb1be2464e3161ed8b415ad600cd8b4b30 Mon Sep 17 00:00:00 2001 From: Resham Joshi <65915470+iamtoruk@users.noreply.github.com> Date: Mon, 20 Jul 2026 08:28:29 -0700 Subject: [PATCH] currency: honor CODEBURN_CACHE_DIR for the exchange-rate cache (#766) The one cache module still hardcoding ~/.cache/codeburn; every other cache (session, daily, codex, pricing) honors the relocation override, so a user moving the cache dir kept getting this single file in the default location. Found by the pre-release functional sweep. --- src/currency.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/currency.ts b/src/currency.ts index d951c815..228c7c5a 100644 --- a/src/currency.ts +++ b/src/currency.ts @@ -73,7 +73,10 @@ export function roundForActiveCurrency(value: number): number { } function getCacheDir(): string { - return join(homedir(), '.cache', 'codeburn') + // Honor the same relocation override every other cache module uses + // (session-cache, daily-cache, codex-cache, models); this was the one + // straggler still hardcoding the default path. + return process.env['CODEBURN_CACHE_DIR'] ?? join(homedir(), '.cache', 'codeburn') } function getRateCachePath(): string {