Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open windows from a previous session should not re-run processes or have ability to selectively stop that #17275

Open
krwq opened this issue May 16, 2024 · 2 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@krwq
Copy link
Member

krwq commented May 16, 2024

Windows Terminal version

1.19.11213.0

Windows build number

10.0.22631.3593

Other Software

cmd.exe with any app running as startup

Steps to reproduce

  • Enable Open windows from a previous session and optionally auto-start when logging in
  • Have any console app server running as auto-start (i.e. entry under HKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run - in my case it directly points to the exe file)
  • wait until app loads
  • restart PC/re-log in
  • start Windows terminal (if not auto-starting)

Observe how app is re-run through both Windows Terminal and Windows - in case of i.e. https server it will frequently show message about port being in use in one of the instances

Expected Behavior

I'd expect either of following:

  • do not restore apps started as part of login
  • see only environment for the app (i.e. terminal could still open with all environmental variables but it would only have a prompt allowing me to start the app with pressing ENTER)
  • have ability to selectively not restore it (i.e. right click and checkbox: Ignore this process for session restore or similar)
  • any other way to prevent from

Actual Behavior

Two instances of the app are run - in some cases it will lead to crashes. If you keep on restarting and app doesn't close you will have incrementally more apps start

@krwq krwq added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels May 16, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@krwq
Copy link
Member Author

krwq commented May 16, 2024

This looks like it might want to be addresses as part of #16487 but will let maintainers decide if it's same or separate issue as this one is not about multiple instances of Windows terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

1 participant