Skip to content

Opening a file after closing a preview prevents it to be full screen #16578

Description

@JosephBARBIERDARNAL

System details:

Positron and OS details:

Positron Version: 2026.09.1 build 2
Code - OSS Version: 1.130.0
Commit: 467ff39
Date: 2026-09-04T09:54:04-07:00
Electron: 42.6.0
Chromium: 148.0.7778.280
Node.js: 24.18.0
V8: 14.8.178.38-electron.0
OS: Darwin arm64 25.6.0

Session details:

/

Describe the issue:

This one is hard to describe, but it's easy to reproduce (see below). Closing a Markdown preview (it might be true for other?) leaves the editor group locked, preventing subsequently opened files from using all available editing space.

Positron seems to have some kind of "locked group" behavior that prevents the last opened file from being displayed normally (i.e., occupying all available space). Hopefully, the video makes it clear.

Screen.Recording.2026-10-09.at.9.47.59.PM.mov

Steps to reproduce the issue:

  • Open a README.md file.
  • Click the preview button in the top-right corner.
  • Close the README editor (important).
  • Then close the preview.
  • Finally, open any text file.

Expected or desired behavior:

The last opened file should occupy all available space for text editing.

Activity

  1. samclark2015 commented on Oct 9, 2026

    @samclark2015
    Contributor

    Hi @JosephBARBIERDARNAL - thanks so much for that screen recording; I see exactly what you mean. I don't see this on my local copy, but let's figure out what's causing it.

    Could you try to toggle the lock 🔒 icon that appears in the top-right corner of the preview pane? That should unlock that preview group.

    If this behavior still happens after that, it'd be great if you could reply with your Positron settings. You can get them as JSON by opening the Command Palette (Cmd+Shift+P) and searching for "Preferences: Open User Settings (JSON)". I'm curious if something was set, like workbench.editor.autoLockGroups.

    Thanks!

  2. JosephBARBIERDARNAL commented on Oct 9, 2026

    @JosephBARBIERDARNAL
    Author
    1. Could you try to toggle the lock 🔒 icon that appears in the top-right corner of the preview pane? That should unlock that preview group.

    Hey! You're right, it was in my Positron settings:

    "workbench.editor.autoLockGroups": {
        "workbench.editor.chatSession": false,
        "mainThreadWebview-markdown.preview": true, // setting this to false fixes my issue
      },

    I'm closing the issue then, thanks!

  3. samclark2015 commented on Oct 9, 2026

    @samclark2015
    Contributor

    Awesome - so glad we got it solved for you! Cheers to a good weekend 🎉

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    info neededWaiting on information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions