Skip to content

1.1.6

Choose a tag to compare

@kevinpareek kevinpareek released this 04 Dec 22:55
· 137 commits to main since this release
Immutable release. Only release title and notes can be modified.

Updating from 1.1.4 keeps your accounts, keys and combos. A few defaults change: read Before
you update
first.

Before you update

  • Keyless providers are off until you switch them on. A provider that needs no key (under No
    Auth Providers on the Accounts page) used to be on by itself, so a bare model name could be sent
    to it although you had never chosen it. Now it is used only after you press Enable for it, or
    when you have an account row for it; saving a list of blocked providers, for example from an
    older dashboard tab, never switches one on. At the first start of this version, the keyless
    providers that one of your combos names are switched on once, so those combos keep working.
    After that, the combo builder offers a keyless provider only once it is switched on. If you used
    a keyless provider only by a bare model name, press Enable for it once.
  • Only a fixed list of the upstream's answer headers is passed on: the request id
    (request-id, x-request-id), retry-after, x-should-retry and the rate-limit figures
    (anthropic-ratelimit-*, x-ratelimit-*). Any other header an upstream sends, such as an
    organization or workspace id, its server name or its timings, no longer reaches the client,
    from any provider. The gateway's own x-trouteai-* headers are unchanged.
  • A round-robin combo waits instead of moving a conversation. A turn of a known conversation
    now waits for its own account, and a request whose every account is cooling down waits for the
    first one back, all inside one budget of 45 seconds (see Fixed). The queue time-out of a combo
    now defaults to 45 seconds instead of 120, so a "busy" answer (429 with Retry-After) comes
    after 45 seconds; a combo with its own queue time-out keeps it. The same default is the slot
    wait of a priority combo whose accounts have a limit of requests at once. An error about the
    request itself (see Fixed) is no longer tried on the other accounts of a round-robin combo.
  • The data folder is readable by its owner only. On Linux and macOS the gateway now makes its
    data folder readable only by the user it runs as, and the files it creates there (database,
    logs, backups, call logs) too. Files already there keep their mode, inside the closed folder. A
    folder that belongs to another user is left as it is. On Windows its access list decides, as
    before.
  • Thinking on Kiro arrives while the model thinks. A client that showed nothing until the
    answer began now shows the thinking as it is written. When an attempt is asked again (see
    Fixed), its thinking stays on screen and the new answer follows in the same message; in 1.1.4
    that thinking was dropped. Since the thinking has already reached you, a Kiro step of a combo
    that refuses after thinking, for any reason other than the one the gateway asks again for, now
    gives its refusal to the client instead of handing the request to the next step.
  • TROUTEAI_KIRO_CLAUDE_DIRECT=0 brings back the old route, not 1.1.4. It sends Claude
    Messages clients on Kiro through the OpenAI format again, so what the direct path brings (under
    New) is gone: Claude Code's own max_tokens, failed tool results marked as failed, blocks one
    after the other, a cut tool call stopping as max_tokens, and "prompt is too long" for
    compacting. Every other fix of this release stays, the live thinking too. OpenAI-format clients
    are not touched by the switch.

New

  • Claude Code on Kiro goes straight to Kiro. Before, a Claude Messages request to Kiro was
    turned into the OpenAI format, and Kiro's answer turned back again. Now both go directly
    between the Messages API and Kiro. Claude Code's own max_tokens is applied (the old route
    used a limit of its own). A tool result that failed reaches the model as failed; it read as a
    success. Thinking, text and tool calls come one block after the other, and tool input streams
    in pieces with ids of the form Claude Code expects. An answer that a limit cut or that Kiro
    refused stops as max_tokens or refusal also when it holds tool calls, so a half-written tool
    call is not run. When the conversation is too long for Kiro, Claude Code gets "prompt is too
    long" with token numbers and compacts it by itself. The switch to go back is described above.
  • Opper can be added as an account with its API key.
  • The log shows what a Kiro answer cost: one line per answer with the credits Kiro counted
    over every attempt, naming each model the answer asked, in order. It is never sent to the
    client.

