mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-04-28 06:59:37 +00:00
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:
commit
17022433a2
1 changed files with 5 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue