Commit 6fa8ed8
committed
Fix runtime model detection using script path instead of CLAUDE_PLUGIN_ROOT
CLAUDE_PLUGIN_ROOT is a config-time template variable that Claude Code
substitutes when loading plugin configs, not a runtime environment
variable. The previous check always evaluated to false, causing
gpt-5.2 to be selected even in plugin mode. Use BASH_SOURCE path to
detect if the script runs from .claude/plugins/cache/ instead.1 parent 553c03c commit 6fa8ed8
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
0 commit comments