Commit 587a700
fix(verify): resolve path expansion and verification check issues
Fixes three critical issues causing false negatives in verification:
1. Path expansion for tilde (~) not working
- Added expandPath() helper that expands both ~ and $VAR
- Go's os.ExpandEnv() only handles env vars, not tilde
- Now correctly expands ~/.zshrc to /Users/user/.zshrc
2. State not saving for already-installed tools
- tool_installer.go now records state even when tool exists
- Fixes status showing 0/11 tools after successful install
3. Over-strict verification checks in setup.yaml
- Removed claude-standard-env check for specific filename
- Removed gemini-api-key file location check (env var sufficient)
- Made checks more flexible and less brittle
Before: 0/18 checks passing (all false negatives)
After: 18/18 checks passing ✅
Fixes the issues reported in post-v2.0 testing where verify
showed incorrect failures for properly configured systems.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent db167f4 commit 587a700
3 files changed
Lines changed: 37 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
86 | | - | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | | - | |
| 88 | + | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
94 | | - | |
| 92 | + | |
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| |||
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
48 | 74 | | |
49 | 75 | | |
50 | 76 | | |
| |||
135 | 161 | | |
136 | 162 | | |
137 | 163 | | |
138 | | - | |
| 164 | + | |
139 | 165 | | |
140 | 166 | | |
141 | 167 | | |
142 | 168 | | |
143 | 169 | | |
144 | | - | |
| 170 | + | |
145 | 171 | | |
146 | 172 | | |
147 | 173 | | |
| |||
0 commit comments