HTTP 413 (Payload Too Large) when using Browser MCP screenshot with DeepSeek V4.1 Flash (GOAT plan)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github
- Ambito
- backend-api-design
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 4.2k
- Fork
- 377
- Merge medio
- 1g 3h
- PR unite (30g)
- 6
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CommandCodeAI/command-code
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
CommandCodeAI/command-code#1085 ·
I maintainer di solito rispondono entro 1 giorno
-
Feature request: auto-reconnect remote control (/rc) after restartForse già presa @aliarain l’ha presa 20 giorni fa. Apertap2
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
CommandCodeAI/command-code#992 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/command-code#933 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/command-code#855 ·
I maintainer di solito rispondono entro 1 giorno
-
grep tool passes empty file type to ripgrepForse già presa @ahmadbilaldev l’ha presa 19 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
CommandCodeAI/command-code#655 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CommandCodeAI/command-code
Issue simili
-
feature javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
mattgodbolt/jsbeeb#1833 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DiamondLightSource/eiger-correction#2 · 1 commento ·
-
[kunminghu-v3] Debug SBA 32/64-bit accesses hang: missing TLWidthWidget(1) on error_xbar pathApertamodule: backend type: bug/reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
OpenXiangShan/XiangShan#6938 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetForse già presa @matejk l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pocoproject/poco#5674 ·
I maintainer di solito rispondono entro 2 giorni