You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guards project-scoped AGENTS.md writes during rtk init --codex with the existing symlink containment check, failing closed with the resolved target named in the error when AGENTS.md is a symlink pointing outside the project. Adds a Unix regression test proving an externally-targeted symlink is rejected and left unchanged.
Thanks for this. #4269 covers the Codex AGENTS.md case as part of one policy for every project write: a project file that resolves outside the project is named first, then --auto-patch writes it, the default mode asks, and --no-patch or a non-interactive run refuses it (the warning #4156 asks for), rather than refusing it outright. It is built on the split src/hooks/init/ modules, where this PR's init.rs change no longer applies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AGENTS.mdwrites with the existing symlink containment check.Test plan
cargo fmt --all && cargo clippy --all-targets && cargo testrtk <command>output inspecteddevelop; they are unrelated to this change.Fixes #4156