Commit 6b7ff49
Fix sidecar launch failure: resolve script path to absolute at startup
Root cause: sidecar command used relative path "sidecar/claude/src/index.ts"
but subprocess CWD was the workspace directory, not the Symphony project dir.
tsx couldn't find the file and exited silently (stderr at debug level).
Fixes:
1. Resolve sidecar script path to absolute using os.Getwd() at startup.
Store in closure variable captured by adapter factory.
2. Call tsx directly instead of wrapping in bash -lc.
3. Validate sidecar script exists at startup with clear error message.
4. Add sidecar path check to --doctor output.
5. Log subprocess stderr at WARN (was DEBUG) so crash reasons are visible.
6. Remove empty default for SidecarCommand — resolved dynamically in main.
End-to-end verified: sidecar now initializes, creates sessions, completes
prompt turns with stop_reason=completed against real GitHub project items.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4fe9183 commit 6b7ff49
3 files changed
Lines changed: 36 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
176 | 194 | | |
177 | 195 | | |
178 | 196 | | |
| |||
181 | 199 | | |
182 | 200 | | |
183 | 201 | | |
184 | | - | |
185 | 202 | | |
186 | 203 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 204 | + | |
| 205 | + | |
193 | 206 | | |
194 | 207 | | |
195 | 208 | | |
| |||
392 | 405 | | |
393 | 406 | | |
394 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
395 | 419 | | |
396 | 420 | | |
397 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
226 | 220 | | |
| 221 | + | |
227 | 222 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments