Preserve multi-tool history groups #41
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/zara!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/zara-008-multi-tool-history"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
add_messagesreducerWhy
The previous validator compared every tool result only with the immediately preceding kept message. After keeping the first result, the preceding message was no longer the assistant tool-call message, so valid second and later results were discarded.
Impact
Multi-tool agent turns now remain valid across conversation history without relaxing message-boundary validation. This change stays in the agent/LLM boundary and does not move application logic out of Prolog.
Validation
nix develop -c pytestnix develop -c bash -c 'pytest && for test_script in scripts/test-*.sh; do bash "$test_script"; done'Closes #9