Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#672 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
20
フォーク
2
平均マージ
7時間 21分
マージ済み PR(30日)
247

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。