`duskbot pair --phone` on a self-hosted server makes a sign-in code, not a phone pairing, so the phone app never gets push

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

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

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

評価

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

調査の方向性

Start in pair-cli and trace how --phone, --public-url, and phoneAppPairing determine the pairing flow. Compare that path with the working POST /api/mobile/pairing endpoint and its duskbot://pair?m= link. Done means pair --phone with a public HTTPS URL creates a phone pairing that can receive pushes, or clearly explains when the printed code cannot.

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

説明

Server 0.2.30, own systemd unit, public URL through a Cloudflare tunnel, no link service (duskbot vps status: link: not-installed).

Steps: duskbot pair --label iPhone --phone ios --public-url https://dusk.example, then paste the "phone app:" link into the app and allow notifications.

Expected: a paired phone that gets pushes.

Actual: a plain sign-in. No mobile-devices.json entry is made, and the app's PUT /api/mobile/push gets "this session is not a paired phone", so no push is ever sent. Neither the CLI nor the app says so.

Cause in pair-cli: options.client || options.publicUrl ? null : phoneAppPairing(...) skips phone pairing whenever --public-url is set. Without it, phoneAppPairing still returns null unless the link service gives a relay route. --phone only changes the printed text, and the "phone app:" link is the old sign-in invite.

What works: POST /api/mobile/pairing over the public HTTPS address gives a working duskbot://pair?m= link. iPhone (APNs) and Android (FCM) pushes then arrive through link.dusk.bot.

Ask: pair --phone should use /api/mobile/pairing when the server has a public HTTPS address, or at least say that the code it prints can't receive push.

主要言語
TypeScript
スター
277
フォーク
27
平均マージ
15時間 30分
マージ済み PR(30日)
147

環境構築

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

はじめの一歩

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

DuskBotAI/duskbot のほかの issue

DuskBotAI/duskbot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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