Commit 86a37aa
authored
fix(core): reset pendingFeedbackMessage in ConversationHistory.reset() (#2055)
The reset() method was not clearing pendingFeedbackMessage, causing
stale "The previous action has been executed" context to leak into
the first planning turn of subsequent MCP tool calls. This made the
planning model incorrectly conclude the task was already completed
without performing any action.1 parent 9c232c0 commit 86a37aa
File tree
2 files changed
+4
-0
lines changed- packages/core
- src/ai-model
- tests/unit-test
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
0 commit comments