This happens to all properties with any AssetImporter; not just Sprite or TextureImporter. Importing an .fbx or .mp3 has the same issues.
How to reproduce:
1. Create a new project using the “Universal 2D” template
2. In the menu bar, select “Window → General → Undo History”
3. In the Project window, create a new 2D sprite
4. Select the created sprite
5. In the Inspector, change the Sprite Mode to “Single”
6. Observe the Undo History window
Actual result: The name of the sprite is not show in the Undo History window
Expected result: The name of the sprite is show in the Undo History window
Reproducible with: 2023.1.0a3, 6000.0.71f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Issue reproduces when modifying any of the sprite options shown in the Inspector