Skip to content

fix: read previous history snapshot when syncing manual tab group edits#85

Open
jafin wants to merge 1 commit intoloilo:mainfrom
jafin:fix/tab-group-history-snapshot
Open

fix: read previous history snapshot when syncing manual tab group edits#85
jafin wants to merge 1 commit intoloilo:mainfrom
jafin:fix/tab-group-history-snapshot

Conversation

@jafin
Copy link

@jafin jafin commented Mar 19, 2026

Summary

  • useRefHistory stores the most recent entry at index [0], so the old code was always comparing the updated state to itself — the equality check always passed, silently preventing manual
    renames/recolors from ever syncing back to the extension configuration
  • This also fixes the downstream issue where changing a group's color from the Options page had no effect on existing Chrome tab groups, because the configuration and Chrome's actual tab group state had drifted out of sync

May resolve #84

useRefHistory stores the most recent (current) entry at index [0].
The lastUpdated watcher was reading [0] to find the "old" tab group
state, which always matched the updated state — causing the early
return to fire every time and preventing manual Chrome tab group
renames/recolors from ever syncing back to the configuration.

This mismatch also caused the superficial change handler to fail to
find Chrome tab groups by their old title+color when the user later
changed settings from the Options page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Adjusting a tab color / title in the options does not appear to reflect in the browser (Chrome) (0.021)

1 participant