Skip to content

fix(config): skip optional hardening for non-directory homes - #7688

Open
luvs01 wants to merge 5 commits into
lidge-jun:codex/catalog-heal-hardlink-path-20261023from
luvs01:fix/config-nondirectory-hardening
Open

luvs01 wants to merge 5 commits into
lidge-jun:codex/catalog-heal-hardlink-path-20261023from
luvs01:fix/config-nondirectory-hardening

Conversation

@luvs01

@luvs01 luvs01 commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

When OPENCODEX_HOME points to a regular file, an account-store read can start optional directory hardening before a later profile check rejects the path. Check that the target is a directory before starting chmod or an ACL task. Keep directory symlinks/junctions supported, preserve the real-home guard, and leave required write-path validation unchanged.

Drain the two account suites' configuration-hardening work before removing their fixtures, using the original fixture directory even when a case changes OPENCODEX_HOME. Assertions, timeouts and the shared teardown helper's ordering remain unchanged.

Head d06cf9b3d5b55fc8dd024dc2854e5d0b778d2bd4 normally merges the current #7610 parent cf72010f480d607bdf390717c28f62be240b0981 into previous child a554968b. All five child-specific blobs are byte-identical to that child; the parent refresh does not change this guard or its callers. Retarget to dev after the parent lands.

Verification

On this merged head, official Windows Bun 1.4.4, using the existing CI timeout contract:

  • codex-account-slot-identity, codex-auth-headless-accounts and windows-config-read-acl-memo: 33 passed / 1 skipped / 0 failed. The inaccessible-default-home case explicitly excludes Windows; it is not counted as passing.
  • TypeScript, structure/index, five-file privacy/size and committed-diff checks passed.
  • Every native validation process exited 0 with both output streams complete and no remaining direct child. Isolated fixtures were cleaned. Existing dependencies were reused without installation.

The unchanged child at a554968b previously passed full cross-platform run 40109666635, attempt 2: 28 successful jobs / 6 conditional skips. That is historical evidence for a554968b, not a new-head full run. Earlier cancellations/timeouts and the older macOS hardlink failure are retained separately; this guard is not claimed to explain or repair them. #7610 owns the related catalog path-identity change.

Exact-head automatic CI 40227402907 passed. The regular-file guard does not solve concurrent path-replacement races or establish broad native permission guarantees. Merge order remains parent-first. No live runtime, account, certificate or GUI changed.

Checklist

  • Current parent and unchanged child contract verified.
  • Focused tests and source gates passed on the merged head.
  • Platform exclusions and historical CI scope recorded.
  • Final-head automatic CI.
  • Maintainer review.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 2
  • ^dev$
  • ^preview$

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Oct 24, 2026
@luvs01
luvs01 changed the base branch from dev to codex/catalog-heal-hardlink-path-20261023 October 24, 2026 16:01
@luvs01
luvs01 marked this pull request as ready for review October 24, 2026 20:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant