Skip to content

Commit 0999a6d

Browse files
fix: resolve workflow-config.conf from git repo root, not plugin cache
read-config.sh was using CLAUDE_PLUGIN_ROOT to find workflow-config.conf, which points to the plugin cache — not the current project. Now resolves from the git repo root of CWD so each project's config is used correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f5b57d3 commit 0999a6d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/read-config.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,14 @@ else
3434
fi
3535

3636
# Resolve config file when not specified (.conf only)
37+
# workflow-config.conf is a project-level file at the git repo root, not a plugin file.
3738
if [[ -z "$config_file" ]]; then
38-
root="${CLAUDE_PLUGIN_ROOT}"
39-
if [[ -f "$root/workflow-config.conf" ]]; then config_file="$root/workflow-config.conf"
40-
else exit 0; fi
39+
_git_root=$(git rev-parse --show-toplevel 2>/dev/null || echo "")
40+
if [[ -n "$_git_root" && -f "$_git_root/workflow-config.conf" ]]; then
41+
config_file="$_git_root/workflow-config.conf"
42+
else
43+
exit 0
44+
fi
4145
fi
4246
# Missing file: exit 0 (graceful degradation)
4347
if [[ ! -f "$config_file" ]]; then

0 commit comments

Comments
 (0)