fix: load Code Agent traces through REST resource

This commit is contained in:
lyon
2026-06-16 21:57:51 +08:00
parent 70687cc066
commit 2679b1f14e
32 changed files with 201 additions and 176 deletions
@@ -654,7 +654,7 @@ export async function steerAgentRunChatTurn({ traceId, currentResult = null, par
sessionId: safeSessionId(mapped.sessionId ?? params.sessionId) || null,
threadId: safeOpaqueId(mapped.threadId ?? params.threadId) || null,
resultUrl: `/v1/agent/chat/result/${encodeURIComponent(traceId)}`,
traceUrl: `/v1/agent/chat/trace/${encodeURIComponent(traceId)}`,
traceUrl: `/v1/agent/traces/${encodeURIComponent(traceId)}`,
agentRun: {
...agentRun,
steerCommandId,
@@ -880,7 +880,7 @@ function buildAgentRunCreateRunInput({ params, env, traceId, backendProfile, ses
kind: "hwlab-cloud-api",
traceId,
resultUrl: `/v1/agent/chat/result/${encodeURIComponent(traceId)}`,
traceUrl: `/v1/agent/chat/trace/${encodeURIComponent(traceId)}`,
traceUrl: `/v1/agent/traces/${encodeURIComponent(traceId)}`,
valuesPrinted: false
}
};