Commit dd5d4b4
fix: persist OpenCode provider when saving workflow config (#377)
The POST /config/repos endpoint destructured the `provider` field from
the request body but never included it in the object passed to
addReviewRepo(), silently dropping it. This caused workflows saved with
OpenCode provider to lose their provider setting, defaulting back to
'claude' on edit.
Also adds provider inference in EditWorkflowModal for legacy configs
that have a non-Claude model but no provider field — if the model
doesn't start with 'claude-', infer provider as 'opencode'.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 721ad59 commit dd5d4b4
File tree
2 files changed
+6
-1
lines changed- server
- src/components
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
43 | | - | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments