Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

CLI reports its auto-launch timeout as INTERNAL while MCP reports the same failure as DAEMON_STARTUP_FAILED

Abierto
#672 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
70/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
cli

Línea de trabajo

Start by reading src/cli/index.ts around line 246, then compare its launch timeout handling with src/mcp/connect.ts and the error contract in src/contract/errors.ts. Check the CLI tests for auto-launch timeout behavior and the expected error code; done when the CLI reports the same DAEMON_STARTUP_FAILED code as MCP for that timeout while keeping the documented exit code.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug:new

Two frontends run the same launch-then-retry policy with the same 5 s deadline hard-coded in each, and disagree on what the failure is called.

  • src/cli/index.ts:246 throws a plain Error, so runCli maps it to INTERNAL (exit 1).
  • src/mcp/connect.ts:51,62 throws SimlockError("DAEMON_STARTUP_FAILED") for the same event; that code exists in the contract's table with cliExitCode: 1 (src/contract/errors.ts:214).

docs/CLI.md:22 says INTERNAL is for "anything unexpected", so the CLI labels an anticipated timeout — the one failure mode its own auto-launch exists to wait through — as an unexpected internal error. An agent scripting the CLI cannot tell "the daemon is slow, retry later" from a crash.

The deadline being written twice is architecture rule 10 (a constant known to one module, asked of it through its surface); the divergent code is what that duplication already produced.

Found while triaging #663.

Written by an agent.

Lenguaje dominante
TypeScript
Estrellas
20
Forks
2
Merge medio
7 h 21 min
PR fusionados (30 d)
247

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de callstackincubator/simlock

Todos los issues de callstackincubator/simlock

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.