Skip to content

fix: preserve Codex additional_tools nested types via Bifrost bump (#33) - #34

Merged
YamazakiYasuhiro merged 4 commits into
mainfrom
fix-bug-#33
Aug 9, 2026
Merged

fix: preserve Codex additional_tools nested types via Bifrost bump (#33)#34
YamazakiYasuhiro merged 4 commits into
mainfrom
fix-bug-#33

Conversation

@YamazakiYasuhiro

Copy link
Copy Markdown
Member

Summary

  • Fixes #33: Codex Responses input[].type = "additional_tools" nested tools[].type was stripped by Bifrost v1.5.18, causing OpenAI Missing required parameter: 'input[0].tools[0].type'.
  • Bumps github.com/maximhq/bifrost/core to v1.7.7 (≥ v1.6.4, includes maximhq/bifrost#5103).
  • Minimal Tern follow-ups: EnvVarSecretVar, ToOpenAIResponsesRequest(ctx, req), Go 1.26.5 sync. No Tern-side raw bypass; tool_sanitize.go unchanged.

Test plan

  • ./scripts/process/build.sh
  • Unit: TestResponsesAdditionalTools_RoundTripPreservesNestedType / NamespaceChild / sanitize OpenAI no-op
  • ./scripts/process/integration_test.sh --specify "AdditionalTools" (includes LiveOpenAI real call, status 200)
  • LLM gateway regression (ResponsesAPI / CrossProvider / etc.)
  • OpenAI Codex E2E (TestCodexE2E_GPT5Codex_FileCreation, FileCreation) PASS
  • Anthropic-dependent Codex E2E may fail if registered Anthropic key is invalid (env; unrelated to this fix)

Made with Cursor

YamazakiYasuhiro and others added 4 commits August 10, 2026 00:20
Reproduce Bifrost v1.5.18 stripping nested tools[].type under
additional_tools input items; lock OpenAI sanitize no-op and add
mandatory LiveOpenAI integration skeleton.

Co-authored-by: Cursor <cursoragent@cursor.com>
Upgrade maximhq/bifrost/core past v1.6.4 so Responses additional_tools
nested tool types survive round-trip (Issue #33 / Bifrost #5100).
Adapt Key.Value to SecretVar and sync Go 1.26.5 across modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bifrost v1.7.7 changed ToOpenAIResponsesRequest to require a
BifrostContext as the first argument; update the integration helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
Record specification and implementation plan for Codex additional_tools
type preservation via Bifrost v1.7.7, with verified acceptance criteria.

Co-authored-by: Cursor <cursoragent@cursor.com>
@YamazakiYasuhiro
YamazakiYasuhiro merged commit 6ad4e85 into main Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex Responses path: upstream_error Missing required parameter 'input[0].tools[0].type'

1 participant