Commit 881fd20
fix: attach pendingFileMetadata to API conversation stream
This fixes an issue where file metadata from read_file operations was not being
properly attached to the API conversation history stream. The pendingFileMetadata
was being set correctly in the Task object but never incorporated into the
conversation stream, causing subsequent reads of the same file to not recognize
previously read ranges.
The fix modifies addToApiConversationHistory to check for and include any
pending file metadata and tool metadata in the message before adding it to
the conversation stream, ensuring proper tracking of file reads across
multiple operations.
Signed-off-by: Eric Wheeler <[email protected]>1 parent a6456bc commit 881fd20
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
342 | 359 | | |
343 | 360 | | |
344 | 361 | | |
| |||
0 commit comments