Closing a pane that summoned the "termination behavior" infobar should probably just dismiss it #15685

Open
opened 2026-01-31 04:45:35 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Oct 25, 2021).

From @KalleOlaviNiemitalo in https://github.com/microsoft/terminal/issues/10798#issuecomment-950857104

I then pressed Ctrl+Shift+W to close the tab, but the info bar remained there.

Originally created by @zadjii-msft on GitHub (Oct 25, 2021). _From @KalleOlaviNiemitalo in https://github.com/microsoft/terminal/issues/10798#issuecomment-950857104_ > I then pressed Ctrl+Shift+W to close the tab, but the info bar remained there.
Author
Owner

@DHowett commented on GitHub (Mar 14, 2024):

Ugh. I wanted to do this, but:

  • The connection state changed event comes in with an ICoreState
    • There's no way to go from an ICoreState to a hosting pane
  • But... the Pane close event comes in with, well, a Pane.

I thought it would be relatively straightforward. Use the Pane pointer (literally) as an opaque 64-bit integer Tag on the InfoBar, and when a pane closes just compare the pointer vs the InfoBar's tag.

Few things in our code are "relatively straightforward" 🥲

@DHowett commented on GitHub (Mar 14, 2024): Ugh. I wanted to do this, but: - The connection state changed event comes in with an `ICoreState` - There's no way to go from an `ICoreState` to a hosting pane - But... the `Pane` close event comes in with, well, a `Pane`. I thought it would be relatively straightforward. Use the Pane pointer (literally) as an opaque 64-bit integer `Tag` on the InfoBar, and when a pane closes just compare the pointer vs the InfoBar's tag. Few things in our code are "relatively straightforward" 🥲
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15685