mirror of
https://github.com/NoeFabris/opencode-antigravity-auth.git
synced 2026-05-13 23:53:18 +00:00
Add defense-in-depth protection against Claude API tool pairing errors: - findOrphanedToolUseIds(): Detect orphaned tool_use blocks - fixClaudeToolPairing(): Inject placeholder tool_result responses - validateAndFixClaudeToolPairing(): Nuclear fallback removes broken blocks - 12 new unit tests covering all edge cases Fixes permanent session corruption when ESC pressed or context compacted.