Skip to content

Conversation

@katzdave
Copy link
Collaborator

@katzdave katzdave commented Oct 3, 2025

Remove orphaned tool calls before compacting + run fix conversation

#4968 is the same thing but with session apis compatible with 1.9.1

@katzdave
Copy link
Collaborator Author

katzdave commented Oct 3, 2025

ehh also trying to merge some duplicated logic in perform_compaction + check_and_compact.

@katzdave katzdave requested a review from jamadeo October 6, 2025 19:28
- Add fix_conversation to handle agent_visible vs user_visible messages separately
- Update fix_lead_trail to have more specific error message for trailing assistant messages
- Add two new tests for handling pending tool requests in last assistant message
- Conversation fixes now only apply to agent_visible messages, preserving non-visible ones
@katzdave katzdave force-pushed the dkatz/main-rm-orphaned-tool-calls branch from f43501a to 24fe252 Compare October 8, 2025 15:32
@katzdave
Copy link
Collaborator Author

replaced with: #5059

@katzdave katzdave closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants