Closed faameunier closed 3 years ago
Do you think we can add it before tomorrow night in the quick release?
Still not sure what's the best way to do it... i want to be sure it can't lead to the current active tab deletion in the future
From: Merlec notifications@github.com Sent: Tuesday, June 2, 2020 11:39:35 PM To: faameunier/tk-chrome tk-chrome@noreply.github.com Cc: Francois MEUNIER faa.meunier@gmail.com; Assign assign@noreply.github.com Subject: Re: [faameunier/tk-chrome] [Policy] The effective number of opened tab is settings + 1 (#82)
Do you think we can add it before tomorrow night in the quick release?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://github.com/faameunier/tk-chrome/issues/82#issuecomment-637820984, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHEBCGXADAVR5DT3YIHSV6DRUVWRPANCNFSM4NQQTLDQ.
not a problem in practice
@MerlinLaffitte Reopening this one in link with #102
We should find a better fix as this behaviour creates a reverse problem when you create a new tab. Also, can we properly define a test case and expected behavior?
This is my understanding so far:
This in practice a bit harder to reproduce due to the scorer implementation. I think we can make a workaround by extending the soft protection envelope delay of the scorer
it is not a bug, it's a feature
The safety hack in the policy will not remove a tab if we have an excess of protected tabs. The active tab is always protected by the scorer.
When we have 6 tabs open, and the active tab is unpinned (95% of the time), the safety hack will block and no tabs will be closed.
Fix : change the safety hack condition to minus 1 ? Could be integrated with #70