Skip to content

fix(responses): one answer for which tool a bridged call is, read by the reply, tool permission and spend logs - #53269

Merged
ryan-crabbe-berri merged 3 commits into
mainfrom
litellm_responses_bridge_long_tool_names
Nov 24, 2026
Merged

ryan-crabbe-berri merged 3 commits into
mainfrom
litellm_responses_bridge_long_tool_names

Conversation

@ryan-crabbe-berri

@ryan-crabbe-berri ryan-crabbe-berri commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

We shorten long tool names when Codex calls /v1/responses on Claude through Bedrock, and now the reply, tool permission and spend logs all read one answer for which tool a short name stands for, so a deny rule on the real name finally fires.

Details

TLDR

  • When a tool name is too long, LiteLLM sends the model a shorter one and swaps the real name back afterwards.
  • Codex can resume a session before its MCP tools are listed again. The model then calls the short name it saw earlier, and LiteLLM handed that short name back unchanged, so Codex couldn't run it.
  • Tool permission rules also judged the wrong name. A rule on the real tool didn't apply to the short name, a rule on a whole namespace like exec didn't apply at all, and a deferred top-level tool was judged as if it sat in a namespace of its own name.
  • Now one answer, built in one place, says which tool the caller gets back for every name the model can call, either a tool inside a namespace or a deferred top-level tool. The reply, the tool permission check and spend logs all read that same answer, so they can't disagree.

Intentional product change: a tool permission rule on a namespace or tool name, like ^exec$, now also applies on /v1/responses requests that go through the chat completions bridge, where before it was skipped. Spend logs also name a bridged call by the tool the caller gets back, so a provider that answers with a namespace tool's bare name, like run, now logs as exec__run. Calls the provider answers with the full or shortened name log the same as before.

The shortening itself landed on main in #50768. This PR started as the LIT-10289 fix and was rebuilt on top of that, keeping only the gaps it left.

User Flow

Before: a Codex user resumes a session on Claude through LiteLLM, and the earlier MCP tool comes back under a name Codex doesn't know.

  1. They run Codex against http://<litellm>/v1 as a responses provider, with an MCP server vault whose tool name is 78 characters
  2. They resume the session, and Codex sends POST /v1/responses with the earlier vault call in the history but before the vault tool is listed again
  3. The response holds a function_call named mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908 with no namespace
  4. Codex fails with unsupported call: mcp__vault__read_the_..._f96e7908

After: the same resumed turn calls the real tool.

  1. They run Codex against http://<litellm>/v1 as a responses provider, with an MCP server vault whose tool name is 78 characters
  2. They resume the session, and Codex sends POST /v1/responses with the earlier vault call in the history but before the vault tool is listed again
  3. The response holds a function_call named read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given with namespace mcp__vault
  4. Codex runs the vault tool and answers with the new secret

The same answer also fixes tool permission on POST /v1/responses. A proxy admin who denies ^exec$ and allows everything else used to see a call to the run tool in namespace exec go through. A deny on the long vault tool's real name also didn't apply. Now both come back as Permission denied: Tool ... denied by rule ... instead of the call.

Linear ticket

Resolves LIT-10289

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

Screenshots / Proof of Fix

Before is the merge base b1ea9ae7dcf. After is the latest product commit 0d1f88a3685. One case also runs at 9f9d069878e, the PR's previous tip, because that is where it broke. Every proxy runs from a git archive of the named commit with one worker and no Redis, and the native bridge built at b1ea9ae7dcf (this PR touches no Rust). The spend log leg adds a throwaway Postgres. These are single requests with no shared rate limit, budget or router state. Tool permission runs are non-streaming because streaming /v1/responses with a post-call tool permission guardrail already fails on main (see Caveats).

Models are Anthropic anthropic/claude-sonnet-5-5 and Bedrock bedrock/us.anthropic.claude-sonnet-5-5. On Anthropic a deferred tool stays hidden until tool search loads it, so the model can't call it directly and the deferred case only runs on Bedrock. Case 4 uses neutral wording because Bedrock's content filter blocked an earlier version of that prompt.

Proxy start, env var names, configs and clients
PYTHONPATH="$TREE:$TREE/litellm/proxy-extras:$TREE/litellm/enterprise" RUST_MIN_STACK=16777216 LITELLM_LOCAL_MODEL_COST_MAP=True \
  python -P -c 'from litellm.proxy.proxy_cli import run_server; run_server()' \
  --config <config.yaml> --host 127.0.0.1 --port 4627 --detailed_debug

The spend log leg adds a Prisma client generated from the tree's schema at the front of PYTHONPATH, sets DATABASE_URL to a fresh database on a local Postgres, adds --use_v2_migration_resolver, runs on port 4628, and reads GET /v1/tool/spend about 20 seconds after the calls.

Env var names: LITELLM_MASTER_KEY (fresh random key), ANTHROPIC_API_KEY, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION_NAME=us-east-1, plus DATABASE_URL and LITELLM_LICENSE for the spend log leg.

Resumed-turn config (no guardrail):

model_list:
  - model_name: bedrock-sonnet
    litellm_params:
      model: bedrock/us.anthropic.claude-sonnet-5-5
      aws_region_name: us-east-1
  - model_name: anthropic-sonnet
    litellm_params:
      model: anthropic/claude-sonnet-5-5
      api_key: os.environ/ANTHROPIC_API_KEY
  - model_name: gemini-latest
    litellm_params:
      model: gemini/gemini-4-neon
      api_key: os.environ/GEMINI_API_KEY
general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY

Namespace and custom tool config:

model_list:
  - model_name: anthropic-sonnet
    litellm_params:
      model: anthropic/claude-sonnet-5-5
      api_key: os.environ/ANTHROPIC_API_KEY
      guardrails: ["id-perm"]
  - model_name: bedrock-sonnet
    litellm_params:
      model: bedrock/us.anthropic.claude-sonnet-5-5
      aws_region_name: us-east-1
      guardrails: ["id-perm"]
guardrails:
  - guardrail_name: id-perm
    litellm_params:
      guardrail: tool_permission
      mode: post_call
      rules:
        - id: deny_exec_namespace
          tool_name: "^exec$"
          decision: deny
        - id: deny_vault_named_custom_tool
          tool_name: "^mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908$"
          decision: deny
        - id: allow_everything_else
          tool_name: "^.*$"
          decision: allow
      default_action: deny
      on_disallowed_action: rewrite
general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY

Vault tool config:

model_list:
  - model_name: anthropic-sonnet
    litellm_params:
      model: anthropic/claude-sonnet-5-5
      api_key: os.environ/ANTHROPIC_API_KEY
      guardrails: ["id-perm"]
  - model_name: bedrock-sonnet
    litellm_params:
      model: bedrock/us.anthropic.claude-sonnet-5-5
      aws_region_name: us-east-1
      guardrails: ["id-perm"]
guardrails:
  - guardrail_name: id-perm
    litellm_params:
      guardrail: tool_permission
      mode: post_call
      rules:
        - id: deny_vault_read
          tool_name: "^mcp__vault__read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given$"
          decision: deny
        - id: allow_everything_else
          tool_name: "^.*$"
          decision: allow
      default_action: deny
      on_disallowed_action: rewrite
general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY

Deferred tool config:

model_list:
  - model_name: anthropic-sonnet
    litellm_params:
      model: anthropic/claude-sonnet-5-5
      api_key: os.environ/ANTHROPIC_API_KEY
      guardrails: ["deferred-perm"]
  - model_name: bedrock-sonnet
    litellm_params:
      model: bedrock/us.anthropic.claude-sonnet-5-5
      aws_region_name: us-east-1
      guardrails: ["deferred-perm"]
guardrails:
  - guardrail_name: deferred-perm
    litellm_params:
      guardrail: tool_permission
      mode: post_call
      rules:
        - id: allow_read_namespace
          tool_name: "^read__.*$"
          decision: allow
      default_action: deny
      on_disallowed_action: rewrite
general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY

Spend log config:

model_list:
  - model_name: anthropic-sonnet
    litellm_params:
      model: anthropic/claude-sonnet-5-5
      api_key: os.environ/ANTHROPIC_API_KEY
  - model_name: bedrock-sonnet
    litellm_params:
      model: bedrock/us.anthropic.claude-sonnet-5-5
      aws_region_name: us-east-1
general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY
  proxy_batch_write_at: 2

Resumed-turn client, run as python resume_call.py <model> nostream|stream:

import json, sys, urllib.request
from pathlib import Path
KEY = (Path(__file__).parent / ".mk").read_text().strip()
LONG = "read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given"
stream = sys.argv[2] == "stream"
body = {"model": sys.argv[1], "stream": stream,
        "tools": [{"type": "function", "name": "shell", "description": "Run a shell command", "parameters": {"type": "object", "properties": {"cmd": {"type": "string"}}}}],
        "input": [
            {"type": "message", "role": "user", "content": f"Call the {LONG} tool."},
            {"type": "function_call", "call_id": "call_prev_1", "name": LONG, "namespace": "mcp__vault", "arguments": "{}"},
            {"type": "function_call_output", "call_id": "call_prev_1", "output": "first-secret"},
            {"type": "message", "role": "user", "content": "The secret rotated. Call that same vault tool again right now, not the shell tool."},
        ]}
req = urllib.request.Request("http://127.0.0.1:4627/v1/responses", json.dumps(body).encode(), {"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"})
try:
    resp = urllib.request.urlopen(req, timeout=180)
    out = json.load(resp)["output"] if not stream else [json.loads(l[6:])["response"]["output"] for l in resp.read().decode().splitlines() if l.startswith("data: ") and '"response.completed"' in l][-1]
    print(json.dumps({"status": 200, "calls": [(o.get("name"), o.get("namespace")) for o in out if o.get("type") == "function_call"]}))
except urllib.error.HTTPError as e:
    print(json.dumps({"status": e.code, "error": e.read().decode()[:200]}))

Tool permission client, run as python id_call.py <model> exec|custom_neutral|vault|deferred. The spend log leg runs the same client with the key and port read from the environment:

import json, sys, urllib.request
from pathlib import Path
KEY = (Path(__file__).parent / ".mk").read_text().strip()
LONG = "read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given"
SHORT = "mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908"
model, case = sys.argv[1], sys.argv[2]
if case == "exec":
    body = {"tools": [{"type": "namespace", "name": "exec", "description": "Shell tools", "tools": [
                {"type": "function", "name": "run", "description": "Runs a shell command",
                 "parameters": {"type": "object", "properties": {"cmd": {"type": "string"}}}}]}],
            "input": "Call the run tool with cmd 'ls' now. Do not answer in text first."}
elif case == "custom":
    body = {"tools": [{"type": "custom", "name": SHORT, "description": "Reads a note. Input is the note id."}],
            "input": [
                {"type": "message", "role": "user", "content": "Fetch the vault secret."},
                {"type": "function_call", "call_id": "call_prev_1", "name": LONG, "namespace": "mcp__vault", "arguments": "{}"},
                {"type": "function_call_output", "call_id": "call_prev_1", "output": "first-secret"},
                {"type": "message", "role": "user", "content": f"Now call the {SHORT} tool with input 'note-7'. Do not answer in text first."},
            ]}
elif case == "deferred":
    body = {"tools": [{"type": "function", "name": "read", "description": "Reads a library note by id", "defer_loading": True,
                       "parameters": {"type": "object", "properties": {"id": {"type": "string"}}}}],
            "input": "Call the read tool with id note-7 now. Do not answer in text first."}
    body["tools"].append({"type": "function", "name": "echo", "description": "Echoes text",
                          "parameters": {"type": "object", "properties": {"text": {"type": "string"}}}})
