Skip to content

Elevated and unelevated terminal windows prune eachothers' session states #19526

@AndisGrossteins

Description

@AndisGrossteins

Description of the new feature

Currently, the session state buffers are saved for whichever window was closed last. If there is one unelevated and one elevated window, when both are closed (to apply Terminal updates or reboot system), buffers are saved for the instance that exited last.

This leads to loss of buffer history for one of the windows that were open during last session – usually the elevated window.

Proposed technical implementation details

The buffers could be kept for both as it's done for session states with state.json and elevated-state.json. The buffers could be written to a separate subdirectory under LocalState directory or using a filename prefix – elevated-{GUID}.txt.

Metadata

Metadata

Assignees

Labels

Area-WindowingWindow frame, quake mode, tearoutIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions