fix: keep steer short connection running

This commit is contained in:
Codex Agent
2026-06-06 16:52:32 +08:00
parent 21b66b28cc
commit 263bbbb159
6 changed files with 54 additions and 3 deletions
+3 -1
View File
@@ -1336,8 +1336,10 @@ export async function handleCodeAgentSteerHttp(request, response, options) {
options,
traceStore
});
await recordCodeAgentSessionOwner({ payload: currentResult, params: { ...params, traceId, ownerUserId: options.actor?.id, ownerRole: options.actor?.role }, options, status: "running" });
sendJson(response, 202, payload);
setImmediate(() => {
void recordCodeAgentSessionOwner({ payload: currentResult, params: { ...params, traceId, ownerUserId: options.actor?.id, ownerRole: options.actor?.role }, options, status: "running" });
});
} catch (error) {
traceStore.append(traceId, {
type: "backend",