[PR #18910] Clean up persisted windows after the feature is disabled #31646

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

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

State: closed
Merged: Yes


I finally realized the missing piece.
We need to clear the state array unconditionally, as otherwise it won't get cleared. Duh.

Closes #18584

Validation Steps Performed

  • Craft a state.json with a layout
  • Launch Terminal while the feature is disabled
  • state.json is cleaned up on exit
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18910 **State:** closed **Merged:** Yes --- I finally realized the missing piece. We need to clear the state array unconditionally, as otherwise it won't get cleared. Duh. Closes #18584 ## Validation Steps Performed * Craft a state.json with a layout * Launch Terminal while the feature is disabled * state.json is cleaned up on exit ✅
claunia added the pull-request label 2026-01-31 09:48:36 +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#31646