ai-claude-code and ai-sandbox: add "sideEffects": false so translateSdkStream tree-shakes
Los mantenedores suelen responder en 1 día
@tombeckenham ya está trabajando en esto.
Desde el 4/11/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
TanStack AI version
@tanstack/ai-claude-code 1.0.1, @tanstack/ai-sandbox 1.1.0 (@tanstack/ai 1.1.0)
Framework/Library version
Vite 8.0.0 (Rolldown), TanStack Start 1.169, Nitro 3
Describe the bug and the steps to reproduce it
@tanstack/ai and @tanstack/ai-skills set "sideEffects": false in package.json. @tanstack/ai-claude-code and @tanstack/ai-sandbox do not. So a bundler must keep every module that the root entry of @tanstack/ai-claude-code imports, also when the app uses only translateSdkStream.
- Import only the translator in a server module:
import { translateSdkStream } from "@tanstack/ai-claude-code" - Build with Vite 8 (Rolldown).
- The server output keeps side-effect imports of
@modelcontextprotocol/sdk(types.jsplusajv, about 475 kB) and ofhonowith@hono/node-server(about 27 kB). They come from@tanstack/ai-sandbox/dist/esm/tool-bridge.jsthrough the root entry of@tanstack/ai-claude-code. No sandbox code is called.
With this Rolldown rule, both imports go away and the build still works:
build: {
rolldownOptions: {
treeshake: {
moduleSideEffects: [
{ test: /\/@tanstack\/ai-(claude-code|sandbox)\//, sideEffects: false },
],
},
},
},
Expected: "sideEffects": false in both packages, as in @tanstack/ai. A subpath export for the translator, such as @tanstack/ai-claude-code/translate, would also let an app that only translates stream-json skip the required @tanstack/ai-sandbox peer.
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
The steps above. The rule shows the fix.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3.3k
- Forks
- 378
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 254
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
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 TanStack/ai
-
openai-base: a Responses max_output_tokens cutoff ends as RUN_ERROR without usage instead of finishReason 'length'Posiblemente ocupada @tombeckenham la tomó hace 8 días. Abiertohas-pr waiting-on: maintainer
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
TanStack/ai#1916 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
AG-UI TOOL_CALL_RESULT metadata is dropped in the live stream reducerPosiblemente ocupada @c446984928 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
ai-sandbox: encrypt snapshot blobs at rest with an encrypting blob store wrapperPosiblemente ocupada @AlemTuzlak la tomó hace 1 día. Abiertowaiting-on: maintainer
TanStack/ai#2062 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Sandbox takeover: the saved transcript loses everything the first host delivered before the restartPosiblemente ocupada @tombeckenham la tomó hace 1 día. Abiertowaiting-on: maintainer
TanStack/ai#2061 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
withSandbox: each run's save drops the harness tool calls of earlier runsPosiblemente ocupada @tombeckenham la tomó hace 1 día. Abiertohas-pr waiting-on: maintainer
TanStack/ai#2059 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de TanStack/ai
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Yeraze/meshmonitor#6239 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
better-auth/better-auth#12292 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
The sample email preview's ResizeObserver is never disconnected and keeps raising errors after leaving SettingsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
area:ui bug effort:S priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Typo in WSL project description on Projects pagePosiblemente ocupada @akhil9tiet la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
microsoft/opensource.microsoft.com#1066 · 1 comentario ·