workspace: Deduplicate navigation history entries (#44504)

Closes #43545

Remove existing entries for an item before adding new ones to the
navigation history. This prevents Go Back (Ctrl-O) from bouncing between
the same items repeatedly.

Navigation pattern A->B->A->B->C now creates history [A,B,C] instead of
[A,B,A,B,C], making backward navigation more efficient.

Release Notes:

- N/A
95852d4c71Ignacio committed on 3/25/2026, 2:13:44 AM· committed by GitHubparentddc327f
7 files changedLine totals unavailable