mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: add ROO_ACTIVE env variable to terminal env settings (#11862)
This commit is contained in:
parent
3e237e6061
commit
52ce796e42
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue