Skip to content

chore(arg0): advisory-lock janitor for codex tmp paths#10039

Merged
viyatb-oai merged 5 commits intomainfrom
codex/viyatb/arg0-path2-janitor-locks
Feb 3, 2026
Merged

chore(arg0): advisory-lock janitor for codex tmp paths#10039
viyatb-oai merged 5 commits intomainfrom
codex/viyatb/arg0-path2-janitor-locks

Conversation

@viyatb-oai
Copy link
Collaborator

@viyatb-oai viyatb-oai commented Jan 27, 2026

Description

What changed

  • Switch the arg0 helper root from ~/.codex/tmp/path to ~/.codex/tmp/path2
  • Add Arg0PathEntryGuard to keep both the TempDir and an exclusive .lock file alive for the process lifetime
  • Add a startup janitor that scans path2 and deletes only directories whose lock can be acquired

Tests

  • cargo clippy -p codex-arg0
  • cargo clippy -p codex-core
  • cargo test -p codex-arg0
  • cargo test -p codex-core

@viyatb-oai viyatb-oai marked this pull request as ready for review January 27, 2026 23:25
@viyatb-oai viyatb-oai requested a review from bolinfest January 27, 2026 23:25
Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2612b0d23

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 01db396790

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link
Collaborator

@bolinfest bolinfest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some nits, but thanks for the thoughtful implementation!

@viyatb-oai viyatb-oai force-pushed the codex/viyatb/arg0-path2-janitor-locks branch from b909268 to 0489ee4 Compare February 3, 2026 07:52
@viyatb-oai viyatb-oai enabled auto-merge (squash) February 3, 2026 20:09
@viyatb-oai viyatb-oai merged commit 08926a3 into main Feb 3, 2026
69 of 74 checks passed
@viyatb-oai viyatb-oai deleted the codex/viyatb/arg0-path2-janitor-locks branch February 3, 2026 21:38
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants