Import `project_doc_fallback_filenames` from the reviewed checkout

Đang mở
#61 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, typescript
Lĩnh vực
ci-cd

Hướng nghiên cứu

Start with the setup step that handles $GITHUB_WORKSPACE/.codex/config.toml and $CODEX_HOME/config.toml, and see how codex-config is currently merged. Add a narrow import that copies only project_doc_fallback_filenames, validated as an array of filenames, and skips it when the key is already defined, including an explicit []. Done means fresh, resumed, and forked sessions read the fallback, and a checkout that defines mcp_servers still starts none of its servers. This touches the trust boundary, so get maintainer review before merging.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Codex 0.169.0 treats the reviewed checkout as untrusted, so it skips the checkout's .codex/config.toml. That is the right default for mcp_servers, hooks, and other executable settings, but it also drops project_doc_fallback_filenames, which is just data. A repository that keeps its instructions in CLAUDE.md and selects it through that fallback now gets no project docs during review.

Reproduced on 0.169.0 in an untrusted directory whose .codex/config.toml sets project_doc_fallback_filenames = ["CLAUDE.md"]:

  • codex exec --dangerously-bypass-approvals-and-sandbox ... prints warning: Untrusted project-local configuration is disabled and does not read the fallback.
  • codex exec -c 'project_doc_fallback_filenames=["CLAUDE.md"]' ... does read it, while the checkout's MCP command and Stop hook stay disabled.

Proposed fix: during setup, parse $GITHUB_WORKSPACE/.codex/config.toml, accept only an array of valid filenames, and prepend that key to $CODEX_HOME/config.toml when codex-config does not already define it (an explicit [] counts as defined). Import only this key. Keep mcp_servers, hooks, model settings, and every other executable setting disabled.

Acceptance: fresh, resumed, and forked sessions all see the fallback; a checkout that defines an MCP server still does not start it.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
1 giờ 39 phút
Pull request đã merge (30 ngày)
84

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của promplate/code-review

Tất cả issue của promplate/code-review

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.