Repository navigation
Commit 4177f00
committed
fix: use scoped ID for sidebarThread map to avoid cross-environment collisions
The sidebarThreadById map was keyed by raw thread.id, which could
collide when threads from different environments share the same
ThreadId. Renamed to sidebarThreadByScopedId and keyed by the
environment-scoped ID (via getThreadScopedId) for consistency with
other scoped maps in the sidebar. Updated handleMultiSelectContextMenu
to search by raw ID through the map values since the selection store
still uses raw ThreadIds.1 parent bd017a0 commit 4177f00
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
789 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| |||
1138 | 1144 | | |
1139 | 1145 | | |
1140 | 1146 | | |
1141 | | - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1142 | 1154 | | |
1143 | 1155 | | |
1144 | 1156 | | |
| |||
1169 | 1181 | | |
1170 | 1182 | | |
1171 | 1183 | | |
1172 | | - | |
| 1184 | + | |
1173 | 1185 | | |
1174 | 1186 | | |
1175 | 1187 | | |
| |||
0 commit comments