[PR #13560] [DxD] Add 'Automatic' as a mode for CloseOnExit #29635

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

Original Pull Request: https://github.com/microsoft/terminal/pull/13560

State: closed
Merged: Yes


Summary of the Pull Request

Adds a new mode to CloseOnExit: Automatic. In this mode, if a process handed off by defterm terminates for whatever reason, we always close (i.e. we treat the mode as Always), but for processes launched by Terminal we terminate as with the Graceful behaviour.

PR Checklist

Detailed Description of the Pull Request / Additional comments

  • Adds a new enum value to CloseOnExit
  • Adds a new function to Pane: FinalizeConfigurationGivenDefault: this is a function that should be called when the pane is created via default terminal handoff, and can contain any special configurations we should set given that the pane was created via handoff

Validation Steps Performed

**Original Pull Request:** https://github.com/microsoft/terminal/pull/13560 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Adds a new mode to `CloseOnExit`: `Automatic`. In this mode, if a process handed off by defterm terminates for whatever reason, we always close (i.e. we treat the mode as `Always`), but for processes launched by Terminal we terminate as with the `Graceful` behaviour. ## PR Checklist * [x] Closes #13325 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx * [ ] Schema updated. * [x] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments - Adds a new enum value to `CloseOnExit` - Adds a new function to `Pane`: `FinalizeConfigurationGivenDefault`: this is a function that should be called when the pane is created via default terminal handoff, and can contain any special configurations we should set given that the pane was created via handoff ## Validation Steps Performed
claunia added the pull-request label 2026-01-31 09:36:02 +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#29635