Commit 4ea59e8
committed
fix: remove flaky message count assertion in context-pruner integration test
The assertion expected finalMessages.length < initialMessages.length + 5,
but this is unreliable because:
1. The agent run adds messages (prompt, tool calls, responses)
2. Context pruning replaces messages with placeholders rather than removing them
The test still validates the important behavior - that tool-call/tool-result
pairs remain intact after pruning.1 parent 7dcd1b9 commit 4ea59e8
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
| |||
0 commit comments