Skip to content

fix(openai): preserve tool calls across the messages bridge - #9

Open
unohee wants to merge 2 commits into
VictorMinemu:mainfrom
unohee:fix/openai-tool-call-bridge
Open

fix(openai): preserve tool calls across the messages bridge#9
unohee wants to merge 2 commits into
VictorMinemu:mainfrom
unohee:fix/openai-tool-call-bridge

Conversation

@unohee

@unohee unohee commented Aug 20, 2026

Copy link
Copy Markdown

What this PR does

Preserves function tool calls across the Claude Code Messages ↔ OpenAI Responses bridge. Calls and tool outputs are sent as top-level Responses items, assistant text uses output_text, and JSON or SSE function-call responses return as Anthropic tool_use blocks with the original call_id and block order.

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

Testing

  • npm run build passes
  • npm test passes (30 files, 204 tests)
  • Tested manually on: macOS 26.5 with an OpenAI subscription route

Related issues

Closes #8

unohee added 2 commits August 20, 2026 22:27
Function calls and their outputs are top-level Responses input items, while assistant text uses output_text. The reverse bridge now emits Anthropic tool_use blocks for JSON and SSE responses and preserves call IDs across the tool-result turn.
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.

OpenAI bridge drops Claude Code tool calls

1 participant