diff --git a/src/ai-repo-commander.user.js b/src/ai-repo-commander.user.js index 417e4cf..1217d0b 100644 --- a/src/ai-repo-commander.user.js +++ b/src/ai-repo-commander.user.js @@ -1656,11 +1656,8 @@ preview: cmdText.slice(0, 80) }); - // DO NOT markElement() here — only mark when we actually execute attachRunAgainUI(el, () => { el.dataset.aiRcProcessed = '1'; - // Clear any accidental mark just in case - this.history.unmarkElement(el); const id = this.getReadableMessageId(el); const hit2 = this.findCommandInCodeBlock(el); @@ -1684,9 +1681,6 @@ attachRunAgainUI(el, () => { el.dataset.aiRcProcessed = '1'; - // Clear from history so it can run again - this.history.unmarkElement(el); - const id = this.getReadableMessageId(el); const hit2 = this.findCommandInCodeBlock(el); if (hit2) {