[PR #1148] Dev/austdi/new cooked read #24504

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

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

State: closed
Merged: No


Summary of the Pull Request

CommandHistory becomes a std::shared_ptr. Minor changes in code and unit tests.
Some ctor has been modified.
There is not weak_ptr usage. Every times a shared_ptr is passed, its using the ref counter of the = operator. It prevents unexpected behaviour and hangs.

References

PR Checklist

  • Closes Fix AuditMode for BufferOut project (#1058)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
    No yet, I need to configure it.
  • Requires documentation to be updated
  • 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: #1058
    It is under discussion.

Detailed Description of the Pull Request / Additional comments

Previous commit was a mistake, it involves the migration to vs2019 and platform toolset v142. Forget about that.
Just take the H/CPP modifications.

Validation Steps Performed

Manuel test of running tab and ask for cmd and type command, and ask for history...

**Original Pull Request:** https://github.com/microsoft/terminal/pull/1148 **State:** closed **Merged:** No --- ## Summary of the Pull Request CommandHistory becomes a std::shared_ptr<CommandHistory>. Minor changes in code and unit tests. Some ctor has been modified. There is not weak_ptr usage. Every times a shared_ptr is passed, its using the ref counter of the = operator. It prevents unexpected behaviour and hangs. ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [X] Closes #1058 * [X] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed No yet, I need to configure it. * [ ] Requires documentation to be 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: #1058 It is under discussion. <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments Previous commit was a mistake, it involves the migration to vs2019 and platform toolset v142. Forget about that. Just take the H/CPP modifications. <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed Manuel test of running tab and ask for cmd and type command, and ask for history...
claunia added the pull-request label 2026-01-31 09:03:40 +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#24504