Repository navigation
Commit 4732443
committed
fix(memory): only a goal the person typed is theirs for remember to quote
agentFlow handed every goal to the agent as goalText, the words `remember` and `forget` may quote
as the person's. Not every goal is typed: retryDiagram builds one from the model's own diagram
title and validation messages, and Continue and a resumed goal are not typed now. After a click
on Retry, the model could quote its own generated text and have a note credited to the person.
goalText is now typedGoalText(text, opts): the goal when opts.typed (handleSend), else ''. This is
the rule develop already applies to the Ask When Risky reviewer (rememberTypedGoal, #112). Tests:
the helper on its own, a guard that agentFlow passes it, and the real agent run with a Retry
prompt, where nothing of it reaches the person's words.1 parent b1ae4e5 commit 4732443
2 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
2349 | 2355 | | |
2350 | 2356 | | |
2351 | 2357 | | |
| |||
2467 | 2473 | | |
2468 | 2474 | | |
2469 | 2475 | | |
2470 | | - | |
| 2476 | + | |
2471 | 2477 | | |
2472 | 2478 | | |
2473 | 2479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| |||
0 commit comments