Before submitting#
Area#
apps/web
Steps to reproduce#
On Windows, start T3 from a parent process whose environment has the standard Path.
Open a thread's project with Open in Cursor.
In that window, build or debug a solution that contains a C++ (.vcxproj) project with Visual Studio MSBuild. In our case this was a .NET solution with a native project.
Expected behavior#
the build succeeds, as it does in a Cursor window that wasn't opened from T3.
Actual behavior#
Microsoft.CppCommon.targets(643,5): error MSB6001: Invalid command line switch for "CL.exe".
System.ArgumentException: Item has already been added. Key in dictionary: 'PATH' Key being added: 'Path'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Specialized.StringDictionaryWithComparer.Add(String key, String value)
at System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables()
at Microsoft.Build.Utilities.ToolTask.GetProcessStartInf
The MSBuild worker processes (/nodeReuse:true) started from that window keep the PATH name. So the failure continues after the window is closed, until you run dotnet build-server shutdown.
Impact#
Major degradation or frequent failure
Version or commit#
T3 Code 0.1.12-nightly.20261123.5151 on Windows 11 (build 26200), started with t3 serve
Environment#
No response
Logs or stack traces#
We read the environment variable names of the running processes (names only, not values):
Process Name of the path variable
Parent that starts t3 serve (Node)
Path
t3.exe serve
PATH
Cursor launches made by T3's "Open in Cursor"
PATH
MSBuild workers started from that Cursor window
PATH
Cursor windows, and builds, not started from T3
Path
The parent passes Path unchanged, so the rename happens inside T3. That could be in T3's own environment handling, such as merging or refreshing PATH from the shell, or in the runtime.
Screenshots, recordings, or supporting files#
No response
Workaround#
Suggested fix
On Windows, treat environment variable names case-insensitively, and keep the existing name when updating PATH: write to whichever key already exists (usually Path) instead of setting PATH. Also make sure environments passed to child processes never contain two keys that differ only in case.
Workaround
Open the project in Cursor some other way, such as File > Open Folder or Open Workspace, or from a normal terminal. Then run dotnet build-server shutdown to stop the MSBuild workers that already carry PATH.