Update src/ai-repo-commander.user.js

Manual reruns are explicit: keeping the fingerprint marked prevents surprise re-execution on refresh, but you can always click “Run again” to force it.
This commit is contained in:
rob 2025-10-09 18:11:51 +00:00
parent cafa26ebab
commit f341ffb39e
1 changed files with 0 additions and 6 deletions

View File

@ -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) {