Skip to content

Conversation

@hopleus
Copy link

@hopleus hopleus commented Oct 7, 2025

Previously, the logic for limiting openTabs relied on reverse() + splice(10, 1000) + reverse().
This worked only if the total number of open tabs never exceeded 1010.
If a user accumulated more than 1000 tabs (e.g. 1140 over a year of usage), the result would incorrectly keep 140 tabs instead of just the last 10.

This PR replaces that logic with a simpler and correct approach:

openTabs = openTabs.slice(-10);

@github-actions
Copy link

github-actions bot commented Oct 7, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2025

@hopleus
Copy link
Author

hopleus commented Oct 7, 2025

I have read the CLA Document and I hereby sign the CLA

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.

1 participant