v0.3.40
RightNow-AI/openfangv0.3.40Mar 9, 2026by jaberjaber23
AI Summary
Fixes OpenAI tool parameter type errors and resolves environment handling issues in the Claude Code CLI driver.
Key Highlights
- OpenAI tool parameter type error fixed by normalizing string schemas to JSON objects.
- Claude Code CLI driver fix replaces `env_clear()` which wiped the environment.
- Removed `--dangerously-skip-permissions` flag.
- Targeted `env_remove()` preserves runtime environment for Node.js.
New Features
- Improved Claude Code CLI driver stability and cross-platform compatibility.
- Better error messages showing actionable instructions for CLI setup.
Full Release Notes
Fix OpenAI tool parameter type error (#481) + Fix Claude Code CLI driver **Tool schema fix (#481):** OpenAI and other providers require tool parameters to be a JSON object. When MCP servers or skill definitions provided input_schema as a JSON string, null, or other non-object type, it was passed through unchanged causing "Invalid type for tools[N].function.parameters: expected an object, but got a string instead." Now normalize_schema_for_provider() parses string schemas into JSON objects and falls back to a valid empty schema for any non-object type. 5 new tests. **Claude Code CLI driver fix:** The driver used env_clear() which wiped the entire environment, breaking the Node.js-based Claude CLI (missing NVM, SSL certs, proxy vars, etc.). Replaced with targeted env_remove() that only strips 21 known sensitive API keys from other providers while preserving the full runtime environment. Removed --dangerously-skip-permissions flag which required prior interactive acceptance. Error messages now show actionable instructions (e.g. "run claude auth") instead of generic "Check your API key."