Commit 56b8308
fix: strip markdown fences in persona JSON parsing + update usage test
Personas often return JSON wrapped in ```json fences which caused
json.loads to fail and fall back to {"raw": text}. Now strips fences
before parsing, so persona outputs are structured dicts in TurnContext
and _summarize_slot can show meaningful previews in discussion log.
Update test_usage_integration: "hello" is now correctly classified as
simple → haiku (agent-manager enabled by default).
715 tests passing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent a80f7b4 commit 56b8308
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | | - | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
0 commit comments