Commit 563a17a
committed
fix(bench): init OpenCode client before scoring baseline
`scoreBaseline()` called `matchTruthFinding()` which invokes
`sendPrompt()` — but unlike `runScorer()`, `scoreBaseline()` never
called `initOpenCodeClient()` first. Result: every run exited with
[bench] ERROR: OpenCode client not initialized. Call initOpenCodeClient() first.
regardless of whether baseline and truth data were present.
Call `initOpenCodeClient(config.model)` at the top of `scoreBaseline()`
so the two scoring paths have equivalent init behavior.1 parent d6a8642 commit 563a17a
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
61 | 67 | | |
62 | 68 | | |
| |||
0 commit comments