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:
parent
cafa26ebab
commit
f341ffb39e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue