Skip to content

[bug] Terminal ghosting and accumulating black regions after workspace switches #3351

Closed as duplicate

Description

@AytuncYildizli

Describe the bug

When switching away from a workspace that contains a running terminal pane and then coming back, the terminal briefly renders the correct content and then falls into a corrupted visual state.

The key symptom is not just "blank output" or "slow repaint".
The content can appear correctly for a moment, then large black blank regions take over the view. Repeating the workspace switch makes the problem worse: each switch appears to add another ghost/stale terminal layer or another large blank region.

This makes the terminal effectively unreadable.

Expected behavior

Returning to an existing terminal pane after a workspace switch should preserve the visible terminal state exactly, or at minimum repaint into a clean usable state without accumulating artifacts.

Actual behavior

After switching away from a workspace and returning to the same terminal pane:

  • the terminal may flash the correct content briefly
  • then large black blank regions appear over the terminal
  • repeated workspace switches make the corruption worse
  • the terminal becomes unreadable because ghost/stale terminal regions accumulate

This does not look like missing PTY output. It looks like a post-attach / post-visibility renderer or restore lifecycle bug.

Reproduction

  1. Open a workspace with a terminal pane.
  2. Start a dense TUI workload inside the terminal (for example Codex CLI).
  3. Switch to another workspace.
  4. Return to the original workspace.
  5. Observe a brief correct render followed by black blank regions / stale terminal ghosting.
  6. Repeat workspace switching a few times.
  7. Observe that the corruption accumulates and readability gets worse on each switch.

Observed pattern

The strongest signal is this:

  • the correct content is visible for a moment
  • then a later lifecycle pass corrupts the pane

That suggests the failure is after terminal output arrives.
So this appears to be a render / restore / reattach problem, not a subprocess output problem.

Environment

  • Superset Desktop: 1.4.7
  • macOS: Apple Silicon
  • workload inside terminal: Codex CLI

Related issues

This looks related to the same family, but more severe / more cumulative:

The specific difference here is the progressive ghosting / accumulating black regions after repeated workspace switches.

Additional notes

I intentionally omitted private/local environment details and internal workspace names. If a maintainer wants a smaller public repro or wants me to test a candidate patch, I can do that.

Activity

  1. AytuncYildizli commented on Apr 11, 2026

    @AytuncYildizli
    Author

    Additional note after more local repro:

    The strongest signal is that the correct terminal content can appear briefly and then get overwritten by large black/stale regions.

    So this does not look like "the subprocess never produced output".
    It looks more like:

    • terminal output arrives correctly
    • the pane renders a correct frame briefly
    • a later restore / repaint / reattach lifecycle pass corrupts the visible state

    Also, repeated workspace switches make the problem progressively worse, which suggests some kind of cumulative reattach / stale-layer / duplicate-restore behavior rather than a one-off failed repaint.

    That is why this feels closer to the same family as:

    If helpful, I can test a candidate patch against this exact repro pattern.

  2. added a commit that references this issue on Apr 11, 2026
  3. 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