From fd23385b8fdc7dc529a091beb8c00f82fef28ff5 Mon Sep 17 00:00:00 2001 From: AJ Juaire <46756248+ajjuaire@users.noreply.github.com> Date: Wed, 4 Mar 2026 14:11:18 -0700 Subject: [PATCH] feat: add ROO_ACTIVE env variable to terminal env settings --- src/integrations/terminal/Terminal.ts | 1 + src/integrations/terminal/__tests__/TerminalRegistry.spec.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/integrations/terminal/Terminal.ts b/src/integrations/terminal/Terminal.ts index 8bf2072f3d4..38ace9d4b16 100644 --- a/src/integrations/terminal/Terminal.ts +++ b/src/integrations/terminal/Terminal.ts @@ -152,6 +152,7 @@ export class Terminal extends BaseTerminal { public static getEnv(): Record { const env: Record = { + ROO_ACTIVE: "true", PAGER: process.platform === "win32" ? "" : "cat", // VTE must be disabled because it prevents the prompt command from executing diff --git a/src/integrations/terminal/__tests__/TerminalRegistry.spec.ts b/src/integrations/terminal/__tests__/TerminalRegistry.spec.ts index d3912caf479..f8d35635d96 100644 --- a/src/integrations/terminal/__tests__/TerminalRegistry.spec.ts +++ b/src/integrations/terminal/__tests__/TerminalRegistry.spec.ts @@ -46,6 +46,7 @@ describe("TerminalRegistry", () => { iconPath: expect.any(Object), env: { PAGER, + ROO_ACTIVE: "true", VTE_VERSION: "0", PROMPT_EOL_MARK: "", }, @@ -66,6 +67,7 @@ describe("TerminalRegistry", () => { iconPath: expect.any(Object), env: { PAGER, + ROO_ACTIVE: "true", PROMPT_COMMAND: "sleep 0.05", VTE_VERSION: "0", PROMPT_EOL_MARK: "", @@ -88,6 +90,7 @@ describe("TerminalRegistry", () => { iconPath: expect.any(Object), env: { PAGER, + ROO_ACTIVE: "true", VTE_VERSION: "0", PROMPT_EOL_MARK: "", ITERM_SHELL_INTEGRATION_INSTALLED: "Yes", @@ -109,6 +112,7 @@ describe("TerminalRegistry", () => { iconPath: expect.any(Object), env: { PAGER, + ROO_ACTIVE: "true", VTE_VERSION: "0", PROMPT_EOL_MARK: "", POWERLEVEL9K_TERM_SHELL_INTEGRATION: "true",