From 956deb114a8b9556361d1e3fd72fc097bfac9e4e Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 9 Oct 2025 17:52:17 +0000 Subject: [PATCH] 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 --- src/ai-repo-commander.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ai-repo-commander.user.js b/src/ai-repo-commander.user.js index b99ef4e..d54e7c1 100644 --- a/src/ai-repo-commander.user.js +++ b/src/ai-repo-commander.user.js @@ -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 });