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

No login hint when Spotify has no cached login

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

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

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

評価

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

調査の方向性

Start with spotify_auth_mode in src/runtime/bootstrap.rs and trace what the CachedOrNone branch returns when no cached login exists. For the sidebar, compare the Spotify rows in the Playlists panel with the Qobuz not-logged-in line in src/tui/ui/library.rs. Done when a non-first-run launch with no cached Spotify login shows the login hint, using app.user_config.keys.manage_devices for the key, and a test covers the no-session case.

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

説明

bug

Describe the bug
When spotatui starts with no cached Spotify login and it is not the first run, it starts without Spotify and says nothing. The Spotify rows (Liked Songs, Albums, Artists, Discover) are hidden, the playlist panel only shows the pinned spotatui community playlist, and the welcome screen has no hint. The user only sees "Spotify not connected. Press d and pick Spotify to log in." after they try to play something.

This hits users who upgrade from a release before 0.45.0 and never had a librespot login cached (for example because native streaming never worked for them). Their old Web API login does not carry over, the first-run picker does not show again, and boot takes the CachedOrNone path in spotify_auth_mode (src/runtime/bootstrap.rs), which returns no session and no notice.

A user on Discord ran into this today on 0.45.0 (EndeavourOS, AUR). Their log has no session lines at all: no new Session, no Connecting to AP.

To Reproduce

  1. Have a config.yml from an earlier run, so this is not a first run.
  2. Remove the cached Spotify login from the streaming cache.
  3. Start spotatui.
  4. See a sidebar with no Spotify rows and no message that says how to log in.

Expected behavior
The app tells the user that Spotify is not connected and how to log in, the same way Qobuz does in the Playlists panel: (not logged in, press d, pick Qobuz) in src/tui/ui/library.rs.

Possible solution:

  • When App has no Spotify session and the active source is Spotify, show one line in the Playlists panel (and a line on the welcome screen) built from app.user_config.keys.manage_devices, like the Qobuz row.
  • Or have spotify_login return a startup notice in the CachedOrNone case when there is no cached login, so boot sets a status message.

Done when: a non-first-run launch with no cached Spotify login shows how to log in before the user tries to play anything, and a test covers the no-session sidebar or notice.

Screenshots
The user's sidebar on 0.45.0: Friends, Stats, Playlist sync, Local Files, AI DJ, and only the spotatui community playlist.

Desktop (please complete the following information):

  • OS: Linux (EndeavourOS)
  • Terminal: xterm-256color
  • Version: 0.45.0

Additional context
The workaround is to press d and pick Spotify, or run spotatui --reconfigure-auth.

主要言語
Rust
スター
1.4k
フォーク
238
平均マージ
8時間 56分
マージ済み PR(30日)
208

環境構築

はじめの一歩

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

LargeModGames/spotatui のほかの issue

LargeModGames/spotatui の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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