[Bug]: claude-code hooks in settings.json shall not contain absolute paths to the repo
メンテナーはふだん 14 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 64/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start at the implementation of code-review-graph install --platform claude-code and inspect how it generates .claude/settings.json and handles hooks already installed by older versions. Run the install command in a temporary repository, then verify the generated commands discover the repository at runtime and that repeated installation replaces rather than duplicates the hooks.
索引モデルが issue の本文から書いたものです。
説明
code-review-graph version
Built on branch: main Built at commit: 06161b4f7f55
Operating system
Linux
Python version
3.12.3
AI platform
claude-code
Output of code-review-graph status
Nodes: 420
Edges: 2936
Files: 91
Languages: cpp, python
Last updated: 2026-06-14T02:42:17
Built on branch: main
Built at commit: 06161b4f7f55
Steps to reproduce
code-review-graph install --platform claude-code
Expected vs actual behavior
Expected:
.claude/settings.json is a repository level file impacying all collaborators on the repository, as such it should not contain user level aspects, such as paths to the repo
Actual: PostToolUse and SessionStart both contains a hard coded absolute path to the repo, making it not possible to share settings.json with other users/setups
Example:
{
"matcher": "Edit|Write|Bash",
"hooks": [
{
"type": "command",
"command": "cat >/dev/null || true; git rev-parse --git-dir >/dev/null 2>&1 && code-review-graph update --skip-flows --repo \"/home/username/work/some/path/to/depot\" || true",
"timeout": 30
}
]
}
Further to that, the install command will not replace existing hooks installed by previous versions of the tool, but add to the list instead
Additional context
Here is a possible rewrite of the PostToolUse. The path to the depot is captured on the fly in a variable and used for the tool invocation
"command": "repo_root=$(git rev-parse --show-toplevel 2>/dev/null) && [ -n \"$repo_root\" ] && code-review-graph update --skip-flows --repo \"$repo_root\" || true",
- 主要言語
- Python
- スター
- 31.9k
- フォーク
- 2.9k
- 平均マージ
- 9日 13時間
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tirth8205/code-review-graph のほかの issue
-
Add MCP tool annotations (readOnlyHint) so read-only tools don't prompt in client plan/read-only modes対応中かも @jay23606 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
tirth8205/code-review-graph#1123 ·
メンテナーはふだん 14 日以内に返信
-
[Bug]: MCP auto-watch can close GraphStore while its watcher is still active対応中かも @azizur100389 が 3 日前に担当しました。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
tirth8205/code-review-graph#1121 ·
メンテナーはふだん 14 日以内に返信
-
[Bug]: .cjs files are not indexed (EXTENSION_TO_LANGUAGE has .mjs but no .cjs)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
tirth8205/code-review-graph#1117 ·
メンテナーはふだん 14 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
tirth8205/code-review-graph#1114 ·
メンテナーはふだん 14 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
tirth8205/code-review-graph#1113 ·
メンテナーはふだん 14 日以内に返信
tirth8205/code-review-graph の issue をすべて見る
似ている issue
-
Project submission:オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#845 ·
メンテナーはふだん 1 日以内に返信
-
tests: pin that the atomic writers in utils/paths.py stage the temporary file in the target's directory対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdifficulty:2 enhancement good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
MakazhanAlpamys/Soup#2178 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] dcg.waggr permutation p-values are folded twice, so near-zero scores get the smallest p-valuesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
scverse/rapids-singlecell#854 ·
メンテナーはふだん 1 日以内に返信
-
Slang input: int8_t4_packed and uint8_t4_packed are copied into CrossGL対応中かも @ninglinLiu が今日担当しました。 オープンarea:frontend backend:slang bug direction:input
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
random_elements(unique=True) on an OrderedDict: ZeroDivisionError once only zero weights remain, AssertionError with use_weighting=False対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 13 日以内に返信