posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.59k stars 79 forks source link

Positron Web: `POSITRON_MODE` env var showing `desktop` in Terminal #5162

Open sharon-wang opened 1 day ago

sharon-wang commented 1 day ago

System details:

Positron and OS details:

Positron Server Web dev build from main branch or any of the latest REH-Web release builds.

Interpreter details:

N/A

Describe the issue:

On Web, POSITRON_MODE shows server as expected in the R Console and Python Console, but in the Terminal it shows desktop.

No issues on Desktop: POSITRON_MODE shows desktop as expected in the Terminal, R Console and Python Console.

Steps to reproduce the issue:

  1. echo $POSITRON_MODE in a Terminal in Positron Web
  2. See the output desktop, but it should be server

Expected or desired behavior:

echo $POSITRON_MODE in a Terminal in Positron Web should return server

Were there any error messages in the UI, Output panel, or Developer Tools console?

No

juliasilge commented 1 day ago

Here is where we intend to set that env var:

https://github.com/posit-dev/positron/blob/675b180e2ec25781121c268a6bff162ac9e27857/src/vs/platform/terminal/node/terminalEnvironment.ts#L151