[PR #13649] [MERGED] Fix _isDefTermSession not propagating upon pane split/close #29678

Open
opened 2026-01-31 09:36:16 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13649
Author: @PankajBhojwani
Created: 8/2/2022
Status: Merged
Merged: 8/4/2022
Merged by: @undefined

Base: mainHead: dev/pabhoj/fix_automatic


📝 Commits (4)

📊 Changes

2 files changed (+10 additions, -7 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.cpp (+4 -2)
📝 src/cascadia/TerminalApp/Pane.h (+6 -5)

📄 Description

Summary of the Pull Request

In #13560 we added a member to Pane that lets it know if it was spawned as a default terminal session, but did not propagate that value when the pane gets split or when the pane closes. This commit fixes that.

Validation Steps Performed

A session spawned by a def term invocation remembers it even as it goes through splits


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13649 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 8/2/2022 **Status:** ✅ Merged **Merged:** 8/4/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/fix_automatic` --- ### 📝 Commits (4) - [`c6bbaee`](https://github.com/microsoft/terminal/commit/c6bbaeefc7fc99d064e79eee519cac51b835f237) migrate _isDefTermSession to children upon split - [`d6a866a`](https://github.com/microsoft/terminal/commit/d6a866a29db517d2216a2276542f2f32546cfcf2) use walk tree instead - [`f0ac09b`](https://github.com/microsoft/terminal/commit/f0ac09b826bb367fe42a095ab952577d79933aef) fix - [`fb60258`](https://github.com/microsoft/terminal/commit/fb60258a759d2c9334d10a84b7a9615ea002fbaf) pragma ### 📊 Changes **2 files changed** (+10 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.cpp` (+4 -2) 📝 `src/cascadia/TerminalApp/Pane.h` (+6 -5) </details> ### 📄 Description ## Summary of the Pull Request In #13560 we added a member to `Pane` that lets it know if it was spawned as a default terminal session, but did not propagate that value when the pane gets split or when the pane closes. This commit fixes that. ## Validation Steps Performed A session spawned by a def term invocation remembers it even as it goes through splits --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:36:16 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29678