mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-05 02:30:26 +08:00
Fixes 3 critical bugs in parser.go:
1. Gemini detection: Change Delta from bool to *bool for proper field
presence detection. Fixes issue where delta:false events were lost.
2. Codex detection: Tighten logic to only classify as Codex if
thread_id exists OR item.type is non-empty. Prevents Claude events
with item:null/item:{} from being misclassified and dropped.
3. Performance: Move itemHeader parsing inside item.completed case,
only parse when actually needed.
Additional changes:
- Implement PR #86's Gemini notifyMessage trigger on Status field
instead of Content, resolving parser.go conflict between PRs
- Add regression tests for all fixed scenarios
- All tests pass: go test ./...
Co-authored-by: Codeagent (Codex)
Generated with SWE-Agent.ai
Co-Authored-By: SWE-Agent.ai <noreply@swe-agent.ai>
9.2 KiB
9.2 KiB