fix(tabs): COD-358 re-query tab after rename cancel

This commit is contained in:
Aamer Akhter
2026-08-23 13:40:42 -04:00
parent 1795a138b3
commit c9ea8bbac5
2 changed files with 14 additions and 2 deletions
+2 -2
View File
@@ -1788,11 +1788,11 @@ Object.assign(CodemanApp.prototype, {
const session = this.sessions.get(sessionId);
if (!session) return;
this._activeRename?.cancel();
const tabName = document.querySelector(`.tab-name[data-session-id="${sessionId}"]`);
if (!tabName) return;
this._activeRename?.cancel();
// Prevent tab re-renders from destroying the input while renaming
this._inlineRenameActive = true;
tabName.classList.add('tab-name-renaming');