Skip to content

SessionStart hook 找 akashic CLI 的 PATH 可能不是 Bash 工具的 PATH (follow-up finding from #775) #786

Open

Description

@kiki830621

Problem

akashic-mcp 的 SessionStart hook(plugin/hooks/check-cli.sh,#775)用 command -v akashic 找 CLI,繼承的是 Claude Code 行程的環境(官方 hooks 文件:「Handlers run in the current directory with Claude Code's environment」);skill 則經 Bash 工具執行,那個 shell 由使用者的 profile 初始化。兩者的 PATH 在某些啟動方式下可能不同,hook 可能說「它不在 PATH 上」而 Bash 工具其實找得到,或比對到的不是 skill 實際執行的那一支。

Type

bug

Expected

  • 先量:各種啟動方式(終端機、Desktop、IDE)下 hook 與 Bash 工具的 PATH 是否一致。
  • 不一致時,hook 的訊息不要斷言「不在 PATH 上」,或改用與 Bash 工具相同的來源找 CLI。

(UNVERIFIED:verify 席沒有量到實際 PATH。)

Source: surfaced during /idd-verify #775 (PR #783) follow-up finding — https://github.com/PsychQuant/Akashic-Library/pull/783#issuecomment-6761585437(finding 18)

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions