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

New instance behavior: Attach to the most recently used window doesn't work #17015

Closed
stanio opened this issue Apr 4, 2024 · 4 comments · Fixed by #18215
Closed

New instance behavior: Attach to the most recently used window doesn't work #17015

stanio opened this issue Apr 4, 2024 · 4 comments · Fixed by #18215
Labels
Area-Windowing Window frame, quake mode, tearout In-PR This issue has a related PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Needs-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal.
Milestone

Comments

@stanio
Copy link

stanio commented Apr 4, 2024

Windows Terminal version

1.19.10821.0

Windows build number

10.0.19045.4170

Other Software

Using Clink v1.6.10.d5dce0 with Command Prompt (cmd) – unsure if it makes any difference.

Steps to reproduce

  1. Open a new Windows Terminal window (close any previously opened)
  2. Ensure Settings / Startup / New instance behavior: Attach to the most recently used window
  3. Run a console app/command (f.e. Win+R: cmd /c pause)

Expected Behavior

A new tab in the existing Windows Terminal window is opened to handle the console application.

Actual Behavior

A new Windows Terminal window is opened to handle the console application.

@stanio stanio 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 Apr 4, 2024
Copy link

github-actions bot commented Apr 4, 2024

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.

@zadjii-msft
Copy link
Member

At any point, is anything here running as admin? Or a quake mode window/?

(#15509 and #16487 both have instances where I think defterm plays weird with the remoting we need for glomming)

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Apr 4, 2024
@stanio
Copy link
Author

stanio commented Apr 4, 2024

Not running as admin (elevated) and no quake-mode window – I've verified there's no "WindowsTerminal.exe" process in the Task Manager details, before launching the Terminal, and Win+~ doesn't open a quake-mode window, at this point.

All console applications/commands open in the same new window, if I keep it open otherwise – that's what I'm currently doing as a workaround: Start Terminal using Win+R: cmd /c pause, then I open a new tab use just that window. All console apps open in that same window, then.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Apr 4, 2024
@stanio
Copy link
Author

stanio commented Apr 6, 2024

All console apps open in that same window, then.

Ah, and then other instances like "Open in Terminal" Explorer context menu start opening in a new window. 😕

@carlos-zamora carlos-zamora added Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Product-Terminal The new Windows Terminal. Area-Windowing Window frame, quake mode, tearout and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Attention The core contributors need to come back around and look at this ASAP. labels Apr 10, 2024
@carlos-zamora carlos-zamora added this to the Backlog milestone Apr 10, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the In-PR This issue has a related PR label Dec 12, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Tag-Fix Doesn't match tag requirements label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Windowing Window frame, quake mode, tearout In-PR This issue has a related PR Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Repro We can't figure out how to make this happen. Please help find a simplified repro. Needs-Tag-Fix Doesn't match tag requirements Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants