Skip to content

[Bug]: Using wsh to create a block in a terminal window, then deleting the terminal window, causes empty parentORef and the created block cannot be closed #3416

Description

@mseiler-sprout

Current Behavior

Creating a new block using wsh in a waveterm terminal block, then closing the terminal block, causes the created block to lose its parent and now the new block cannot be closed with x.

Expected Behavior

The block should still close if its parent is gone.

Steps To Reproduce

To reproduce:

  • Open a terminal window in waveterm
  • enter wsh web open google.com in the open terminal block
  • Close terminal window, either gracefully or with x
  • Try to close the web block

Wave Version

v0.14.5

Platform

macOS

OS Version/Distribution

Tahoe 26.5

Architecture

arm64

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions