Skip to content

fix(aionrs): drop malformed tool-call events#486

Open
TCP404 wants to merge 2 commits into
mainfrom
boii/fix/malformed-tool-call-sanitize
Open

fix(aionrs): drop malformed tool-call events#486
TCP404 wants to merge 2 commits into
mainfrom
boii/fix/malformed-tool-call-sanitize

Conversation

@TCP404

@TCP404 TCP404 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Ignore aionrs tool-call and tool-result stream events when the tool name is empty, so malformed calls do not reach the UI or persistence path.
  • Strip resumed aionrs session history of empty-name tool uses and their paired tool results before replaying provider history.
  • Add regression coverage for empty-name event filtering and session-history sanitization.

Tests

  • cargo test -p aionui-ai-agent empty_name
  • cargo test -p aionui-ai-agent history_sanitize
  • cargo fmt --all --check
  • just push -u origin boii/fix/malformed-tool-call-sanitize
    • migration immutability check passed
    • cargo fix / clippy fix completed
    • cargo nextest run --workspace: 6315 passed, 18 skipped

TCP404 added 2 commits June 18, 2026 14:38
- Ignore aionrs tool-call events with empty names before they reach the UI stream
- Strip malformed tool uses and paired results from resumed session history
- Separate malformed tool-call history note from the numbered doc list
- Keep CI clippy strict mode passing with warnings denied
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.

1 participant