anthropics / anthropics/claude-code

[BUG] /context in Claude Code for VS Code causes request spikes and may trigger rate limits or DoS protection

Abierto
#88,171 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Python
Estrellas
145k
Forks
23.1k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

### Preflight Checklist

- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code

### What's Wrong?

When using the `/context` command in Claude Code for VS Code, a large number of requests are generated within a short period. This easily triggers API rate limiting and may even get blocked due to false detection of a DoS attack.

In version 3.4, I observed a sudden surge in request volume upon executing this command, which disrupts normal usage.

### What Should Happen?

The `/context` command should operate without triggering an abnormal request storm and should avoid sending excessive requests to the API within a short time frame. Even when gathering context, it must not result in rate limiting or security-based blocking.

### Error Messages/Logs

```shell

```

### Steps to Reproduce

1. Use Claude Code for VS Code, version 3.4.
2. Run the `/context` command.
3. Observe a significant spike in network requests/traffic within a short period.
4. This may trigger API rate limits, or get flagged and blocked by security systems as suspected DoS activity.
5. The attached screenshot illustrates the sharp surge in data volume when executing this command.

### Claude Model

Sonnet (default)

### Is this a regression?

No, this never worked

### Last Working Version

3.4 之前的版本

### Claude Code Version

3.4

### Platform

Other

### Operating System

macOS

### Terminal/Shell

Terminal.app (macOS)

### Additional Information

补充说明:问题主要发生在 Claude Code for VS Code 场景下;图中可见 `/context` 执行期间请求/流量在短时间内显著飙升。希望能优化 `/context` 的请求节流、批处理或缓存策略。

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

No source file or test is named. Start by reproducing `/context` in Claude Code for VS Code 3.4 on macOS and measure the request spike; done means the command no longer sends excessive requests or triggers rate limiting and DoS protection.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python, vscode
Área
api, cli, devtools
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.