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
+2 -1
View File
@@ -89,6 +89,7 @@ export interface UpdateQueueTaskAttemptInput {
}
export interface SaveRunnerJobInput {
id?: string;
runId: string;
commandId: string;
idempotencyKey?: string | null;
@@ -213,7 +214,7 @@ export class MemoryAgentRunStore implements AgentRunStore {
if (existing) return existing;
}
const at = nowIso();
const record: RunnerJobRecord = { ...input, id: newId("rjob"), idempotencyKey: input.idempotencyKey ?? null, serviceAccountName: input.serviceAccountName ?? null, createdAt: at, updatedAt: at };
const record: RunnerJobRecord = { ...input, id: input.id ?? newId("rjob"), idempotencyKey: input.idempotencyKey ?? null, serviceAccountName: input.serviceAccountName ?? null, createdAt: at, updatedAt: at };
this.runnerJobs.set(record.id, record);
return record;
}