Commit 71bef23
committed
Fix metadata field access in PromptSampler (#203)
- Fix changes field access: program.get("changes") → program.get("metadata", {}).get("changes")
- Fix parent_metrics field access: program.get("parent_metrics") → program.get("metadata", {}).get("parent_metrics")
These fields are stored in Program.metadata but were being accessed at the top level,
causing evolution history to always show "Unknown changes" instead of actual modifications.
Fixes #2031 parent bc66c5b commit 71bef23
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
0 commit comments