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

1. Fixed Outdated Regex (2 locations)

Before: /No complete \^%\$bridge/ (looking for old delimiter)
After: /No complete @bridge@/ (looking for new delimiter)
Impact: Parse errors now properly show "Run again" UI instead of silently failing

2. Removed History Unmarking (2 locations)

Removed: this.history.unmarkElement(el) from both cold start and already-processed branches
Why: Keeps commands marked in history to prevent auto-replay on reload
Behavior: "Run again" button executes immediately but doesn't remove the persistent marker
This commit is contained in:
rob 2025-10-09 17:52:17 +00:00
parent 9270695403
commit 956deb114a
1 changed files with 2 additions and 2 deletions

View File

@ -1842,7 +1842,7 @@
} catch (err) {
RC_DEBUG?.error(`Command parsing failed: ${err.message}`, { messageId });
this.updateState(messageId, COMMAND_STATES.ERROR);
if (/No complete \^%\$bridge/.test(err.message)) return;
if (/No complete @bridge@/.test(err.message)) return;
this.attachRetryUI(message.element, messageId);
UIFeedback.appendStatus(message.element, 'ERROR', { action: 'Command', details: err.message });
@ -1912,7 +1912,7 @@
RC_DEBUG?.error(`Command processing error: ${error.message}`, { messageId, duration });
this.updateState(messageId, COMMAND_STATES.ERROR);
const message = this.trackedMessages.get(messageId);
if (/No complete \^%\$bridge/.test(error.message)) return;
if (/No complete @bridge@/.test(error.message)) return;
if (message) {
this.attachRetryUI(message.element, messageId);
UIFeedback.appendStatus(message.element, 'ERROR', { action: 'Command', details: error.message });