Skip to content

Session suspend icons are missing when the Console has no other tabs #19789

Open

Description

@gtritchie

When the Console pane has no other tabs (Terminal and Background Jobs closed), the Console never shows its session-suspended or "Auto Suspension Blocked" icons. With other tabs open, they appear at the right end of the Console toolbar.

The "Auto Suspension Blocked" icon's tooltip says what is keeping the session from suspending, and the "Warn when automatic session suspension is paused" option (Global Options > Console, console_suspend_blocked_notice) is described as showing it in the Console toolbar. With the Console as the only tab, that option has no visible effect.

Steps to reproduce

  1. Close the Terminal and Background Jobs tabs, so Console is the only tab in its pane.
  2. Do something that blocks automatic suspension and wait for the blocked notice, or let the session suspend.

No icon appears in the Console pane. Opening a Terminal tab shows the Console toolbar again, with the icon.

Cause

ConsolePane.createMainToolbar() adds consoleSuspendedIcon_ and consoleSuspendBlockedIcon_ to the Console toolbar, and onSerializationEvent() / onSuspendedBlockedEvent() show and hide them there. In console-only mode, ConsoleTabPanel hides that toolbar and moves only Clear Console, Interrupt, and Interrupt Profiler into the pane's title bar (and Find in Console, with the fix for #19784), so the icons are hidden with the toolbar.

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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions