fix: export AgentRun read refresh guard

This commit is contained in:
lyon
2026-06-19 04:57:15 +08:00
parent 928277ddbb
commit 5e40d5f338
2 changed files with 2 additions and 1 deletions
@@ -496,7 +496,7 @@ function agentRunCommandResultSyncRequired(mapped = {}, eventsResponse = null) {
return Boolean(agentRunTerminalStatusFromEvents(eventsResponse?.events));
}
function agentRunTerminalResultRefreshSatisfied(mapped = {}, traceId = null) {
export function agentRunTerminalResultRefreshSatisfied(mapped = {}, traceId = null) {
const safeId = safeTraceId(traceId ?? mapped?.traceId);
const agentRun = mapped?.agentRun && typeof mapped.agentRun === "object" ? mapped.agentRun : null;
const traceSummary = mapped?.traceSummary && typeof mapped.traceSummary === "object" ? mapped.traceSummary : null;