feat: add ROO_ACTIVE env variable to terminal env settings (#11862)

This commit is contained in:
AJ Juaire 2026-03-04 17:23:52 -07:00 committed by GitHub
parent 3e237e6061
commit 52ce796e42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -152,6 +152,7 @@ export class Terminal extends BaseTerminal {
public static getEnv(): Record<string, string> {
const env: Record<string, string> = {
ROO_ACTIVE: "true",
PAGER: process.platform === "win32" ? "" : "cat",
// VTE must be disabled because it prevents the prompt command from executing

View file

@ -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",