Gateway 400: request exceeds JSON node limit (32768), long session cannot recover via compaction
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- ai-infra-agents, cli
- Área
- ai-infra-agents, backend
Línea de trabajo
Start by tracing how the CLI builds and sends long-session requests, then inspect the gateway handling of the 32,768-node JSON limit. The issue names no files or tests, so first locate the request construction and error handling entry points. Done means a long session can recover from this structural limit, or the error reports the current node count and limit.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Using Command Code (GOAT plan), a long session started failing on every request with a gateway 400:
Command Code API error 400: the request exceeds the gateway's JSON node limit (node count cannot exceed 32768)
The error text says the cap is on the request's structure, not its token length, so compacting the session usually will not bring it under the limit. The suggested remedies are starting a new session, or reducing the messages and images in the current one.
Why this looks distinct
- This is a structural (JSON node count) limit, not a token / context-window limit.
- Compaction does not reliably recover the session, because compacting does not necessarily reduce the node count below the cap.
- I searched existing issues and did not find this exact error string. The closest related report is #1003 (compaction summaries compound instead of replacing, sessions 400 to death), but that issue's 400s are context/token-driven, whereas this one is node-count-driven.
Impact
Long sessions become unusable: a new session loses context, and trimming messages and images is not a sustainable fix.
Suggestions
- Raise the gateway JSON node limit, or
- Structurally compact or merge nodes for long-session requests, on the gateway or client side, before forwarding, or
- At least include the current node count versus the limit in the error message, so users can tell how far over they are.
Notes
- Plan: GOAT.
- Also reported via [email protected].
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 4.2k
- Forks
- 377
- Merge medio
- 1 d 17 min
- PR fusionados (30 d)
- 7
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
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
UKGovernmentBEIS/inspect_ai#6512 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Intelligent-Internet/ii-agent#221 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
developmentwithyash/yaan#60 ·
Los mantenedores suelen responder en 1 día
-
area: deals priority: normal
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días