Search Issue Tracker
Active
Votes
1
Found in
1.5.0-pre.2
Issue ID
UUM-134513
Regression
No
AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
Steps to reproduce:
1. Create a new project
2. Install com.cysharp.zstring via git URL: https://github.com/Cysharp/ZString.git?path=src/ZString.Unity/Assets/Scripts/ZString
3. Verify the project compiles successfully
4. Install com.unity.ai.assistant@1.6.0-pre.2 via Package Manager
5. Observe: ~100+ compilation errors appear, all CS0103: The name 'Unsafe' does not exist in the current context, originating from ZString source files (FormatHelper.cs, ZString.Concat.cs, DecimalEx.cs, BitOperations.cs, InternalSpanEx.cs, Shims.cs, StringBuilder.AppendJoin.cs, etc.)
6. Uninstall com.unity.ai.assistant -> observe no more compilation errors
Actual result: The AI Assistant's bundled System.Runtime.CompilerServices.Unsafe.dll hijacks the assembly identity, preventing auto-referenced assemblies from resolving the Unsafe type. This breaks any package that uses Unsafe without explicit precompiled references
Expected results: Installing com.unity.ai.assistant should not break compilation of other packages. The framework-provided System.Runtime.CompilerServices.Unsafe type should remain accessible to assemblies using auto-referencing)
Reproducible with: AI Assistant 1.6.0 - pre.2 (6000.0.68f1, 6000.3.8f1, 6000.4.0b9, 6000.5.0a1)
Not reproducible with: AI Assistant 1.6.0 - pre.2 (6000.5.0a2, 6000.5.0a7)
Fixed in: 6000.5.0a2
Environment tested: Windows 11 24H2
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GameObjects made using "GameObject.CreatePrimitive" appear pink in the Player when the default material is used
- “FMOD failed to set the software format to the custom sample rate…” warnings are thrown as System Sample Rate value is being changed in Audio section of Project Settings window
- VFX Marquee selection does match the visual indicator
- “Invalid AABB aabb” errors are spammed when “Infinity” value is entered in Collider Component fields
- Editor Role does not sync with the MPPM Play Mode Scenario Role when entering Play mode
leandrobalico
Feb 24, 2026 21:58
The same issue happened here with AI Assistant 1.7.0 - pre.1.