bunx hangs after link-cli commands by implicitly starting a development server
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 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
- link cli prints the valid json response.
- bun prints a
started development servermessage to stdout. - 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
npxinvocation 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stripe/link-cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
Device-flow refresh token rejected immediately: 400 "refresh_token is invalid" on first refreshオープン
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
stripe/link-cli#406 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
stripe/link-cli#294 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
stripe/link-cli の issue をすべて見る
似ている issue
-
documentation good first issue
難易度 2/5 半日 初心者へのやさしさ 72/100
sujithputta02/Esapay#13 ·
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)対応中かも @chibenwa が今日担当しました。 オープンai-driven-qa bug claude Cosmetic
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linagora/twake-contacts-frontend#271 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Koenkk/zigbee2mqtt#33402 ·
メンテナーはふだん 1 日以内に返信
-
dx P2 platform Stellar Wave Wave 10
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
winsznx/routedock#579 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:ui effort:S enhancement priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信