claude-code - 💡(How to fix) Fix Desktop app fails at session init with "tools.122.custom.input_schema: int too big to convert" — CLI works with identical config [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47951Fetched 2026-04-15 06:37:40
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5

Error Message

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.122.custom.input_schema: int too big to convert"},"request_id":"req_011Ca3nwVVH7zMCxMY4srxEy"}

Tool at index 122 has an input_schema containing an integer value that exceeds what the API accepts (likely i64 overflow). The CLI either doesn't load this tool, loads it differently, or serializes the schema differently.

Code Example

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.122.custom.input_schema: int too big to convert"},"request_id":"req_011Ca3nwVVH7zMCxMY4srxEy"}

Tool at index 122 has an input_schema containing an integer value that exceeds what the API accepts (likely i64 overflow). The CLI either doesn't load this tool, loads it differently, or serializes the schema differently.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Starting a session in the Claude desktop app (1.2278.0, build e5213f, 2026-04-13) fails immediately at session init with a 400 API error about an oversized integer in a tool's input schema. The error fires before any user message is processed — it's in the tool registration payload. The same config works fine in the Claude Code CLI (2.1.107) via the VS Code extension.

What Should Happen?

The desktop app should load the same tool set as the CLI without triggering an oversized-integer serialization error. Session should initialize normally.

Error Messages/Logs

API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.122.custom.input_schema: int too big to convert"},"request_id":"req_011Ca3nwVVH7zMCxMY4srxEy"}

Tool at index 122 has an input_schema containing an integer value that exceeds what the API accepts (likely i64 overflow). The CLI either doesn't load this tool, loads it differently, or serializes the schema differently.

Steps to Reproduce

  1. Launch the Claude desktop app (macOS, version 1.2278.0) with the config below
  2. Start a new session — fails at init with the 400 error above
  3. Open the same repo in VS Code, launch Claude Code via the extension (CLI 2.1.107) with the identical ~/.claude.json and ~/.claude/settings.json → works fine

Troubleshooting attempted (none resolved the desktop app error):

  • Removed sequential-thinking MCP server from ~/.claude.json
  • Disabled all six plugins in ~/.claude/settings.json
  • Verified both config files are valid JSON

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.107 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

Environment:

  • Claude desktop app: 1.2278.0 (e5213f), built 2026-04-13
  • Claude Code CLI: 2.1.107
  • OS: macOS

Enabled plugins (from ~/.claude/settings.json):

  • superpowers@claude-plugins-official
  • context7@claude-plugins-official
  • github@claude-plugins-official
  • firecrawl@claude-plugins-official
  • vercel@claude-plugins-official
  • code-simplifier@claude-plugins-official

MCP servers:

  • sequential-thinking (stdio, @modelcontextprotocol/server-sequential-thinking)
  • computer-use

The fact that the CLI and desktop app produce different tool registration payloads from identical config suggests the desktop app is either loading an extra tool definition, serializing schemas differently, or hitting an encoding path the CLI doesn't.

extent analysis

TL;DR

The desktop app's tool registration payload contains an oversized integer in the input schema, causing a 400 API error, which may be due to differences in how the desktop app and CLI handle tool definitions or schema serialization.

Guidance

  • Verify that the ~/.claude.json and ~/.claude/settings.json files are identical between the desktop app and CLI configurations to ensure that the same tools and settings are being used.
  • Check the tool definitions in the ~/.claude.json file to see if there are any tools with input schemas containing large integer values that could be causing the error.
  • Compare the tool registration payloads generated by the desktop app and CLI to identify any differences in how the tools are being loaded or serialized.
  • Consider disabling tools one by one in the desktop app to isolate which tool is causing the error.

Example

No code snippet is provided as the issue is related to configuration and tool definitions rather than code.

Notes

The fact that the CLI works fine with the same configuration suggests that the issue is specific to the desktop app. The difference in behavior between the desktop app and CLI may be due to how they handle tool definitions or schema serialization.

Recommendation

Apply a workaround by identifying and modifying or disabling the tool causing the error in the desktop app, as the root cause of the issue is likely related to the tool definitions or serialization.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Desktop app fails at session init with "tools.122.custom.input_schema: int too big to convert" — CLI works with identical config [1 participants]