Skip to content

fix: blank canvas on subgroup tab switch#67

Merged
knkenko merged 1 commit intomainfrom
fix/subgroup-blank-on-switch
Mar 25, 2026
Merged

fix: blank canvas on subgroup tab switch#67
knkenko merged 1 commit intomainfrom
fix/subgroup-blank-on-switch

Conversation

@knkenko
Copy link
Copy Markdown
Owner

@knkenko knkenko commented Mar 25, 2026

Summary

  • When switching between subgroup tabs, panes remount with grid = null but the PTY is already active — ensurePty is a no-op and no new terminal:render event fires
  • Canvas stays blank until the user types (which triggers PTY output → render event)
  • Fix: on mount, if the PTY is already in activePtyIds, request a fresh snapshot via scrollTerminal(paneId, 0) to immediately populate the canvas

Test plan

  • Create a workspace with 2+ subgroup tabs (split panes, then add a new subgroup)
  • Switch between tabs — verify terminal content appears immediately (no blank screen)
  • Verify switching back to the original tab also shows content immediately
  • Verify scrollback position is preserved correctly

🤖 Generated with Claude Code

When switching subgroup tabs, panes unmount/remount but the PTY is
already active — ensurePty is a no-op and no render event fires.
The canvas stays blank until user types. Now requests a snapshot via
scrollTerminal(id, 0) on mount when the PTY already exists.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@knkenko knkenko merged commit ca2be40 into main Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant