Environment variables not updating when opened as wt.exe #21373

Closed
opened 2026-01-31 07:42:48 +00:00 by claunia · 3 comments
Owner

Originally created by @SainoNamkho on GitHub (Mar 10, 2024).

Windows Terminal version

1.12.10983.0

Windows build number

10.0.22621.1848

Other Software

No response

Steps to reproduce

  1. Set system default terminal app to Windows Terminal.
  2. Open terminal.
  3. Change some environment variables
  4. Open a new instance or terminal by the same method of opening the previous instance.

Expected Behavior

The environment variables should be updated in the new windows.

Actual Behavior

The result is

Method to open Terminal Environment variable changed
win+r then wt.exe ✔️
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.12.10983.0_x64__8wekyb3d8bbwe\wt.exe
Press Win key to search wt
Win key search cmd ✔️
Open Terminal in Win+X menu ✔️
Open Terminal in shell:appsfolder ✔️
By click the item in start menu ✔️
Originally created by @SainoNamkho on GitHub (Mar 10, 2024). ### Windows Terminal version 1.12.10983.0 ### Windows build number 10.0.22621.1848 ### Other Software _No response_ ### Steps to reproduce 1. Set system default terminal app to Windows Terminal. 2. Open terminal. 3. Change some environment variables 4. Open a new instance or terminal by the same method of opening the previous instance. ### Expected Behavior The environment variables should be updated in the new windows. ### Actual Behavior The result is | Method to open Terminal | Environment variable changed | |-----------------------------|-----------------------------------| | win+r then `wt.exe` | ✔️| | `C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.12.10983.0_x64__8wekyb3d8bbwe\wt.exe` | ❌| | Press Win key to search `wt` | ❌| | Win key search `cmd` | ✔️| | Open Terminal in Win+X menu | ✔️| | Open Terminal in `shell:appsfolder` | ✔️ | | By click the item in start menu | ✔️ |
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 07:42:48 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 10, 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!

Closed similar issues:

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

@github-actions[bot] commented on GitHub (Mar 10, 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! ### Closed similar issues: - [Environment variable references in environment variables are not resolved with wt.exe (#15191)](https://github.com/microsoft/terminal/issues/15191), similarity score: 0.85 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner

@zadjii-msft commented on GitHub (Mar 11, 2024):

Can you try an updated version of the Terminal/? 1.12 came out years ago, and we've done a lot of work in the 1.18-1.20 timeframe to redo how we handle environment variables.

@zadjii-msft commented on GitHub (Mar 11, 2024): Can you try an updated version of the Terminal/? 1.12 came out _years_ ago, and we've done a lot of work in the 1.18-1.20 timeframe to redo how we handle environment variables.
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Mar 15, 2024):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Mar 15, 2024): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21373