Keeps losing lines of history #23530

Closed
opened 2026-01-31 08:44:56 +00:00 by claunia · 2 comments
Owner

Originally created by @github-account1111 on GitHub (Aug 16, 2025).

Windows Terminal version

1.22.12111.0

Windows build number

10.0.26100.0

Other Software

No response

Steps to reproduce

  1. Have a few tabs open
  2. Use the Terminal normally for a few hours
  3. Close a tab

Expected Behavior

History is saved. Commands show up when I press the Up arrow key.

Actual Behavior

This isn't consistent, but sometimes, some commands - somehow the most useful ones, ones I would want to refer back to in the future - end up missing. All that gets saved is the useless stuff like cd and ls.

I am so tired of dealing with this issue (alongside a bunch more). This never happened on Windows 10 with good ol' blue PowerShell. Sure, it was less pretty than the shiny new Windows 11 Terminal, but also far less buggy and inconsistent. Stop laying off your developers, M$. Your software quality is in the toilet right now.

Originally created by @github-account1111 on GitHub (Aug 16, 2025). ### Windows Terminal version 1.22.12111.0 ### Windows build number 10.0.26100.0 ### Other Software _No response_ ### Steps to reproduce 1. Have a few tabs open 1. Use the Terminal normally for a few hours 1. Close a tab ### Expected Behavior History is saved. Commands show up when I press the Up arrow key. ### Actual Behavior This isn't consistent, but sometimes, some commands - somehow the most useful ones, ones I *would* want to refer back to in the future - end up missing. All that gets saved is the useless stuff like `cd` and `ls`. I am so tired of dealing with this issue (alongside a bunch more). This never happened on Windows 10 with good ol' blue PowerShell. Sure, it was less pretty than the shiny new Windows 11 Terminal, but also *far* less buggy and inconsistent. Stop laying off your developers, M$. Your software quality is in the toilet right now.
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:44:57 +00:00
Author
Owner

@lhecker commented on GitHub (Aug 19, 2025):

Fortunately (for us) we're a terminal - we're basically a fancy text renderer, nothing more. If I read your description right, your issue is with saving the history, which is a feature of your shell. I'm assuming you're using PowerShell, and in that case, I suggest the following:

  • Use PowerShell 7 instead of 5
  • In your Microsoft.PowerShell_profile.ps1 add Set-PSReadLineOption -AddToHistoryHandler $null which disables filtering of sensitive data from your history (if PowerShell thinks your line contains passwords, it won't save it to the history)
  • Otherwise, file an issue with the PowerShell folks over at https://github.com/PowerShell/PSReadLine
@lhecker commented on GitHub (Aug 19, 2025): Fortunately (for us) we're a terminal - we're basically a fancy text renderer, nothing more. If I read your description right, your issue is with saving the history, which is a feature of your shell. I'm assuming you're using PowerShell, and in that case, I suggest the following: * Use PowerShell 7 instead of 5 * In your `Microsoft.PowerShell_profile.ps1` add `Set-PSReadLineOption -AddToHistoryHandler $null` which disables filtering of sensitive data from your history (if PowerShell thinks your line contains passwords, it won't save it to the history) * Otherwise, file an issue with the PowerShell folks over at https://github.com/PowerShell/PSReadLine
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Aug 24, 2025):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Aug 24, 2025): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23530