github truefoundry/trueforge @truefoundry/trueforge-core@0.187.0-rc.1

latest releases: @truefoundry/trueforge-ui@0.187.0-rc.1, charts/trueforge@0.187.0-rc.1, @truefoundry/trueforge@0.187.0-rc.1...
pre-release4 hours ago

Patch Changes

  • bf0fa02: The agent spec model is now { type: "fixed", name, params? } or { type: "auto", candidate_models } (4 to 10 models).
    A migration rewrites saved agents and inline sessions. Requests without type still work.

  • c7cf075: Admins can choose which models Auto may route to (auto_model_routing.candidate_models: 4 to 10 account/model names; empty until chosen, which leaves Auto unavailable, and can't be cleared once set).

  • ff00eb2: Add a tenant switch for auto model routing, on by default, on the Models settings page. Turning it off turns off model routing for the tenant: auto specs are rejected and subagents run on their parent's model. GET /api/v1/capabilities now returns auto: { status, reason? } where status is not_configured, disabled, or enabled, replacing auto.enabled. The configuration manifest adds auto_model_routing: { enabled }.

  • 57779a6: GET /api/v1/capabilities reports auto.enabled: model routing is on for the tenant and the user has a model in every routing cluster. The new-chat model picker offers Auto, which is only selectable when that capability is enabled. Core adds canRouteEveryCategory.

  • 8d93e1c: Close remote MCP connections when a turn ends, so an SSE session does not stay open until its GET times out.

  • 8487786: When Code Mode has user MCP servers, register the deferred meta tools (including system toolSets) so get_tool_output_schema can resolve result shapes for preload: true tools. A sandbox alone with only builtins does not add them.

  • 4b8a354: Make the per-turn sub-agent concurrency limit configurable with MAX_PARALLEL_SUB_AGENTS, defaulting to 10.

  • 485a1de: On Daytona, immediately recover sandboxes that are in a recoverable error state instead of only calling start().

  • 18b5718: Built-in TrueForge MCP tools no longer require approval. Session approval policies do not target system tool sets yet, so write and destructive tools from this server run without pausing.

  • 0a7ae41: Report cache write tokens for gateway models. The OpenAI-compatible adapter drops the cache write count, so sessions showed cache reads with no writes; the count is now recovered from the raw usage payload.

  • fe41f24: Replace the AI SDK's "Response stream ended without a finish reason" wording when a provider closes
    the model stream mid-answer. The turn now fails with "Response interrupted: the model provider
    closed the stream before the response finished. Retry the request.", which describes what actually
    happened instead of reading like a harness bug.

  • a83cfd8: GET /api/v1/models now reports properties.auto_routing for each model: whether the model supports Auto routing, then the categories it serves and whether it is in the Auto candidate list, or why it is unsupported. It also always returns canonical_model, null when unknown. The read shape is the new ResolvedModelProperties; ModelProperties is unchanged.

  • 28b3711: The MCP headers resolver's 401 hook is onUnauthorized and returns consent. Omitting the hook fails the 401. An x-tfg-mcp-headers entry whose Authorization is spelled in any casing still skips DCR.

  • fe199af: Tag every model call with tfg.thread_id in TrueFoundry gateway metadata, including context-compaction calls, so gateway traces can be grouped by thread.

  • Start the 0.187.0 release candidate line.

  • 41ffa49: Rename the model routing categories direct, fixed_steps and adaptive to basic, standard and advanced. Each category description now stands on its own, without referring to another category. TRUEFOUNDRY_MODEL_ROUTING categories takes the new keys.

  • 80803da: Revert the internal POST /api/internal/sessions/{session_id}/turns endpoint and the service session source arm. Keep getSessionById for service-key assume-user turn flows.

  • f8ad5f0: Route the root thread when the spec model is auto. The spec is accepted only when model routing is on for the tenant, and it cannot carry model params. The root runs on the cheapest model and effort in the chosen cluster. If routing cannot choose one, the turn fails. A rebuilt turn resumes on the saved model and effort.

  • 8e000d0: Route an auto root thread to a new frontier model cluster. Subagents are never offered it, and RouteInput now takes the categories the classifier may choose from. GPT-6.1 Sol and Sonnet 5.5 at max move from adaptive to frontier. The fixed_steps and adaptive descriptions are sharpened. TRUEFOUNDRY_MODEL_ROUTING.categories takes an optional frontier.

  • 50ae5e0: Auto mode routes the root thread on the last few exchanges and their topic, not only the latest user message, and the basic category describes the conversation's work rather than a single request. A simple follow-up on a hard topic no longer drops the conversation to a lower category; it moves lower when simpler requests repeat, or when a new topic starts.

  • 9421cfb: Select each thread's model in the orchestrator, before the thread's first model call, instead of when the thread is built: a new turn's main thread is routed on the conversation and each new subagent on its delegated task. When model routing chooses a model, a new thread.switch_model event records it with model.name and model.params.reasoning_effort, and the model is saved with the thread. Any other model is neither recorded nor saved: a thread resumes on its saved routed model, or else on the model its spec or subagent request names, and rebuilds never route an existing thread. thread.created no longer carries a model. An unknown model or a failed Auto routing now ends the turn with an error instead of returning 422. AgentThreadOrchestrator takes a required resolveModel input; ITurnResourceResolver.resolveModel routes subagents, falls back to an Auto root's model and reports how the model was chosen, and routeModel is replaced by autoModelRouterAvailable. ISessionStore.createTurn no longer takes main_thread_model, and the new patchThreadModel saves a thread's model once chosen.

  • e4fd3d4: Backfill missing config.sandbox.environment_name on saved agents and inline session specs that have sandbox enabled, pinning each to the tenant default environment (or trueforge-sandbox-env when no default is set). Docs now require the field when sandbox is enabled instead of documenting omit-as-default.

  • cb4eff6: Add subagent model routing, off by default and enabled per tenant with TRUEFOUNDRY_MODEL_ROUTING in TrueFoundry mode. A classifier picks the task's cluster of model and effort pairs, and the subagent runs on the cheapest pair the caller has. Core adds the routing module (createModelRouter, which classifies with any IDecisionModel), IDecisionModel and OpenAIDecisionModel.

  • 4f26e1f: Record a fixed model spec's model on the main thread in the createTurn insert, and emit thread.switch_model only when routing picks a different model or effort.

  • c12c126: Built-in capabilities read the thread's model on each call instead of capturing it when built, and ITurnResourceResolver resolves a thread's model through a separate resolveModel; resolveAgentDefinition no longer takes or returns a model.

  • 8732a95: Persist the model each subagent runs on, including the effort returned with it, so a rebuilt subagent resumes on both. A subagent on a different model from its parent runs on that model's own defaults instead of the parent's params. AgentDefinition no longer carries the model; it's a separate AgentModel.

  • 5f25401: Built-in TrueForge MCP write and destructive tools require approval again, and "approve for this session" and timed approvals now work for them and carry over to later turns. IToolSet gains a required supportsApprovals flag, and approval policies apply to any tool set (system or user) where it is true. AgentThread.getUserToolSets() is replaced by getToolSets().

    • The built-in TrueForge MCP now tells the agent it can attach configured MCP servers and skills to the current chat. After attaching one, the agent asks the user to send another message, because the new tools are available from the next message.
    • TrueForge MCP internal API tool calls use the process mTLS fetch and the caller's credential directly, instead of the Fern SDK passthrough client.
  • bf57ece: The built-in TrueForge MCP now uses the same id and name, trueforge:mcp, and labels its tools as truefoundry-system instead of mcp.

  • 5e8183a: Replay Claude reasoning signatures for OpenAI-compatible providers (truefoundry, custom, fireworks, zai, together) so turns keep their plan across tool calls instead of looping to the iteration limit

  • b0ce6ec: Bump high/critical dependency advisories where possible (node-forge, follow-redirects, body-parser, js-yaml, brace-expansion, source-map-js, launch-editor) and upgrade Jest to 30.

  • 3050b24: x-tfg-mcp-headers passes per-MCP-server headers. Open-source mode merges a server's entry over its registered headers, and an entry Authorization skips DCR. TrueFoundry mode sends the entry (flat, or a nested virtual MCP map) as x-tfy-mcp-headers and no longer calls authorize before connecting. On a 401: open-source fails when the entry carried Authorization, otherwise a DCR server restarts consent; TrueFoundry fails whenever the server had an entry, otherwise asks authorize for a consent URL and fails with 422 when authorize returns none or reports no consent is needed.

Don't miss a new trueforge release

NewReleases is sending notifications on new releases.