mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 23:20:21 +00:00
fix(subagents): correct duration display showing 5-6x inflated runtime (#57739)
Merged via squash.
Prepared head SHA: 018bbbca4d
Co-authored-by: samzong <13782141+samzong@users.noreply.github.com>
Co-authored-by: frankekn <4488090+frankekn@users.noreply.github.com>
Reviewed-by: @frankekn
This commit is contained in:
@@ -345,7 +345,7 @@ export function buildSubagentList(params: {
|
||||
}),
|
||||
),
|
||||
);
|
||||
const runtime = formatDurationCompact(runtimeMs);
|
||||
const runtime = formatDurationCompact(runtimeMs) ?? "n/a";
|
||||
const label = truncateLine(resolveSubagentLabel(entry), 48);
|
||||
const task = truncateLine(entry.task.trim(), params.taskMaxChars ?? 72);
|
||||
const line = `${index}. ${label} (${resolveModelDisplay(sessionEntry, entry.model)}, ${runtime}${usageText ? `, ${usageText}` : ""}) ${status}${task.toLowerCase() !== label.toLowerCase() ? ` - ${task}` : ""}`;
|
||||
|
||||
Reference in New Issue
Block a user