Merge pull request #148 from getagentseal/fix/codex-patch-edit-detection

Fix Codex provider to detect file edits from patch_apply_end events
This commit is contained in:
Resham Joshi 2026-04-24 11:09:11 -07:00 committed by GitHub
commit 17022433a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -183,6 +183,11 @@ function createParser(source: SessionSource, seenKeys: Set<string>): SessionPars
continue
}
if (entry.type === 'event_msg' && entry.payload?.type === 'patch_apply_end') {
pendingTools.push('Edit')
continue
}
if (entry.type === 'response_item' && entry.payload?.type === 'message' && entry.payload?.role === 'user') {
const texts = (entry.payload.content ?? [])
.filter(c => c.type === 'input_text')