elif case == "custom_neutral":
    body = {"tools": [{"type": "custom", "name": SHORT, "description": "Looks up a library note by id. Input is the note id."}],
            "input": [
                {"type": "message", "role": "user", "content": "Look up the first library note."},
                {"type": "function_call", "call_id": "call_prev_1", "name": LONG, "namespace": "mcp__vault", "arguments": "{}"},
                {"type": "function_call_output", "call_id": "call_prev_1", "output": "Note 1 is about tide tables."},
                {"type": "message", "role": "user", "content": "Thanks. Now use the note lookup tool with input note-7."},
            ]}
else:
    body = {"tools": [{"type": "namespace", "name": "mcp__vault", "description": "Vault tools", "tools": [
                {"type": "function", "name": LONG, "description": "Returns the secret", "parameters": {"type": "object", "properties": {}}}]}],
            "input": f"Call the {LONG} tool now. Do not answer in text first."}
body = {"model": model, **body}
req = urllib.request.Request("http://127.0.0.1:4627/v1/responses", json.dumps(body).encode(), {"Authorization": f"Bearer {KEY}", "Content-Type": "application/json"})
try:
    out = json.load(urllib.request.urlopen(req, timeout=180))["output"]
    calls = [(o.get("type"), o.get("name"), o.get("namespace")) for o in out if o.get("type") in ("function_call", "custom_tool_call")]
    text = " ".join(c.get("text", "") for o in out if o.get("type") == "message" for c in o.get("content", []))
    print(json.dumps({"status": 200, "calls": calls, "text": text[:170]}))
except urllib.error.HTTPError as e:
    print(json.dumps({"status": e.code, "error": e.read().decode()[:220]}))

Before (b1ea9ae)

  1. Resumed turn. Bedrock returned [["mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908", null]], the short name with no namespace, non-stream and stream. Anthropic returned the same non-stream and made no tool call in its stream run
  2. exec namespace tool with a deny on ^exec$. Anthropic and Bedrock both returned [["function_call", "run", "exec"]], so the denied tool went through
  3. Long vault tool with a deny on its real name. Anthropic and Bedrock both returned [["function_call", "read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given", "mcp__vault"]], so the denied tool went through
  4. Custom tool named like the vault tool's short name, with a deny on that custom name and the vault tool in the history. Anthropic and Bedrock both returned Permission denied: Tool 'mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908' denied by rule 'deny_vault_named_custom_tool'. Main is fine here
  5. Deferred top-level tool read with only ^read__.*$ allowed and a default of deny. Bedrock returned Permission denied: Tool 'read' denied by default action twice. Main is fine here
  6. Spend logs. After the vault, exec and deferred read calls, GET /v1/tool/spend listed mcp__vault__read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given (2 calls), exec__run (2 calls) and read (1 call)

Previous tip (9f9d069)

  1. Case 5 returned [["function_call", "read", "read"]] on Bedrock twice. The check judged read as read__read, so the namespace allow let it through. This is the bypass Veria found
  2. Cases 2 and 4 were already fixed at this tip (Anthropic and Bedrock deny both, shown in the earlier round below)

After (0d1f88a)

  1. Resumed turn. Bedrock returned [["read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given", "mcp__vault"]], non-stream and stream. Anthropic returned the same in its stream run and made no tool call in its non-stream run
  2. Case 2 returned no call and Permission denied: Tool 'exec' denied by rule 'deny_exec_namespace' on Anthropic and Bedrock
  3. Case 3 returned no call and Permission denied: Tool 'mcp__vault__read_the_current_secret_value_from_the_vault_that_this_codex_session_was_given' denied by rule 'deny_vault_read' on Anthropic and Bedrock
  4. Case 4 returned no call and Permission denied: Tool 'mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908' denied by rule 'deny_vault_named_custom_tool' on Anthropic and Bedrock
  5. Case 5 returned Permission denied: Tool 'read' denied by default action on Bedrock twice
  6. Spend logs listed the same three tools with the same call counts and spend as before. Real models answer with the joined name, so the bare-name rename only shows when a provider answers with an unqualified name. The unit test below covers that

Earlier rounds

At b7a83256e24 before and 95a011b74f5 as the previous tip, case 4 went through at 95a011b74f5 on Anthropic and Bedrock ([["custom_tool_call", "mcp__vault__read_the_current_secret_value_from_the_vaul_f96e7908", null]]), which is the bypass Greptile found, and case 2 went through too. At 7c6ec9f5a09 before and 1288d12d6ce after, the Codex row from #49826 on claude_bedrock with a resumed turn passed 4 of 4 on main and 3 of 3 on this branch.

Unit tests

New tests run the real bridge and then the guardrail on what it recorded, for a namespace tool known only from history, a custom tool sharing a short name from history, and a deferred top-level tool under a namespace allow rule. A spend log test checks the logged name for a bare member, a joined member, a deferred tool and a plain function. The deferred guardrail test and the bare-member spend log case fail at 9f9d069878e and pass at the tip, and the other spend log cases pass at both. Older tests cover the resumed-turn mapping, the long-name deny, and a forged name map in the request body being ignored.

Type

🐛 Bug Fix

Caveats (if any)

Medium

  • Streaming /v1/responses with a post-call tool permission guardrail fails on main with Error building chunks, before and after this PR. So the tool permission cases are shown without streaming
  • A custom tool whose name equals a declared namespace tool's short name still reaches the provider as two tools with one name, as on main. The caller and the permission check now both see the custom tool
  • Main's shortening keeps a 55 character prefix, so tools in one long namespace can look alike to the model

Low

  • A previous_response_id follow-up only learns a name from history that the new input carries

Note

Medium Risk
Touches permission enforcement and spend attribution on bridged /v1/responses paths; behavior intentionally changes for namespace rules and bare-name logging.

Overview
Unifies which tool the caller sees when the Responses API is bridged through chat completions, replacing simple sent-name → full-name strings with structured BridgedTool objects (NamespaceMember, DeferredTopLevelTool).

namespace_tool_name_map now accepts conversation history so shortened names from prior function_call items resolve when tools are not listed again on resume. That single map drives response conversion, logging (record_bridged_tool_names), tool permission guardrails (rules match caller-facing names, not provider-only short names), and spend log tool indexing.

Deferred top-level tools are no longer misclassified as namespace members. Client-forged bridged name maps are ignored in favor of values recorded on the logging object.

Reviewed by Cursor Bugbot for commit 0d1f88a. Bugbot is set up for automated code reviews on this repo. Configure here.

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@veria-ai

veria-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Fixed/addressed: 3 · PR risk: 0/10

Reviews

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge, with no new actionable issues found.

Summary

The PR gives bridged tool calls one shared identity for replies, permission checks, and spend logs.

  • Resumed Responses calls get the original tool name and namespace.
  • Tool permission rules check the identity returned to the caller.
  • Spend logs use the full name for bridged namespace tools.

ryan-crabbe-berri intentionally retained the earlier collision exception pattern because nearby checks use the same approach. They also explained that the single-worker proof uses independent requests with no shared counters. Greptile accepted both explanations.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A[Declared tools and request history] --> B[Shared tool identity map]
    B --> C[Reply names]
    B --> D[Tool permission checks]
    B --> E[Spend log names]
Loading

Reviews (6) · Last reviewed commit: "fix(responses): one tagged tool answer f..." · Reviewed by Greptile

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor

cursor Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Bugbot is paused — your team has an unpaid invoice

Bugbot is paused because your team has an unpaid invoice.

Pay it from the billing page in the Cursor dashboard and Bugbot resumes automatically.

