fix: slash commands clean /command + cache-bust Forge iframe
CI / lint (push) Failing after 5s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in -3s

Bug 1: selectSlashAction now strips /command text before executing. Bug 2: Forge URL includes _ts=Date.now() to prevent cache.
This commit is contained in:
2026-06-10 08:59:58 -04:00
parent 89b0a5a024
commit 8cf7b55747
3 changed files with 34 additions and 3 deletions
+7
View File
@@ -784,6 +784,13 @@ body { font-family: var(--sans); background: var(--bg); color: var(--text); heig
function getVisibleSlash() { return slashItems.filter(function(i) { return i.style.display !== 'none'; }); }
function selectSlashAction(action) {
// Clean up the /command text from the current line
var line = getLine();
var m = line.text.match(/^\/\S*\s*/);
if (m) {
ta.value = val().substring(0, line.start) + val().substring(line.start + m[0].length);
setPos(line.start);
}
hideSlash();
// Handle QI-specific actions
if (action && action.indexOf('mermaid-') === 0) {