Merge pull request #2499 from yetone/fix/codex-transform-fc-underscore

fix(codex-transform): preserve underscore when rewriting `call_*` tool-call ids
This commit is contained in:
Wesley Liddick 2026-05-19 09:39:25 +08:00 committed by GitHub
commit 11870cf84f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1030,7 +1030,7 @@ func filterCodexInputWithOptions(input []any, opts codexInputFilterOptions) []an
return id
}
if strings.HasPrefix(id, "call_") {
return "fc" + strings.TrimPrefix(id, "call_")
return "fc_" + strings.TrimPrefix(id, "call_")
}
return "fc_" + id
}