[Bug] `/context` command duplicates and fails to return results when using databricks claude anthropic endpoint
Bug Description
The /context command fails when using Claude Code with Databricks as a proxy. The command triggers API calls that Databricks endpoints don't support, resulting in 404 errors.
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.71
- Feedback ID:
- Model: databricks-claude-opus-4-5
- Databrick endpoint: https://adb-workspace.azuredatabricks.net/serving-endpoints/anthropic
Configuration
Using Databricks as proxy via ~/.claude/settings.json:
{
"env": {
"ANTHROPIC_MODEL": "databricks-claude-opus-4-5",
"ANTHROPIC_BASE_URL": "https://adb-xxx.azuredatabricks.net/serving-endpoints/anthropic"
}
}
Steps to Reproduce
- Configure Claude Code to use Databricks as a proxy
- Run /context command
Expected Behavior
/context should either work or show a clear error message that it's not supported for third-party proxies.
Actual Behavior
The command fails silently (no visible error in the UI). Debug logs show repeated 404 errors:
[ERROR] Error: Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations
Errors
[{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.948Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.948Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.949Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.949Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.949Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.954Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.954Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.966Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.966Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.966Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.966Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.966Z"},{"error":"Error: 404 Path must be of form /serving-endpoints/<endpoint_name>/invocations or /serving-endpoints/<endpoint_name>/served-models/<served_model_name>/invocations\n at generate (/$bunfs/root/claude:412:10531)\n at makeRequest (/$bunfs/root/claude:749:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-12-15T02:45:14.972Z"},
Note: Error logs were truncated.
<img width="1236" height="684" alt="Image" src="https://github.com/user-attachments/assets/71bd0980-04c5-4b26-9380-1a328f11244f" />
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