codex - 💡(How to fix) Fix 使用--add-dir添加目录后,并没有真是增加该目录的写权限 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19228Fetched 2026-04-24 05:58:20
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.123.0

What subscription do you have?

chatgpt plus

Which model were you using?

gpt-5.4

What platform is your computer?

Linux 6.17.0-20-generic x86_64 x86_64

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

<img width="931" height="579" alt="Image" src="https://github.com/user-attachments/assets/cfc5d02d-90c5-4a2f-8073-186dfa11b76f" />

What steps can reproduce the bug?

Uploaded thread: 019dbc98-ab00-7141-afad-d31be67dddeb

What is the expected behavior?

按照文档提示:使用--add-dir会增加目录外的其他目录,使其具有写权限

Additional information

No response

extent analysis

TL;DR

The issue may be resolved by re-examining the usage of the --add-dir option with the Codex CLI.

Guidance

  • Review the documentation for the --add-dir option to ensure it is being used correctly, as the expected behavior is to grant write permissions to directories outside of the specified directory.
  • Verify that the directory path provided to the --add-dir option is correct and properly formatted.
  • Check the Codex CLI version (0.123.0) for any known issues or updates related to the --add-dir option.
  • Test the command with a different directory or permissions setup to isolate the issue.

Notes

The provided image and uploaded thread may contain additional context, but without access to these resources, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Re-examine and adjust the usage of the --add-dir option according to the documentation, as this is the most likely cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING