Patch Changes
-
bf0fa02: The agent spec
modelis now{ type: "fixed", name, params? }or{ type: "auto", candidate_models }(4 to 10 models).
A migration rewrites saved agents and inline sessions. Requests withouttypestill work. -
c7cf075: Admins can choose which models Auto may route to (
auto_model_routing.candidate_models: 4 to 10account/modelnames; 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:
autospecs are rejected and subagents run on their parent's model.GET /api/v1/capabilitiesnow returnsauto: { status, reason? }wherestatusisnot_configured,disabled, orenabled, replacingauto.enabled. The configuration manifest addsauto_model_routing: { enabled }. -
57779a6:
GET /api/v1/capabilitiesreportsauto.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 addscanRouteEveryCategory. -
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_schemacan resolve result shapes forpreload: truetools. 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/modelsnow reportsproperties.auto_routingfor 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 returnscanonical_model,nullwhen unknown. The read shape is the newResolvedModelProperties;ModelPropertiesis unchanged. -
28b3711: The MCP headers resolver's 401 hook is
onUnauthorizedand returns consent. Omitting the hook fails the 401. Anx-tfg-mcp-headersentry whoseAuthorizationis spelled in any casing still skips DCR. -
fe199af: Tag every model call with
tfg.thread_idin 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_stepsandadaptivetobasic,standardandadvanced. Each category description now stands on its own, without referring to another category.TRUEFOUNDRY_MODEL_ROUTINGcategoriestakes the new keys. -
80803da: Revert the internal
POST /api/internal/sessions/{session_id}/turnsendpoint and theservicesession source arm. KeepgetSessionByIdfor 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
frontiermodel cluster. Subagents are never offered it, andRouteInputnow takes thecategoriesthe classifier may choose from. GPT-6.1 Sol and Sonnet 5.5 atmaxmove fromadaptivetofrontier. Thefixed_stepsandadaptivedescriptions are sharpened.TRUEFOUNDRY_MODEL_ROUTING.categoriestakes an optionalfrontier. -
50ae5e0: Auto mode routes the root thread on the last few exchanges and their topic, not only the latest user message, and the
basiccategory 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_modelevent records it withmodel.nameandmodel.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.createdno longer carries a model. An unknown model or a failed Auto routing now ends the turn with an error instead of returning 422.AgentThreadOrchestratortakes a requiredresolveModelinput;ITurnResourceResolver.resolveModelroutes subagents, falls back to an Auto root's model and reports how the model was chosen, androuteModelis replaced byautoModelRouterAvailable.ISessionStore.createTurnno longer takesmain_thread_model, and the newpatchThreadModelsaves a thread's model once chosen. -
e4fd3d4: Backfill missing
config.sandbox.environment_nameon saved agents and inline session specs that have sandbox enabled, pinning each to the tenant default environment (ortrueforge-sandbox-envwhen 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_ROUTINGin 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 anyIDecisionModel),IDecisionModelandOpenAIDecisionModel. -
4f26e1f: Record a fixed model spec's model on the main thread in the createTurn insert, and emit
thread.switch_modelonly 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
ITurnResourceResolverresolves a thread's model through a separateresolveModel;resolveAgentDefinitionno 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.
AgentDefinitionno longer carries the model; it's a separateAgentModel. -
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.
IToolSetgains a requiredsupportsApprovalsflag, and approval policies apply to any tool set (system or user) where it is true.AgentThread.getUserToolSets()is replaced bygetToolSets().- 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 astruefoundry-systeminstead ofmcp. -
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-headerspasses per-MCP-server headers. Open-source mode merges a server's entry over its registered headers, and an entryAuthorizationskips DCR. TrueFoundry mode sends the entry (flat, or a nested virtual MCP map) asx-tfy-mcp-headersand no longer calls authorize before connecting. On a 401: open-source fails when the entry carriedAuthorization, 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.