Extension to manage tabs: changing tab index is via Tabs API is unpredictable
-
romasio last edited by
So this is a weird one related to
chrome.tabsAPI through which I am attempting to reorder tabs.I have workspaces with 50+ tabs and I am not sure if workspace or tabs got into some bad disorganized state behind the scenes, but when I attempt to move last tab by one index up, i.e.
await chrome.tabs.move(ourTab.id, { index: ourTab.index - 1 });it stays in the place, index does not change.
If I randomly attempt to move it to
ourTab.index - 10, it does move, but not by 10 positions/tabs, but only by a few...- In some workspaces it works fine, in some it does not.
- My workspace has no tab groups.
- No pinned tabs.
- Listing out current workspace tab indices, it does not start from
0, but rather from8. - Extension has required
tabsandtabsGrouppermission. - Restarting browser makes no difference.
Opera One(version: 122.0.5643.150) (arm64)
Opera is up to date
Update stream:Stable
System:macOS Version 15.7.1 (Build 24G231) 15.7.1 arm64
Chromium version:138.0.7204.251Any ideas?