fix: trace codex stdio lifecycle

This commit is contained in:
lyon
2026-06-20 15:32:46 +08:00
parent da2e9807bc
commit e53e7c2c3c
9 changed files with 423 additions and 28 deletions
+4
View File
@@ -198,6 +198,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
mutation: true,
runId: run.id,
commandId,
runnerJobId: render.runnerJobId,
attemptId: render.attemptId,
runnerId: render.runnerId,
namespace: render.namespace,
@@ -213,6 +214,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
runner: {
runId: run.id,
commandId,
runnerJobId: render.runnerJobId,
attemptId: render.attemptId,
runnerId: render.runnerId,
backendProfile: run.backendProfile,
@@ -250,6 +252,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
},
} satisfies JsonRecord;
const saved = await options.store.saveRunnerJob({
id: render.runnerJobId,
runId: run.id,
commandId,
idempotencyKey: idempotencyKey ?? null,
@@ -267,6 +270,7 @@ export async function createKubernetesRunnerJob(options: { store: AgentRunStore;
await options.store.appendEvent(run.id, "backend_status", {
phase: "runner-job-created",
commandId,
runnerJobId: saved.id,
attemptId: saved.attemptId,
runnerId: saved.runnerId,
namespace: saved.namespace,