posit-dev / posit-dev/positron

Console: "Extensions restarting..." flashes when closing, switching workspaces, etc.

Open
#8,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: console bug
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

System details:

Positron and OS details:
Positron Version: 2025.07.0 (Universal) build 112
Code - OSS Version: 1.100.0
Commit: d3aebd077b1b5a1ad2073966a4cc20270da68f89
Date: 2025-06-16T03:37:53.133Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0
Interpreter details:

Any

Describe the issue:

The "Extensions restarting" indicator appears in the Console in a variety of contexts that are not an extension host restart.

Steps to reproduce the issue:

  1. Open Positron
  2. Start an R or Python session
  3. Switch to another workspace, or close Positron altogether

https://github.com/user-attachments/assets/bafe9e68-a35c-478b-9216-1d315a6565e5

Expected or desired behavior:

Console doesn't change, or indicates exiting/switching instead of restarting.

This behavior is caused by the fact that (at least as plumbed today) we only know that the extension host is exiting -- we don't know why it's exiting. It could be exiting to recover from a crash, to restart after an extension change, in preparation for exiting Positron, in preparation to switch workspaces, etc.

This flash is very brief on fast machines, but can linger for 1s or more on slower ones.

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

Start by reproducing the Console's "Extensions restarting..." indicator while starting an R or Python session, switching workspaces, and closing Positron. Trace the Console handling of extension-host exit events and determine how the exit context is represented. Done means the Console no longer flashes a restart message for workspace switching or application exit, while genuine restarts remain clearly indicated.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.