Skip to content

Retry Codex trust config writes on Windows locks - #4710

Merged
Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/investigate-codex-duplicate
Jun 5, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
Jinwoo-H/investigate-codex-duplicate

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reuse the existing Windows retry/backoff helper for Codex runtime config.toml trust writes.
  • Retry both the .bak rotation copy and final atomic rename, which can hit EPERM/EBUSY when multiple Codex launches touch the shared runtime home.
  • Add coverage for the exported retrying copy/rename helpers.

Investigation

Validation

  • pnpm exec vitest run --config config/vitest.config.ts src/main/codex-accounts/fs-utils.test.ts src/main/codex/config-toml-trust.test.ts
  • pnpm exec vitest run --config config/vitest.config.ts src/main/codex/hook-service.test.ts -t "repairs duplicate managed SessionStart trust tables|mirrors system Codex config while preserving runtime hook trust on hook install|cleans duplicate Codex hook representations while keeping status hooks in runtime CODEX_HOME"
  • pnpm exec tsc --project config/tsconfig.cli.json --pretty false
  • pnpm exec oxlint src/main/codex/config-toml-trust.ts src/main/codex-accounts/fs-utils.ts src/main/codex-accounts/fs-utils.test.ts
  • git diff --check

Made with Orca

@Jinwoo-H
Jinwoo-H merged commit f0ea7a3 into main Jun 5, 2026
2 checks passed
@Jinwoo-H
Jinwoo-H deleted the Jinwoo-H/investigate-codex-duplicate branch June 5, 2026 19:43
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant