Commit 66b5188
authored
fix: strip prompts/ prefix from config paths to avoid duplication (#200)
Previously, config paths like 'prompts/coder.md' resulted in destination
.opencode/prompts/prompts/coder.md (duplicated prompts/).
Now the CLI normalizes paths by stripping the leading 'prompts/' prefix
before determining the destination, ensuring the output matches the
config structure.
Also adds validation to fail with a clear error if the normalized
path would be empty (e.g., config just says 'prompts').1 parent c70f7dd commit 66b5188
1 file changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
347 | 356 | | |
348 | 357 | | |
349 | 358 | | |
350 | 359 | | |
351 | 360 | | |
352 | 361 | | |
353 | 362 | | |
354 | | - | |
355 | | - | |
| 363 | + | |
| 364 | + | |
356 | 365 | | |
357 | | - | |
358 | | - | |
359 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
360 | 369 | | |
361 | 370 | | |
362 | 371 | | |
363 | 372 | | |
364 | | - | |
| 373 | + | |
365 | 374 | | |
366 | 375 | | |
367 | 376 | | |
| |||
0 commit comments