claude-code - 💡(How to fix) Fix Claude Desktop: repeated 404 on /api/model_configs/claude-opus-4-6[1m] [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#48302Fetched 2026-04-16 07:03:36
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

The app appends a [1m] suffix to the model ID (claude-opus-4-6[1m]) and tries to fetch its config via the API. The endpoint /api/organizations/{org_id}/model_configs/claude-opus-4-6[1m] returns 404 Not Found every time. The REACT_QUERY_CLIENT retries the request in a loop on every session or window change.

Error Message

2026-04-08 05:12:35 [error] [REACT_QUERY_CLIENT] QueryClient error: { "type": "not_found_error", "statusCode": 404, "endpoint": "/api/organizations/f9df3f20-xxxx/model_configs/claude-opus-4-6[1m]", "method": "GET", "message": "Not found" }

Root Cause

The app appends a [1m] suffix to the model ID (claude-opus-4-6[1m]) and tries to fetch its config via the API. The endpoint /api/organizations/{org_id}/model_configs/claude-opus-4-6[1m] returns 404 Not Found every time. The REACT_QUERY_CLIENT retries the request in a loop on every session or window change.

Code Example

2026-04-08 05:12:35 [error] [REACT_QUERY_CLIENT] QueryClient error: {
  "type": "not_found_error",
  "statusCode": 404,
  "endpoint": "/api/organizations/f9df3f20-xxxx/model_configs/claude-opus-4-6[1m]",
  "method": "GET",
  "message": "Not found"
}

---

2026-04-09 01:15:05 [error] [REACT_QUERY_CLIENT] QueryClient error: {
  "type": "not_found_error",
  "statusCode": 404,
  "endpoint": "/api/organizations/f9df3f20-xxxx/model_configs/claude-opus-4-6[1m]",
  "method": "GET",
  "message": "Not found"
}
RAW_BUFFERClick to expand / collapse

Bug: repeated 404 on /api/organizations/.../model_configs/claude-opus-4-6[1m]

Version: Claude Desktop 1.1.9669-1.3.26 (deb, Linux)

Description

The app appends a [1m] suffix to the model ID (claude-opus-4-6[1m]) and tries to fetch its config via the API. The endpoint /api/organizations/{org_id}/model_configs/claude-opus-4-6[1m] returns 404 Not Found every time. The REACT_QUERY_CLIENT retries the request in a loop on every session or window change.

Impact

  • 68 failed requests (404) in unknown-window.log over April 8–15
  • Same volume in claude.ai-web.log
  • Wasted network requests + noisy error logs
  • Potential performance impact (React Query retry loop)

Log excerpts

2026-04-08 05:12:35 [error] [REACT_QUERY_CLIENT] QueryClient error: {
  "type": "not_found_error",
  "statusCode": 404,
  "endpoint": "/api/organizations/f9df3f20-xxxx/model_configs/claude-opus-4-6[1m]",
  "method": "GET",
  "message": "Not found"
}
2026-04-09 01:15:05 [error] [REACT_QUERY_CLIENT] QueryClient error: {
  "type": "not_found_error",
  "statusCode": 404,
  "endpoint": "/api/organizations/f9df3f20-xxxx/model_configs/claude-opus-4-6[1m]",
  "method": "GET",
  "message": "Not found"
}

Probable cause

The [1m] suffix (1M context window) is appended to the model ID before the API call, but the API expects claude-opus-4-6 without the suffix. The model ID should be stripped of the [...] part before the model_configs request.

Environment

  • OS: Linux Mint, x86_64 (kernel 6.8.0-110-generic)
  • Claude Desktop: 1.1.9669-1.3.26 (deb package)
  • Electron: /usr/lib/claude-desktop/node_modules/electron/dist/electron
  • Reproduces on every launch

extent analysis

TL;DR

Remove the [1m] suffix from the model ID before making the API request to /api/organizations/{org_id}/model_configs/{model_id}.

Guidance

  • Verify that the model ID is correctly formatted before the API call by checking the code that appends the [1m] suffix and ensure it is removed or not appended in the first place.
  • Inspect the API documentation to confirm the expected format of the model ID in the model_configs endpoint.
  • Consider adding input validation or sanitization to prevent similar issues with malformed model IDs in the future.
  • Review the React Query client configuration to understand the retry loop behavior and consider adjusting it to prevent excessive requests.

Example

// Example of removing the suffix from the model ID
const modelId = 'claude-opus-4-6[1m]';
const cleanedModelId = modelId.replace(/\[.*\]/, '');
console.log(cleanedModelId); // Output: "claude-opus-4-6"

Notes

The provided information suggests that the issue is specific to the Claude Desktop application and its interaction with the API. The solution may need to be adapted based on the actual implementation details of the application.

Recommendation

Apply a workaround to remove the [1m] suffix from the model ID before making the API request, as this is the most direct way to address the issue based on the provided information.

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