Commit 60390c4
committed
docs: correct hasToolResult turn-scoping on the docs site
hasToolResult became TURN-SCOPED in v1.37.3 (matcher) with the record side
made symmetric in v1.37.4: it means "does the current turn — the messages
after the last user message — contain a tool result", not the old
"does the whole conversation contain a tool result". Several docs pages still
described the old whole-conversation semantics and were misleading on the
live site (aimock.copilotkit.dev).
- docs/multi-turn/index.html: fix the field overview bullet, the
"hasToolResult — match by tool execution state" prose, and the comparison
table row to describe current-turn scoping; explain that this is what keeps
leg-1 (tool call, false) vs leg-2 (narration, true) fixtures working on
every turn of a multi-turn session.
- docs/fixtures/index.html: fix the match-fields table row.
- docs/record-replay/index.html: fix both recorder-derivation prose spots and
update the buildFixtureMatch snippet to use the shared currentTurnHasToolResult
predicate instead of a whole-conversation messages.some() scan.
Matches src/router.ts currentTurnHasToolResult (with its no-user-message
fallback to whole-conversation).
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 3e539a6 commit 60390c4
3 files changed
Lines changed: 27 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
| |||
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
169 | | - | |
170 | | - | |
171 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
172 | 180 | | |
173 | 181 | | |
174 | 182 | | |
| |||
365 | 373 | | |
366 | 374 | | |
367 | 375 | | |
368 | | - | |
369 | | - | |
| 376 | + | |
| 377 | + | |
370 | 378 | | |
371 | 379 | | |
372 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
636 | 636 | | |
637 | 637 | | |
638 | 638 | | |
639 | | - | |
| 639 | + | |
| 640 | + | |
640 | 641 | | |
641 | 642 | | |
642 | 643 | | |
| |||
1040 | 1041 | | |
1041 | 1042 | | |
1042 | 1043 | | |
1043 | | - | |
| 1044 | + | |
| 1045 | + | |
1044 | 1046 | | |
1045 | 1047 | | |
1046 | 1048 | | |
| |||
1063 | 1065 | | |
1064 | 1066 | | |
1065 | 1067 | | |
1066 | | - | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
1067 | 1071 | | |
1068 | 1072 | | |
1069 | 1073 | | |
| |||
0 commit comments