github kenryu42/cc-safety-net v1.0.2

6 hours ago

Bug fix: Preserve effective cwd when cd targets the current directory.

Previously, commands like cd . or cd /current/path would reset the effective cwd to unknown, potentially causing false-positive blocks on subsequent segments. The analyzer now resolves cd targets and recognizes when the directory hasn't actually changed, keeping the cwd intact.

Changes

  • fix(analyze): Preserve effective cwd when cd targets the current directory
  • fix(explain): Align cwd trace with resolved cd-to-same-directory behavior
  • test(rm): Assert rm -rf stays allowed after cd to current cwd

Don't miss a new cc-safety-net release

NewReleases is sending notifications on new releases.