Commit 9bebed5
fix: unwrap TraitConfig values in local evaluation before segment matching
TraitConfig objects ({ value, transient }) were passed directly to the
evaluation engine without extracting the actual value. This caused
segment condition comparisons to fail (e.g. 'cedars' == { value: 'cedars',
transient: true } → false), so segment overrides were never applied.
The remote evaluation path already handled this correctly via
isTraitConfig() in generateIdentitiesData. This fix applies the same
unwrapping in getIdentityFlagsFromDocument and getIdentitySegments.
Fixes #238
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a357194 commit 9bebed5
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
| |||
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
278 | | - | |
| 284 | + | |
279 | 285 | | |
280 | 286 | | |
281 | 287 | | |
| |||
474 | 480 | | |
475 | 481 | | |
476 | 482 | | |
477 | | - | |
| 483 | + | |
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
| |||
0 commit comments