Skip to content

Prompt lines duplicate/stack up when resizing window via keyboard shortcut (Cmd+/-) #3179

Closed as duplicate

Description

@michigaeru-imanyu

Description

When resizing the Superset window using keyboard shortcuts (Cmd+Plus / Cmd+Minus to zoom in/out), the zsh prompt lines duplicate and stack up in the terminal. Each zoom keystroke adds another copy of the current path/prompt, so after a few zooms the terminal is filled with repeated prompt lines.

This does not happen in iTerm2, Terminal.app, or other common macOS terminals with the same shell configuration.

Environment

  • Superset: 1.4.7
  • macOS: 26.4 (25E246), Apple Silicon
  • Shell: zsh 5.9
  • Theme: Powerlevel10k (default 2-line prompt with `PROMPT_ADD_NEWLINE=true`)

Steps to Reproduce

  1. Open Superset with a zsh + Powerlevel10k shell
  2. Press `Cmd` + `+` (or `Cmd` + `-`) repeatedly to zoom
  3. Observe prompt lines accumulating

Expected Behavior

After resize, only the current prompt should remain visible; previous prompt lines should be cleared as in other terminal emulators.

Actual Behavior

Each resize event adds another copy of the prompt, stacking vertically.

Workarounds Attempted (none worked)

  • `POWERLEVEL9K_DISABLE_HOT_RELOAD=true` (already default)
  • Overriding `TRAPWINCH() { }` to suppress zsh's prompt redraw on SIGWINCH
  • `POWERLEVEL9K_TERM_SHELL_INTEGRATION=true` (OSC 133 shell integration)

This suggests the issue is on the xterm.js / Superset side rather than in zsh's resize handling. It may be related to xterm.js reflow behavior on resize (xtermjs/xterm.js#622).

Additional Notes

The issue is triggered specifically by the keyboard zoom shortcuts. Mouse-based window resizing may or may not trigger it (untested, please confirm).

Activity

  1. Kitenite commented on Jul 11, 2026

    @Kitenite
    Member

    Closing as a duplicate of #5605, the consolidated tracker for stale terminal-rendering issues from the July 2026 stale-issue sweep (no activity since 2026-06-01). If this still applies on a current build, comment on #5605 and we'll reopen.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions