Skip to content

Commit 1ce9a0c

Browse files
committed
* Commands can be re-executed from history with their original queue parameter
1 parent 3c9ae9c commit 1ce9a0c

File tree

1 file changed

+7
-0
lines changed
  • openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender

1 file changed

+7
-0
lines changed

openc3-cosmos-init/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,13 @@ export default {
353353
if (command === '') {
354354
return
355355
}
356+
// Parse queue parameter if present (e.g., cmd("...", queue: "Foo"))
357+
// Reset queue to null first
358+
this.queueName = null
359+
const queueMatch = command.match(/queue:\s*"([^"]+)"/)
360+
if (queueMatch) {
361+
this.queueName = queueMatch[1]
362+
}
356363
// Remove the cmd("") wrapper
357364
let firstQuote = command.indexOf('"')
358365
let lastQuote = command.lastIndexOf('"')

0 commit comments

Comments
 (0)