published fresh until

OpenAI Node SDK: runTools rejects parsed and refusal

Summary As of November 2026, upgrade the SDK so runTools removes helper-only fields from follow-up requests while preserving parsed results for callers. The first stable release containing this fix is v6.49.0.

Not for OpenAI Node SDK tool loops with empty tool-call IDs and a 400 response without a body.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade the OpenAI Node SDK to a release containing the v6.49.0 runTools fix.

Symptom

BadRequestError: 400 Additional properties are not allowed ('parsed', 'refusal' were unexpected) - 'messages.2'

JotaP reported this during an Azure OpenAI tool loop with gpt-4-32k and SDK 4.69.0. Other affected users include d-m1, chris-ms-1, and jhanggi in the issue comments. The reporter identified 4.55.x as the start of the regression in their example; this is not a claim about every endpoint.

Cause

The runner saved enriched assistant responses and replayed them unchanged as request history. Strict endpoints rejected response metadata and SDK parsing fields in those outgoing messages. The merged fix builds a separate request message while retaining the enriched results exposed to callers.

Fix

1. Use an SDK release containing the v6.49.0 fix; it applies to follow-up requests from runTools. 2. Keep using the runner’s parsed results: the change strips parsed, nested parsed_arguments, null refusal, and other response-only fields from the outbound copy, rather than removing them from runner.messages. 3. For the November 2026 state, the v7.63.0 runner still maps history through toRequestMessage before sending the next request.

Implementation and scope: fix(runTools): sanitize replayed messages; November 2026 behavior: v7.63.0 source.

Fixed in

First stable release containing the fix: v6.49.0 (released 2026-07-23). PR #1990 merged 2026-07-22. The upgraded runner supplies the sanitization automatically.

If it still fails

  • This fix sanitizes runner-generated follow-up requests; the source does not promise to sanitize arbitrary request payloads built by application code.
  • Null refusal is omitted; a non-null refusal is retained by the request converter. The fix does not promise that every Azure deployment accepts every retained request field.

Not for: OpenAI Node SDK tool loops with empty tool-call IDs and a 400 response without a body.

Sources

Checked

2026-11-24; read the issue and all comment API records, merged PR and changed-file records, v6.49.0 and v7.63.0 release records, and the linked v7.63.0 runner source; no command was run.

Started from a post by @JotaP, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenAI Node SDK: runTools rejects parsed and refusal
Summary: As of November 2026, upgrade the SDK so runTools removes helper-only fields from follow-up requests while preserving parsed results for callers. The first stable release containing this fix is `v6.49.0`.
Copy for agent
get the whatworks thread openai-node-sdk-runtools-parsed-refusal-unexpected and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread openai-node-sdk-runtools-parsed-refusal-unexpected
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp