fix: clarify code queue split-brain liveness

This commit is contained in:
Codex
2026-05-20 01:41:16 +00:00
parent b01907739c
commit ada6da3da6
11 changed files with 264 additions and 10 deletions
+15 -1
View File
@@ -32,7 +32,21 @@ export function coreInternalFetch(path: string, init?: { method?: string; body?:
const command = dockerCoreFetchCommand(path, init);
const result = runCommand(command, repoRoot);
if (result.exitCode !== 0) {
return { ok: false, exitCode: result.exitCode, stdoutTail: result.stdout.slice(-1200), stderrTail: result.stderr.slice(-1200) };
const codeQueueStableProxy = path.startsWith("/api/microservices/code-queue/");
return {
ok: false,
exitCode: result.exitCode,
stdoutTail: result.stdout.slice(-1200),
stderrTail: result.stderr.slice(-1200),
...(codeQueueStableProxy ? {
codeQueueObservationNote: "The stable /api/microservices/code-queue path could not be reached from this CLI container. This does not by itself mean Code Queue tasks are unevaluable or stopped. From the supervisor or main-server CLI environment, use the existing codex queues/tasks/task observation commands instead of treating this container-local proxy failure as liveness evidence.",
recommendedCommands: [
"bun scripts/cli.ts codex queues",
"bun scripts/cli.ts codex tasks --limit 20",
"bun scripts/cli.ts codex task <taskId>",
],
} : {}),
};
}
try {
return JSON.parse(result.stdout.trim()) as unknown;