Process exists with code 1 if RDP session closes #22467

Open
opened 2026-01-31 08:14:18 +00:00 by claunia · 0 comments
Owner

Originally created by @NeilMacMullen on GitHub (Oct 30, 2024).

Windows Terminal version

1.21.2911.0

Windows build number

Win32NT 10.0.26100.0 Microsoft Windows NT 10.0.26100.0

Other Software

I was RDP'd into my work PC from home and switched focus to an existing Windows Terminal session running on the remote PC. The session had open tabs, all running powershell and I used a couple of them to issue commands, leaving them all at the prompt.

I put the home machine to sleep without explicitly closing the RDP session.

When I logged into the work PC at work, I discovered that all windows terminal tabs including one I had not used were showing the error

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

The screenshot below shows 2 distinct terminal sessions on the same machine. Every tab within these sessions shows the "process exited" method.

Image

The terminal tab will restart the powershell session if RETURN is pressed....

Image

Steps to reproduce

Still investigating.... possibly abnormal disconnect from RDP

Expected Behavior

Terminals should not exit processes simply because a remote session is lost.

Actual Behavior

Processes were exited

Originally created by @NeilMacMullen on GitHub (Oct 30, 2024). ### Windows Terminal version 1.21.2911.0 ### Windows build number Win32NT 10.0.26100.0 Microsoft Windows NT 10.0.26100.0 ### Other Software I was RDP'd into my work PC from home and switched focus to an existing Windows Terminal session running on the remote PC. The session had open tabs, all running powershell and I used a couple of them to issue commands, leaving them all at the prompt. I put the home machine to sleep without explicitly closing the RDP session. When I logged into the work PC at work, I discovered that _all_ windows terminal tabs including one I had not used were showing the error ``` [process exited with code 1 (0x00000001)] You can now close this terminal with Ctrl+D, or press Enter to restart. ``` The screenshot below shows 2 distinct terminal sessions on the same machine. Every tab within these sessions shows the "process exited" method. ![Image](https://github.com/user-attachments/assets/bf87ba79-5ce9-4468-b796-e76300a08668) The terminal tab will restart the powershell session if RETURN is pressed.... ![Image](https://github.com/user-attachments/assets/b351789f-73a9-4e56-90f7-82551faac502) ### Steps to reproduce Still investigating.... possibly abnormal disconnect from RDP ### Expected Behavior Terminals should not exit processes simply because a remote session is lost. ### Actual Behavior Processes were exited
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:14:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22467