Skip to content

Console on Right places the Console top-right after it was placed bottom-right #18921

Closed

Description

@kevinushey

System details

RStudio Edition: Desktop and Server
RStudio Version: 2026.01.0 and later (any build with the generated pref accessors)
OS Version: any

Steps to reproduce

  1. In Global Options > Pane Layout, move the Console to the bottom-right quadrant and apply. This stores panes.consoleRightOnTop = false.
  2. Choose View > Panes > Console on Right (or run the layoutConsoleOnRight command).

Expected

The Console goes to the bottom-right quadrant, where it was last placed on the right.

Observed

The Console goes to the top-right quadrant.

Cause

scripts/generate-prefs.R emits boolean getters on preference objects as return this && this.<prop> || <default>;. When the default is true, a stored false is replaced by the default, so the stored value can never be read back. PaneConfig.getConsoleRightOnTop() is one such getter (PaneManager uses it to pick quadrant 2 or 3). The same generator bug also affects other true-default booleans on prefs/state objects, e.g. the Save Plot as Image dialog's "Use device pixel ratio" option never persisting as off.

The fix (emit typeof this.<prop> === "boolean" ? this.<prop> : <default>) is part of #18895.

Activity

  1. self-assigned this
    on Sep 24, 2026
  2. added theissue type on Sep 28, 2026
  3. kevinushey commented on Oct 5, 2026

    @kevinushey
    CollaboratorAuthor

    Fixed in 2026.10 as part of #18895. The generated boolean preference getters now return the stored value when one exists instead of replacing a stored false with a true default, so Console on Right returns to the bottom-right quadrant and other on-by-default options (such as "Use device pixel ratio" in Save Plot as Image) can be saved as off.

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions