From 00ddd926b8817d978d44913f4d6460cd8a8aa6fe Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Thu, 18 Dec 2025 08:17:05 -0700 Subject: [PATCH] refactor: rename ROO_CODE_LOGGING to ROO_CODE_API_LOGGING and restore VSCODE_DEBUG_MODE - Renamed environment variable to ROO_CODE_API_LOGGING for clarity - Restored VSCODE_DEBUG_MODE in launch.json env section - This preserves existing behavior (debug mode enabled, API logging opt-in) --- .vscode/launch.json | 3 ++- src/api/core/logging/env-config.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 8d273b2a3d..1979082379 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -16,7 +16,8 @@ "preLaunchTask": "${defaultBuildTask}", "envFile": "${workspaceFolder}/.env.local", "env": { - "NODE_ENV": "development" + "NODE_ENV": "development", + "VSCODE_DEBUG_MODE": "true" }, "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"], "presentation": { diff --git a/src/api/core/logging/env-config.ts b/src/api/core/logging/env-config.ts index 1815cc8b5b..af0d619cc7 100644 --- a/src/api/core/logging/env-config.ts +++ b/src/api/core/logging/env-config.ts @@ -89,18 +89,18 @@ function getEnvLocalValues(): Record { * Check if API logging is enabled * * Checks in order: - * 1. Workspace .env.local: ROO_CODE_LOGGING=true (for user's workspace) + * 1. Workspace .env.local: ROO_CODE_API_LOGGING=true (for user's workspace) * 2. Process env (loaded from extension's .env.local via envFile in launch.json) */ export function isLoggingEnabled(): boolean { // Check workspace .env.local first (user's current workspace) const envLocal = getEnvLocalValues() - if (envLocal["ROO_CODE_LOGGING"] === "true") { + if (envLocal["ROO_CODE_API_LOGGING"] === "true") { return true } // Fallback to process.env (populated from extension's .env.local via launch.json envFile) - return process.env.ROO_CODE_LOGGING === "true" + return process.env.ROO_CODE_API_LOGGING === "true" } /**