v0.3.38

RightNow-AI/openfangv0.3.38Mar 9, 2026by jaberjaber23

AI Summary

Fixes Claude Code provider detection and CLI integration, including improvements to wizards, credential detection, and subprocess security.

Key Highlights

  • Web wizard now detects Claude Code CLI instead of broken API key input.
  • TUI wizards include `claude-code` provider with `needs_key: false`.
  • Credentials detection checks multiple paths for different CLI versions.
  • Subprocess security fixed to prevent leaking API keys.
  • Cross-platform support expanded for Windows, macOS, and Linux.

New Features

  • Enhanced Claude Code provider integration across Web and TUI interfaces.
  • Improved credential detection for different Claude CLI versions.

Full Release Notes

## Fixes

- **Web wizard**: Shows "Detect Claude Code" button instead of broken API key input for keyless providers. Calls `/api/providers/claude-code/test` to verify CLI installation.
- **TUI wizards**: Both init wizard and settings wizard now include `claude-code` in their provider lists with `needs_key: false`
- **Credentials detection**: Checks both `~/.claude/.credentials.json` and `~/.claude/credentials.json` for different Claude CLI versions
- **Subprocess security**: `env_clear()` + selective re-add prevents leaking API keys from other providers into the Claude CLI process
- **Cross-platform**: Windows (`USERPROFILE`, `APPDATA`, `SYSTEMROOT`, `TEMP`), macOS/Linux (`HOME`, `USER`, `SHELL`, `LANG`), plus `XDG_*` and `CLAUDE_*` prefixes all preserved

Closes #303

## Stats
6 files changed, 171 insertions, 31 deletions, 1949 tests pass, 0 clippy warnings