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

Closed
krwq opened this issue May 16, 2024 · 4 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

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

@carlos-zamora
Copy link
Member

Thanks for filing! Yeah, some of the behaviors around this are non-intuitive. We'll be tracking it over there and marking this as a /dup of #16487.

Copy link
Contributor

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jul 3, 2024
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. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants