fix: reset context selection counter on clear and session switch

This commit is contained in:
akay64 committed 2026-07-11 11:34:26 +04:00
1 parent 751fbc69d0
commit 834ff49816
1 file changed
+2
+2
View File
@@ -910,10 +910,12 @@ function _addNamedContextBlock(text){
function _removeNamedContextBlock(id){
_pendingSelections=_pendingSelections.filter(s=>s.id!==id);
if(!_pendingSelections.length)_selectionIdCounter=0;
_renderSelectionChips();
}
function _clearPendingSelections(){
_selectionIdCounter=0;
if(!_pendingSelections.length)return false;
_pendingSelections=[];
_renderSelectionChips();