(requestId: 62bab0d1-8d88-4eb3-a28f-57f48c413f7e)

@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_responses_bridge_long_tool_names branch from 1799deb to 1288d12 Compare November 21, 2026 21:35
@ryan-crabbe-berri ryan-crabbe-berri changed the title fix(responses): keep namespace tool names within 64 characters in the chat completions bridge fix(responses): one lookup for shortened tool names on resumed turns and in tool permission Nov 21, 2026
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai

@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_responses_bridge_long_tool_names branch 2 times, most recently from 91a2164 to e970a95 Compare November 23, 2026 20:50
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai review

@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_responses_bridge_long_tool_names branch from e970a95 to 1aa91c9 Compare November 23, 2026 21:44
@ryan-crabbe-berri ryan-crabbe-berri changed the title fix(responses): one lookup for shortened tool names on resumed turns and in tool permission fix(responses): one answer for which tool a bridged call is, read by the reply and tool permission Nov 23, 2026
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai review

@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_responses_bridge_long_tool_names branch from 1aa91c9 to a1399b8 Compare November 24, 2026 05:38
…umed turns and by tool permission

The Responses-to-chat bridge sends a long namespace tool under a shortened name. The lookup from
that name back to the caller's namespace and tool now also learns names from earlier namespaced
calls in the history, so a resumed Codex session whose MCP tools are not listed yet gets the real
tool back instead of an unknown call. The bridge records that one lookup on the request's logging
object, and the tool permission guardrail reads the same record, so a rule written against the full
name also applies to the shortened name the provider was sent. A client cannot set the record from
its own request body.
… back

The tool permission guardrail read a filtered copy of the bridge's name lookup, so a namespace tool that
was not shortened, or a custom tool sharing a shortened name from history, was judged under a different
name than the one the caller received. The lookup now leaves out custom tool names, the bridge records all
of it, and only logs keep renaming just the shortened names.
… and spend logs

A deferred top-level tool was recorded as if it were a member of a namespace with its own name, so tool
permission judged it as name__name and a namespace allow rule could let it through. Each bridged name now
maps to either a namespace member or a deferred top-level tool, and the reply, tool permission and spend
logs all read that same answer without filtering it.
@ryan-crabbe-berri
ryan-crabbe-berri force-pushed the litellm_responses_bridge_long_tool_names branch from a1399b8 to 0d1f88a Compare November 24, 2026 06:55
@ryan-crabbe-berri ryan-crabbe-berri changed the title fix(responses): one answer for which tool a bridged call is, read by the reply and tool permission fix(responses): one answer for which tool a bridged call is, read by the reply, tool permission and spend logs Nov 24, 2026
@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

@greptileai review

@ryan-crabbe-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 0d1f88a. Configure here.

@ryan-crabbe-berri
ryan-crabbe-berri enabled auto-merge (squash) November 24, 2026 22:23

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@ryan-crabbe-berri
ryan-crabbe-berri merged commit 6bc95ab into main Nov 24, 2026
62 checks passed
@ryan-crabbe-berri
ryan-crabbe-berri deleted the litellm_responses_bridge_long_tool_names branch November 24, 2026 22:26
ryan-crabbe-berri added a commit that referenced this pull request Nov 24, 2026
…64 characters

Codex sends the tool inside the mcp__vault namespace, so the joined name runs to 90 characters, past Bedrock's limit of 64. The row runs on every setup and passes on the random value the tool returns, with Codex seeing the tool's full original name. It guards LIT-10289, fixed by #53269
ryan-crabbe-berri added a commit that referenced this pull request Nov 25, 2026
…64 characters (#49826)

Codex sends the tool inside the mcp__vault namespace, so the joined name runs to 90 characters, past Bedrock's limit of 64. The row runs on every setup and passes on the random value the tool returns, with Codex seeing the tool's full original name. It guards LIT-10289, fixed by #53269
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants