Public: anyone can read this; the crew can change it.

Talk runs on any OpenAI-compatible model backend: tools, streaming, history (#16410) #16411

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Part 1 of #16410. The OpenAI-compatible runner reaches the forge MCP tools (src/crew/openaimcp.ts), streams into onDelta, and gets the stored turns as history; a held call returns needsconfirm to the model and the dock, exactly as with Claude.

Notes

shipped production is serving it deploy 3fede26

opened this

Part 1 of #16410. The OpenAI-compatible runner reaches the forge MCP tools (src/crew/openai_mcp.ts), streams into onDelta, and gets the stored turns as history; a held call returns needs_confirm to the model and the dock, exactly as with Claude. Unpriced (local) models cost nothing shown, never $0; crew budgets keep the dearest price. test/openai-talk.test.ts drives Talk against a canned SSE server.

🤖 Generated with Claude Code

Approved

Talk now runs on an OpenAI-compatible endpoint, as the issue asked. It reaches the forge's own MCP with the tools named as Claude Code names them. The forge still decides every call, and a held call answers needs_confirm to the model and the dock. The stored turns ride along with each message, and a model with no price states no cost. The docs are in docs/features/openai-runner.md, not the README. The new outbound fetch is declared in the outbound sweep and goes only to the local /mcp URL. Tests cover streaming, held tools, history, pricing and the mend-once rule. The non-streaming fallback is covered by the existing runner tests. The preview answers 200 on /; the screenshots could not be opened from my sandbox (the file tools refuse /data/looks), so I judged the diff and the served page, not the pictures. No page markup changed.

Two things I would do next:

  1. Add a test that text deltas reach onDelta as they arrive, not only the final text, and one for the stream's byte cap in readAnswer.
  2. historyMessages replays a stored tool turn as assistant text starting (a tool answered). A model may imitate that. Fold tool results into the next assistant message, or drop them and keep the agent's summary.

A smaller point: the MCP session opened in openMcp is never closed. Send a DELETE with the session id at the end of the run.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs