Commit aed4e5a
committed
address copilot R3: tighten JSDoc + restore AutoReply trace span
R3 caught two issues:
1. JSDoc overstated the cross-root guard. The runtime check only catches
a non-empty cache that lacks root; it does not catch a cache that has
been mixed (root present plus entries from a different root). Detecting
that would require tagging the cache. JSDoc rewritten to be honest:
the guard is partial, intended usage is one cache per root, and a
Map<root,Set> is the correct shape if disjoint roots must share state.
2. AutoReply lost its 'SessionAutoReply.isDescendant' trace span when the
walk delegated to a plain arrow function. Restored Effect.fn wrapper so
traces still show the AutoReply-specific call site alongside the inner
Session.isDescendantOf span. No behavior change, only observability.
PR feedback: #16
- comment 3163766945 (JSDoc overstates guard scope)
- comment 3163766986 (lost trace span name)1 parent f54a1ad commit aed4e5a
2 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
392 | 396 | | |
393 | 397 | | |
394 | 398 | | |
| |||
0 commit comments