HTTP 413 (Payload Too Large) when using Browser MCP screenshot with DeepSeek V4.1 Flash (GOAT plan)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- github
- Área
- backend-api-design
Línea de trabajo
Start by locating the /v1/chat/completions request path and the proxy or gateway configuration that handles its body size. Then trace how screenshot tool results and accumulated agent history are sent, and check the project’s existing tests for large request payloads. Done means reproducing the 413 and confirming the chosen handling lets the request complete without losing needed image context.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
When using the Command Code API (via GOAT plan) with the Zed code editor and Browser MCP (browsermcp.browser_screenshot), requests frequently fail with HTTP 413 (Payload Too Large), resulting in the Zed AI assistant error: "Request Failed: The provider rejected this request".
Root Cause
Browser MCP captures screenshots at high/Retina resolution (e.g. 1568x849 or higher) and encodes them as raw base64 strings in the request body.
- When combined with agent history, the total request payload size exceeds the upstream reverse-proxy/Cloudflare limit (typically ~10 MB).
- Furthermore, Zed's agent loop resends the full accumulated history (including past base64 images) on subsequent turns, compounding the payload size and causing permanent thread lock/compaction failure.
Environment & Logs
- Plan: GOAT Plan
- Model:
deepseek/deepseek-v4.1-flash - Client: Zed Editor + Browser MCP
- CPA / Proxy Log Sample:
[2026-11-07 19:52:30] [4f23fbf1] [warn ] [gin_logger.go:111] 413 | 7.017s | ::1 | POST "/v1/chat/completions"
Suggested Improvements
- Increase or adjust upstream proxy limits (
client_max_body_size) on Cloudflare/gateway for multimodal/vision requests. - Provide guidance or automatic downscaling/compression options for base64 image attachments in tool results.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 4.2k
- Forks
- 377
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 6
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CommandCodeAI/command-code
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
CommandCodeAI/command-code#1085 ·
Los mantenedores suelen responder en 1 día
-
Feature request: auto-reconnect remote control (/rc) after restartPosiblemente ocupada @aliarain la tomó hace 20 días. Abiertop2
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
CommandCodeAI/command-code#992 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CommandCodeAI/command-code#933 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CommandCodeAI/command-code#855 ·
Los mantenedores suelen responder en 1 día
-
grep tool passes empty file type to ripgrepPosiblemente ocupada @ahmadbilaldev la tomó hace 19 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
CommandCodeAI/command-code#655 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de CommandCodeAI/command-code
Issues similares
-
feature javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
mattgodbolt/jsbeeb#1833 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DiamondLightSource/eiger-correction#2 · 1 comentario ·
-
[kunminghu-v3] Debug SBA 32/64-bit accesses hang: missing TLWidthWidget(1) on error_xbar pathAbiertomodule: backend type: bug/reported
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
OpenXiangShan/XiangShan#6938 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetPosiblemente ocupada @matejk la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pocoproject/poco#5674 ·
Los mantenedores suelen responder en 2 días