[FIX] Restore codex_local recovery fallbacks #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/PIX-7715-codex-local-recovery-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что исправлено
--searchи--jsonтеперь переиспользуются и после forced fresh-session retryparseCodexJsonlтеперь сохраняетtotal_cost_usd, usage изturn.failedи plain-stdout summary для downgrade без JSONLbuildCodexExecArgsнаучен отключать--jsonдля старых Codex CLIПроверка
pnpm exec vitest run packages/adapters/codex-local/src/server/parse.test.ts packages/adapters/codex-local/src/server/codex-args.test.ts packages/adapters/codex-local/src/server/execute.remote.test.ts server/src/__tests__/codex-local-execute.test.ts -t "propagates parsed total_cost_usd into the adapter result|re-applies search and json fallback retries after a stale resume session forces a fresh recovery run|captures cost and usage from failed turns when Codex aborts after reporting totals|falls back to plain stdout when JSONL streaming is unavailable|detects runtimes that reject the exec --json flag|can disable JSONL output for older recovery runtimes|retries once without --json when the installed Codex CLI rejects JSONL streaming"curl -fsS ${PAPERCLIP_API_URL:-http://127.0.0.1:3100}/api/health-> 200 / status=okКонтекст
Фикс нужен, чтобы recovery-цепочка не зависала на старых Codex CLI, которые отвергают
--searchили--json, особенно после сброса stale session и повторного старта без resume.