Skip to content

fix: terminal window title no longer says the old spt name - #560

Merged
LargeModGames merged 1 commit into
LargeModGames:mainfrom
yvoolab:window-title-557
Sep 23, 2026
Merged

LargeModGames merged 1 commit into
LargeModGames:mainfrom
yvoolab:window-title-557

Conversation

@yvoolab

@yvoolab yvoolab commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #557.

DEFAULT_WINDOW_TITLE was still spt - spotatui (the old spotify-tui binary name); changed to spotatui, matching UserConfig::DEFAULT_WINDOW_TITLE in user_config.rs (a different, unrelated constant) which was left untouched.

Verified:

  • grep -rn '"spt' src prints nothing.
  • The existing tests at the bottom of presence.rs compare against the constant symbolically, so they are unaffected by the value change.
  • Added a Fixed entry to CHANGELOG.md under Unreleased.

Co-Authored-By: Claude [email protected]

Summary by CodeRabbit

  • Bug Fixes
    • The terminal window title now displays “spotatui” instead of “spt - spotatui” when nothing is playing and window-title behavior is enabled. It is no longer restored to the old title on exit.

DEFAULT_WINDOW_TITLE was still "spt - spotatui" (the old spotify-tui
binary name). Change it to "spotatui"; the tests in the same file
compare against the constant symbolically so they are unaffected.

Fixes LargeModGames#557

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: LargeModGames/spotatui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: d7436d1e-8ed1-43b5-84dd-3e3d4b719dba

📥 Commits

Reviewing files that changed from the base of the PR and between f6bbbeb and df477b5.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • src/core/driver/presence.rs

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The default terminal window title changes from spt - spotatui to spotatui. The changelog records that the title remains spotatui when nothing is playing and is not restored to the old name on exit.

Changes

Terminal Window Title

Layer / File(s) Summary
Update the default title
src/core/driver/presence.rs, CHANGELOG.md
The default title constant changes to spotatui. The changelog documents the title shown when nothing is playing and on exit.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: ⚪ Minimal · up to df477

The default terminal title and its exit restoration use spotatui; no actionable merge-readiness concern remains.


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive The change updates src/core/driver/presence.rs DEFAULT_WINDOW_TITLE from "spt - spotatui" to "spotatui". It leaves UserConfig::DEFAULT_WINDOW_TITLE unchanged. This implements the requested i… Provide evidence that the three required formatting, Clippy, and test commands pass.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses the valid fix: conventional-commit prefix and clearly describes the terminal window title change. The subject is concise and directly related to the main change.
Out of Scope Changes check ✅ Passed The changes are limited to the requested default window title and a related unreleased changelog entry. The changelog entry documents the issue behavior. UserConfig::DEFAULT_WINDOW_TITLE remains unc…
Full details: Linked Issues check

Explanation

The change updates src/core/driver/presence.rs DEFAULT_WINDOW_TITLE from "spt - spotatui" to "spotatui". It leaves UserConfig::DEFAULT_WINDOW_TITLE unchanged. This implements the requested idle title and exit restoration behavior because both use the default title. The PR summary reports no remaining "spt strings under src. However, the available evidence does not show results for cargo fmt --all -- --check, the specified Clippy command, or the specified test command.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
✨ Simplify code
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 7bedaea into LargeModGames:main Sep 23, 2026
27 checks passed
@LargeModGames

Copy link
Copy Markdown
Owner

@all-contributors please add @yvoolab for code

@allcontributors

Copy link
Copy Markdown
Contributor

@LargeModGames

I've put up a pull request to add @yvoolab! 🎉

LargeModGames pushed a commit that referenced this pull request Sep 23, 2026
Adds @yvoolab as a contributor for code.

This was requested by LargeModGames [in this
comment](#560 (comment))

[skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The terminal window title still says spt - spotatui

2 participants