HTTP 413 (Payload Too Large) when using Browser MCP screenshot with DeepSeek V4.1 Flash (GOAT plan)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4.2k
- Fork
- 377
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommandCodeAI/command-code
-
Provider /v1/messages rejects role:"system" inside messages[] — Claude Code ≥ 2.1.154 incompatibleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
CommandCodeAI/command-code#1085 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature request: auto-reconnect remote control (/rc) after restartCó thể đã có người làm @aliarain đã nhận 20 ngày trước. Đang mởp2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
CommandCodeAI/command-code#992 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#933 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#855 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
grep tool passes empty file type to ripgrepCó thể đã có người làm @ahmadbilaldev đã nhận 19 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/command-code#655 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CommandCodeAI/command-code
Issue tương tự
-
feature javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
mattgodbolt/jsbeeb#1833 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DiamondLightSource/eiger-correction#2 · 1 bình luận ·
-
[kunminghu-v3] Debug SBA 32/64-bit accesses hang: missing TLWidthWidget(1) on error_xbar pathĐang mởmodule: backend type: bug/reported
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
OpenXiangShan/XiangShan#6938 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
PriorityNotificationQueue::wakeUpAll() loses the wake-up for a thread that is not waiting yetCó thể đã có người làm @matejk đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pocoproject/poco#5674 ·
Maintainer thường phản hồi trong vòng 2 ngày