Skip to content

fix: check the agent upload directory after path resolution - #4323

Merged
marcuswood-oai merged 1 commit into
mainfrom
codex/agent-directory-identity
Nov 24, 2026
Merged

marcuswood-oai merged 1 commit into
mainfrom
codex/agent-directory-identity

Conversation

@marcuswood-oai

Copy link
Copy Markdown
Contributor

Changes being requested

Compare the selected directory with the resolved directory before selecting files. Reject a change of identity and keep support for symlinks in parent paths. This check is limited to path resolution.

Additional context & links

Sync and async regression tests verify that a change during path resolution stops preparation before any upload. Both failed before the change. The existing parent alias tests also passed. The agent streaming suite had 383 passes and 14 skips. Ruff and ty passed for both files.

@marcuswood-oai
marcuswood-oai requested a review from a team as a code owner November 24, 2026 00:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T00:20:20.422544Z 2704a3f PR opened
🔒 Security Review ✅ Completed 2026-11-24T00:20:49.958259Z 2704a3f PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@markstuart-oai markstuart-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The directory check now compares the selected directory’s identity with the resolved path before selecting files. This preserves parent symlink support. The new sync and async cases verify that replacing the selected directory during resolution stops preparation before upload.

Static review only. Hosted checks were still running.

@marcuswood-oai
marcuswood-oai added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit bc02da4 Nov 24, 2026
26 checks passed
@marcuswood-oai
marcuswood-oai deleted the codex/agent-directory-identity branch November 24, 2026 00:30
@openai-sdks openai-sdks Bot mentioned this pull request Nov 24, 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.

2 participants