posit-dev / posit-dev/positron

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

Open
#5,162 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: builds bug
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a Positron Web Terminal with echo $POSITRON_MODE, then compare how the value is provided there with the R and Python Consoles. Done means the Web Terminal reports server, while Desktop continues to report desktop.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.