HTTP 413 (Payload Too Large) when using Browser MCP screenshot with DeepSeek V4.1 Flash (GOAT plan)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 42/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- github
- Domínio
- backend-api-design
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Sem dados de linguagem
- Estrelas
- 4.2k
- Forks
- 377
- Merge médio
- 1d 3h
- PRs com merge (30d)
- 6
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CommandCodeAI/command-code
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
CommandCodeAI/command-code#1085 ·
Mantenedores costumam responder em até 1 dia
-
Feature request: auto-reconnect remote control (/rc) after restartTalvez já em andamento @aliarain assumiu há 20 dias. Abertap2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
CommandCodeAI/command-code#992 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CommandCodeAI/command-code#933 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CommandCodeAI/command-code#855 ·
Mantenedores costumam responder em até 1 dia
-
grep tool passes empty file type to ripgrepTalvez já em andamento @ahmadbilaldev assumiu há 19 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CommandCodeAI/command-code#655 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de CommandCodeAI/command-code
Issues semelhantes
-
feature javascript
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 61/100
mattgodbolt/jsbeeb#1833 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
DiamondLightSource/eiger-correction#2 · 1 comentário ·
-
[kunminghu-v3] Debug SBA 32/64-bit accesses hang: missing TLWidthWidget(1) on error_xbar pathAbertamodule: backend type: bug/reported
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
OpenXiangShan/XiangShan#6938 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetTalvez já em andamento @matejk assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
pocoproject/poco#5674 ·
Mantenedores costumam responder em até 2 dias