Skip to content

fix(adapter): hook scripts fail on Windows when project path contains spaces #790

@liplus-lin-lay

Description

@liplus-lin-lay

purpose

Li+claude.md が生成する hook テンプレートの不具合を修正する。

premise

  • settings.json の hook command パスがスペースを含むプロジェクトディレクトリで壊れる
  • hook スクリプトがサンドボックス外の jq/gh を参照できない
  • post-tool-use.sh のセクション名参照が Li+operations.md の実際のセクション名と一致していない(PR And CI FlowPR CreationMerge And CleanupMerge

constraints

  • settings.json の command は bash "$CLAUDE_PROJECT_DIR/..." 形式にクォートする
  • hook スクリプト冒頭で export PATH="$HOME/.local/bin:$PATH" を追加する
  • post-tool-use.sh のセクション名を Li+operations.md と一致させる
  • docs/4.-Adapter.md にパス安全性要件を明記する

Metadata

Metadata

Labels

bug動いていない、壊れているready本文が実装開始できる形まで収束している状態。ただし更新は継続可能

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions