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

bunx hangs after link-cli commands by implicitly starting a development server

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

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

@awesamarth がすでに取り組んでいます。

2026年9月11日 から。

  • #320 @awesamarth による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
bun, typescript
領域
build-system, cli

調査の方向性

bunx @stripe/link-cli auth status --format json で問題を再現し、次にバンドルされたエントリポイントとそのデフォルトエクスポートの形状を調べます。Bun と npx/Node の動作を比較します。Bun でコマンドが期待される JSON 応答のみを出力した後、正常に終了すれば完了です。

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

説明

summary

running link cli through bunx produces the expected command output, then bun implicitly starts a development server and keeps the process alive indefinitely. this prevents agent tool calls from resolving, leaving conversations stalled until tools timeout.

reproduction

bunx @stripe/link-cli auth status --format json

actual behavior

  1. link cli prints the valid json response.
  2. bun prints a started development server message to stdout.
  3. the process remains alive until it is manually killed or an external timeout fires.

this also contaminates structured stdout, so callers expecting only json cannot parse the result reliably.

expected behavior

once the command prints its response, the process should exit normally, matching the behavior under npx/node.

likely cause

link cli's bundled entrypoint appears to have a default export containing a fetch method. when invoked through bunx, bun interprets that export as a server entrypoint and automatically starts its development server, even though the user invoked a normal cli command.

idk why bun does this; it's annoying, but 🤷

environment

  • @stripe/link-cli: 0.16.0
  • runtime: bun via bunx
  • equivalent npx invocation exits normally

suggested resolution

could the bundle/export shape be adjusted so bun does not interpret ordinary cli execution as a server entrypoint? alternatively, documenting that bunx is currently unsupported would prevent agents and users from encountering a command that returns valid output but never exits.

主要言語
TypeScript
スター
842
フォーク
136
平均マージ
1日 6時間
マージ済み PR(30日)
88

環境構築

はじめの一歩

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

stripe/link-cli のほかの issue

stripe/link-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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