Fixed in this release

  • Long thinking on Kiro is shown as it comes and is no longer cut. The gateway held Kiro's
    thinking back until the answer began, to catch a refusal first: the coding tool saw nothing, or
    only keep-alive pings, for as long as the model thought, and then all of it at once. The
    gateway's limit for a first answer counted that whole time, so in a combo an answer whose
    thinking ran longer than about five minutes was cut, started again from the beginning, and
    then failed at about ten minutes. Now the thinking reaches the client piece by piece as the
    model writes it, for Claude and OpenAI-format clients, and the limits for a first answer end at
    its first piece. A combo no longer holds Kiro's thinking back either.
  • A refusal or a break after thinking is asked again, in the same message (Kiro). When Kiro
    refuses after thinking (the "reasoning_extraction" refusal of 1.1.4), the gateway asks the same
    model again without the line that asks it to write out its reasoning, and when that is refused
    or cannot be asked, the fallback model. When the answer breaks off while only thinking has been
    shown (an overload, an error from Kiro, a cut connection), it asks once more as sent, then the
    fallback model. The answer then goes on in the same message, also on a turn that carries only
    tool results. An error reaches the client only when every ask fails.
  • A round-robin combo keeps a conversation on its own account. When its account was full or
    met a short rate limit, a conversation moved to another account, where its prompt cache is not
    warm, and when every account was cooling down the client got an error. Now, inside one budget
    of 45 seconds, a turn waits for a slot on its own account, waits out a rate limit that ends
    within 20 seconds, and, when every account is cooling down, waits for the first one back. Past
    the budget the client gets "busy" as a 429 with Retry-After, saying how long it waited and
    whether the slots are in use or paused after a rate limit. An account whose key is refused or
    whose usage is used up is left at once, as before.
  • A round-robin combo whose accounts are all rate limited asks them sparingly. When it gives
    up, the client gets a 429 (never a 503) whose Retry-After is the first reset still ahead, at
    least 1 second, and a reset beyond the 45 seconds is answered that way at once. A request
    that waits asks an account that refused it for a rate at most twice more, each wait at least
    twice the one before, so one request makes at most three calls to an account. After such a
    refusal the combo sends that account, for a minute, no more requests in a stretch of time than
    it took before it refused; a request that would go over waits or goes to another account.
  • An error about the request itself is not tried on every account of a round-robin combo. A
    400, 413 or 422 that is not about the model, a parameter or the conversation's length, a 403
    from a Claude account that is not about the account, and a request the gateway refused before
    sending (such as a model name it cannot serve) now go to the client at once. The conversation
    keeps its account; before, the request was tried on the other accounts and the conversation's
    account could change.
  • Each Claude Code session keeps its own account in a round-robin combo. A conversation was
    known by its first message, so two sessions that started alike shared one account, and a
    session could change account after a compact. Now the gateway uses the session id Claude Code
    sends, and its sub-agent id, so each session and each sub-agent keeps its own account. The
    session's title and other helper requests go to the same account as the session.
  • A conversation that went through Kiro goes on on a Claude account. A thinking block without
    a signature, such as the first attempt's thinking that stays when a Kiro answer is asked again,
    made a Claude account refuse the conversation on every later turn with "Invalid signature in
    thinking block". The gateway now never sends a thinking block without a signature to a Claude
    account, subscription or API key; signed blocks are sent as they are. The recovery after a
    refused signature now also covers a Claude API key, as it did a subscription.
  • Thinking switched off stays off on Kiro. With thinking off in Claude Code, and for its
    session titles, Claude Code also sends an effort, and the gateway read that as a request to
    think at that effort. Kiro cannot switch thinking off entirely, so the gateway now asks for the
    least: low effort, thinking not shown, and no line that asks for thinking.
  • After a tool call, Kiro no longer takes the time stamp for your message. The gateway adds a
    line with the time to the message it sends Kiro. On a turn that carried only tool results, that
    line was the turn's whole text, and the model could read it as your message and take the turn
    as one with no question in it. Such a turn now carries no time line.
  • Nothing of the conversation is dropped on the way to Kiro. Kiro has no place for some kinds
    of content, and the gateway left them out without a word: search results, MCP tool calls and
    their results, code execution results, compaction summaries, container uploads, and tool
    results whose call had been compacted away. They now reach the model as text. A tool call you
    stopped reached the model as a call that succeeded with no output; it now reads as
    interrupted. Anthropic's bash and memory tools, sent by their type only, reached the model
    without parameters; they now have them. Tool parameters that point to shared definitions, or
    that are optional, lost their type; they now keep it.
  • Your message reaches Kiro as you wrote it. Its leading indentation and closing newline were
    cut; they are now kept. The first request of a running session after the update sends its
    earlier turns that way too, so that session's prompt cache starts cold once.
  • A tool choice reaches Kiro. A forced tool, "any tool", "no tool" and "one tool call at a
    time" were dropped, because Kiro has no field for them. The gateway now adds one line to your
    message that asks for it; a forced call is asked for alone, with no text before or after it.
    Whether the model follows the line is the model's part.
  • An emoji near the 4000th character of a first message no longer breaks the session (Kiro).
    When such a character fell exactly at that point, every request of the session failed with a
    server error.
  • A model name Kiro cannot serve gets a 404 that names it, and no account is touched. A name
    such as auto-kiro, an -agentic or [1m] id, or a -thinking id of a model without thinking
    was answered 500, and every account the gateway tried was put on cooldown as if it had failed.
    Now the answer is 404 not_found_error with the name, nothing is sent upstream and the accounts
    stay as they were. Any request the gateway cannot prepare, for any provider, is answered 400
    and marks no account.
  • A model the provider does not have is a missing model, not a usage limit. A 404 from the
    provider cooled down the whole account for two minutes: the next request for that model got
    "reset after 2m", through a combo a 429 "usage limit", and the account's other models failed
    too. Now the client gets the provider's own 404, the account keeps serving its other models,
    and a model that nothing of yours serves answers 404 "Model not found".
  • A tool whose name is longer than 64 characters is called by its own name. Kiro takes names
    up to 64 characters, so the gateway shortens longer ones (long MCP tool names). The answer
    carried the shortened name back, and the coding tool called a tool it does not have. Now the
    name comes back as sent, for Claude and OpenAI-format clients, streamed or not, also with the
    direct path off. Earlier calls in the conversation are sent to Kiro under the name the tool list
    gives, whether the history holds the long name or the shortened one, so a conversation that
    used such a tool goes on on either path.
  • Claude Code's words reach a Claude subscription as you wrote them. The gateway slipped an
    invisible character into some words, such as "declined" or "cursor", in the system prompt, the
    messages and the tool descriptions. It no longer does that for a request from Claude Code;
    other clients are handled as before.
  • Errors from a Claude account reach you as Anthropic sent them. A 403 about the request
    switched a subscription account off, a 413 was retried several times, and errors came back
    rebuilt with another type and text and without the request id. Now a 403 or 413 about the
    request is answered at once as sent, the account is kept, and errors keep their type, message
    and request id. A 403 that says the organization or account is disabled still takes the
    account out. A refused account's 401 now says that the account must be connected again in the
    gateway's dashboard, and that the key used for the gateway is fine.
  • Nothing of a Claude request or answer is lost on the way. With a Claude API key, search
    results, container uploads and other message blocks were dropped, and max_tokens was capped
    at 65536; blocks now reach Claude as sent, and max_tokens up to the model's own limit (128000
    on Opus 5.5) is sent as asked. A request with MCP servers now carries the MCP beta the client
    sent. An answer that is not streamed keeps the full usage (cache parts by 5 minutes and 1 hour,
    server tool counts, service tier), as a streamed one does. A stream event of a kind the gateway
    does not know reaches the client whole instead of as an empty line.
  • An error in a streamed answer ends it. A Claude-format client got the error, a second error
    and an end event; now the stream ends at the one error, also when it comes before any content.
  • Smaller fixes in Kiro answers. A length cut no longer ends on half an emoji. The input count
    is no longer 0 when Kiro reports none. A damaged answer is no longer shown as complete: it ends
    as cut, and is asked again while only thinking has been shown. Text that merely shows an
    <invoke> tag stays text for Claude models instead of becoming a tool call.
  • A wrong gateway key fails at once in Claude Code. The gateway's own 401 and 403 for a client
    key now say x-should-retry: false, so Claude Code stops instead of retrying for minutes.
  • A gateway key can no longer use the gateway's test headers. The header of the combo live
    test switched the circuit breaker, cooldowns, quota rules and off switches out, and
    x-trouteai-connection picked the account, for anyone with a gateway key. The live test now
    counts only from the gateway itself, and the account header also from the dashboard and a
    management key; on a client's request both are ignored.
  • When nothing can answer, the error says why: that every account is cooling down and when the
    first one is free again, that the gateway's own time limit for a first answer was reached, or
    how many accounts were tried.
  • The usage page shows a real time to the first token for streamed answers; it showed the
    whole answer time. Thinking counts as the first token.
  • After trouteai reset-password the new password works at once. A sign-in could fail for a
    few seconds after the reset.
  • A client that stops reading a streamed answer through a combo lets the upstream answer go at
    once.
  • With PII redaction off (the default), requests are no longer copied and scanned on the way.

Updated: ws 8.23.0, minimatch 11.0.10 and cross-spawn 7.1.2.