Repository navigation
Commit d24d0b5
committed
fix(agent): only a goal the person typed is their word to the reviewer
agentFlow recorded every goal it was handed as the person's, but not every caller passes typed text: a
diagram retry sends a request built from the model's spec and the repair report, and Retry after a resume
re-runs lastAgentGoal read back from the session file — the very text resumeSession keeps out of the
person's words. Both landed in the reviewer's PERSON section.
agentFlow now takes { typed }, which only handleSend sets (the chat's send message, from the input box);
the goal is recorded only then. A typed goal that Retry repeats is already recorded; Continue's fixed
instruction and a diagram retry stay activity. Run, not regexed, where a harness lifts the call site
(handleSend in sessionExpiredHost, retryDiagram in diagramHost); the response bar's Retry/Continue lines
are pinned from source, with exactly one caller allowed to say typed: true.1 parent 23a2d98 commit d24d0b5
4 files changed
Lines changed: 39 additions & 12 deletions
File tree
- extensions/levelcode-ai
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2240 | 2240 | | |
2241 | 2241 | | |
2242 | 2242 | | |
2243 | | - | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
2244 | 2249 | | |
2245 | 2250 | | |
2246 | 2251 | | |
| |||
2269 | 2274 | | |
2270 | 2275 | | |
2271 | 2276 | | |
2272 | | - | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
2273 | 2281 | | |
2274 | 2282 | | |
2275 | 2283 | | |
| |||
2578 | 2586 | | |
2579 | 2587 | | |
2580 | 2588 | | |
2581 | | - | |
| 2589 | + | |
2582 | 2590 | | |
2583 | 2591 | | |
2584 | 2592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
493 | 496 | | |
494 | 497 | | |
495 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
1084 | 1084 | | |
1085 | 1085 | | |
1086 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1087 | 1102 | | |
1088 | 1103 | | |
1089 | 1104 | | |
| |||
0 commit comments