mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:44:31 +00:00
test: cover subagent helpers
This commit is contained in:
@@ -61,7 +61,7 @@ function resolveSubagentTarget(
|
||||
const sorted = sortSubagentRuns(runs);
|
||||
return { entry: sorted[0] };
|
||||
}
|
||||
const sorted = sortRuns(runs);
|
||||
const sorted = sortSubagentRuns(runs);
|
||||
if (/^\d+$/.test(trimmed)) {
|
||||
const idx = Number.parseInt(trimmed, 10);
|
||||
if (!Number.isFinite(idx) || idx <= 0 || idx > sorted.length) {
|
||||
|
||||
Reference in New Issue
Block a user