Skip to content

terminal starts as root user #24682

Description

Does this issue occur when all extensions are disabled?: Yes/No No

I have tried to disable all installed extensions and the terminal will turn back to normal user.

Image

what's weird is that it only happend on one project, the other projects don't have this problem.

  • VS Code Version: 1.96.2
  • OS Version: macOS 11.4

Steps to Reproduce:

  1. login a remote server as root user
  2. kill terminal

Activity

  1. gjsjohnmurray commented on Jan 2, 2025

    @gjsjohnmurray

    Does the Start Extension Bisect command help you identify exactly which extension is causing the problem?

  2. added
    bugIssue identified by VS Code Team member as probable bug
    and removed
    triage-neededNeeds assignment to the proper sub-team
    on Jan 7, 2025
  3. anthonykim1 commented on Jan 7, 2025

    @anthonykim1

    Thanks for filing this. @dark-souls-3
    Does not using copilot chat still wrongly have you start as root user?
    Meaning, is Python extension alone, and not using anything else (such as copilot chat via disabling copilot chat), can you still repro

  4. eleanorjboyd commented on Sep 23, 2026

    @eleanorjboyd
    Member

    🤖 Thanks for the additional context. Could you confirm whether this still reproduces on the latest VS Code and Python extension with Copilot Chat disabled, and provide the Python: Report Issue output, the Python output-channel logs from opening the affected terminal, the selected interpreter/environment manager, and the environment-variable differences you observe? Please also clarify whether this is a local terminal or a VS Code Remote session and how the root login was started. Issues marked info-needed automatically close after 30 days without a reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-terminalbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions