Skip to content

hook: settings surface locates project via ${PWD:-.}, launcher via CLAUDE_PROJECT_DIR (P3) #88

Description

@systemfsoftware-maker

Source: ce-code-review run 20260830-212446-4b8b0529 (adversarial P3/75 + correctness P3).

What

.claude/settings.json uses ${PWD:-.} for direnv exec and the flake.nix probe; hooks/run.ts uses CLAUDE_PROJECT_DIR. Claude started from a nested package dir of a flake monorepo takes the pnpm-install guidance branch on the settings surface while the plugin reports correctly.

Fix

direnv exec \"${CLAUDE_PROJECT_DIR:-${PWD:-.}}\" comment-checker and [ -f \"${CLAUDE_PROJECT_DIR:-${PWD:-.}}\"/flake.nix ] so both surfaces agree on project root.

Carried by PR #92: #92

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions