Skip to content

docs: shortlist 5 high-value features from upstream community signal - #2

Merged
Battlelamb merged 1 commit into
mainfrom
improve/SPO-8
Oct 16, 2026
Merged

Battlelamb merged 1 commit into
mainfrom
improve/SPO-8

Conversation

@Battlelamb

@Battlelamb Battlelamb commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Research-only deliverable for SPO-8: docs/fork-feature-shortlist.md ranks 5 candidate features for our fork, each with a design sketch, affected modules, and test plan. Nothing is implemented — the board picks which (if any) move forward.

  • Read every open issue (50), open PR (4), and open Discussion (24) on LargeModGames/spotatui via gh (read-only, no comments/reactions left), sorted by reaction and comment count, plus the upstream wiki.
  • Cross-checked every candidate against ~/Projects/spotatui-contributions/docs/ROADMAP.md and the current fork source, to avoid repeating shipped work or duplicating an open PR.
  • One candidate (#714, a Last.fm "similar tracks" fallback) turned out to be moot: it was filed on a premise (Spotify 403s on /recommendations for self-hosted apps) that PR #752 ("drop the Web API and client id") removed four days later. Moved to "considered and not shortlisted" with the exact evidence — a live example of the ROADMAP's own "an issue may describe an older dependency" caution.

Ranked shortlist:

  1. Listening Party: finish Shared Control — the relay/host plumbing already exists (#442); only guest-side key dispatch is missing. Low risk, answers a recurring "how do I jam" ask (Discussion #331).
  2. Playlist sidebar: pin + custom sort (#863 + #657) — two small PRs, low risk.
  3. Theme presets: accessibility-focused defaults (#3) — most of the issue's example list (Catppuccin, Tokyo Night, Gruvbox) already shipped; what's still missing is the explicit high-contrast/colorblind-safe ask.
  4. Private session toggle (#850) — Spotify-parity privacy feature, maintainer-authored issue with an exact proto field and acceptance checklist; touches our vendored librespot fork, so medium-high effort.
  5. Podcast progress: resume points + mark-as-played (#794 + #788) — matches our own ROADMAP's low-readiness flag; sketch includes a hard investigation gate before committing to either PR.

See the doc for full source citations, module-level design sketches, and an 11-item "considered and rejected" table (EQ, bit-perfect output, daemon mode, crossfader, localization, Flathub, SMTC, RPM packaging, Sonos, YouTube video, and the Last.fm fallback above) with the specific reason each was passed over.

Test plan

  • Doc-only change — no code, no build/test/clippy gate applies.
  • Every file path, line number, and "already shipped / already in-flight" claim in the doc was checked against the current fork source tree (commit 50e48e9) or a live gh api call, not just the issue text.
  • Board reviews and picks which (if any) candidates become implementation issues.

🤖 Generated with Claude Code

Summary by Sourcery

Add a research-only shortlist to guide board decisions on future fork features without implementing any code.

Enhancements:

  • Add a research document that ranks five upstream-inspired feature candidates for potential fork development, including design scope, affected areas, and validation plans.
  • Document the review methodology and cross-check shortlisted and rejected candidates against upstream activity, the fork roadmap, and the current source state.

Documentation:

  • Document five ranked feature opportunities: shared listening-party control, playlist organization, accessible themes, private sessions, and podcast progress tracking.
  • Record considered alternatives and explain why they were deferred, superseded, already implemented, or already covered by active work.

Reads every open LargeModGames/spotatui issue, PR, and Discussion
(read-only, no comments left), plus the wiki, sorted by reaction/comment
count, and cross-checks each candidate against our own ROADMAP.md and
the current fork source so the list doesn't repeat shipped work,
duplicate an open PR, or propose a fix for a problem a recent upstream
merge already removed (caught exactly that case with LargeModGames#714 vs LargeModGames#752).

No implementation here — a research doc for the board to pick from.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 11:50
@sourcery-ai

sourcery-ai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This documentation-only PR adds an evidence-backed, ranked shortlist of five potential fork features, including implementation direction and test plans, while recording why other upstream requests were rejected, deferred, already shipped, or superseded. No production code, generated bindings, or tests are changed.

Sequence diagram for proposed Shared Control guest command relay

sequenceDiagram
    actor Guest
    participant TUI
    participant Relay
    participant Host
    participant Playback

    Guest->>TUI: toggle_playback()
    TUI->>Relay: PartyPlaybackCommand(sync::PlaybackAction)
    Relay->>Host: PartyPlaybackCommand(sync::PlaybackAction)
    Host->>Playback: execute playback action
    Host-->>Relay: updated playback state
    Relay-->>TUI: rebroadcast playback state
Loading

Flow diagram for upstream feature shortlist research

flowchart TD
    A[Read upstream issues, PRs, discussions, and wiki] --> B[Cross-check roadmap and current fork source]
    B --> C{Already shipped, in flight, or superseded?}
    C -->|Yes| D[Record as rejected or deferred]
    C -->|No| E[Rank by value, effort, risk, and readiness]
    E --> F[Shortlist five candidate features]
    F --> G[Board selects implementation issues]
Loading

File-Level Changes

Change Details Files
Adds a research methodology and evidence base for prioritizing fork features from upstream community activity.
  • Documents review of upstream issues, pull requests, Discussions, wiki material, roadmap, and current source.
  • Records freshness checks to distinguish already-shipped, superseded, or in-flight work from viable candidates.
  • Provides citations and implementation-readiness context for each recommendation.
docs/fork-feature-shortlist.md
Ranks five candidate features with implementation sketches, affected modules, risks, and validation plans.
  • Prioritizes Shared Control guest command dispatch, playlist pinning and sorting, accessibility themes, private sessions, and podcast progress.
  • Describes likely code paths, persistence and protocol boundaries, sequencing constraints, and investigation gates.
  • Defines focused unit, UI, persistence, integration, and manual verification tests for future implementation PRs.
docs/fork-feature-shortlist.md
Captures explicitly rejected or deferred candidates and the evidence behind each decision.
  • Explains why Last.fm similar-track fallback is obsolete after the recommendations architecture change.
  • Avoids duplicating active PRs and deprioritizes roadmap-flagged, packaging, rendering, and open-ended backend work.
  • Preserves source references for future maintainer or board decisions.
docs/fork-feature-shortlist.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

This is a doc-only research deliverable with no code changes. The structure, cross-checks, module references, and rejection rationale are thorough and internally consistent. Two issues require fixing before merge:

  1. Broken Markdown table (line 25): The separator row has 4 cells but the header has 5 columns — the Risk column will be silently dropped when rendered on GitHub. One-click fix is attached.

  2. Local absolute paths (lines 12, 313): ~/Projects/spotatui-contributions/docs/ROADMAP.md is a machine-specific path that no other contributor can open or verify. Both occurrences should be replaced with the repo-relative path (docs/ROADMAP.md), which is what the doc's own verifiability guarantee relies on. One-click fixes are attached for both.

No other blocking issues found.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

## Ranked shortlist

| # | Feature | Value | Effort | Risk |
|---|---|---|---|---|

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The separator row has only 4 cells (|---|---|---|---|) but the header row has 5 columns (#, Feature, Value, Effort, Risk). GitHub Markdown requires the separator row to match the header column count exactly, or the table will not render correctly — the Risk column will be dropped from display. Add a fifth cell to the separator.

Suggested change
|---|---|---|---|---|
|---|---|---|---|---|

`LargeModGames/spotatui` via the GitHub API (`gh`, read-only — no comments or reactions were
left), sorted by reaction count and by comment count, plus the upstream wiki
(`spotatui.wiki`, cloned read-only to `/tmp`, removed after reading).
- Cross-checked every candidate against `~/Projects/spotatui-contributions/docs/ROADMAP.md`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is a local, machine-specific absolute path that is not accessible or verifiable by any other contributor. Other reviewers and future readers cannot open or audit this file, which undermines the "every claim was cross-checked" guarantee the doc makes. Replace with the repo-relative path (e.g., docs/ROADMAP.md) so any collaborator can verify the cross-check claims directly.

Suggested change
- Cross-checked every candidate against `~/Projects/spotatui-contributions/docs/ROADMAP.md`
- Cross-checked every candidate against `docs/ROADMAP.md`

- `gh api graphql` against the repo's `discussions` connection, sorted by `updatedAt`, 2026-10-16.
- `LargeModGames/spotatui.wiki` (`Listening-Party.md`, `Roadmap.md`, `Themes.md`), cloned
read-only, not pushed anywhere, removed after reading.
- `~/Projects/spotatui-contributions/docs/ROADMAP.md`, read in full for cross-check.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as line 12 — ~/Projects/spotatui-contributions/docs/ROADMAP.md is a local absolute path repeated in the Sources section. This path is not accessible to any other contributor. Replace with the repo-relative path so the cited source is actually reachable.

Suggested change
- `~/Projects/spotatui-contributions/docs/ROADMAP.md`, read in full for cross-check.
- `docs/ROADMAP.md`, read in full for cross-check.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 5 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/fork-feature-shortlist.md" line_range="61" />
<code_context>
+    front of the normal path, not a new owner in the predicate chain the roadmap's R1 already
+    flags as sensitive — a guest who leaves the party or switches to Host-only falls straight
+    back through the unmodified existing dispatch.
+- Host side needs no change (it already executes and re-broadcasts, per the wiki). Scope this PR
+  to the guest-side key translation only.
+- Which keys: play/pause, next, previous, seek forward/back — the same list the wiki already
</code_context>
<issue_to_address>
**Host-only guests control playback**

When a guest bypasses the proposed client-side key guard and the relay forwards its `PlaybackCommand` to a host whose mode is `HostOnly`, `handle_incoming_playback_command` checks that the local session is hosted, but not that its `control_mode` is `SharedControl`; it executes a received command anyway, so a guest whose command reaches the host can control playback in Host Only mode.

Keep the guest-side guard, but also reject incoming playback commands on the host unless the session is in `SharedControl` (and verify the relay enforces the same policy).
</issue_to_address>

### Comment 2
<location path="docs/fork-feature-shortlist.md" line_range="54" />
<code_context>
+**Design sketch:**
+- Add a guard, checked once, at the top of the global transport-key match in
+  `tui/handlers/mod.rs` (or inside `App::apply` for the handful of `Action` variants involved):
+  when `app.party_status() == Joined` **and** the session's `control_mode == Shared`, translate
+  the key to a `sync::PlaybackAction` and dispatch `IoEvent::PartyPlaybackCommand` instead of
+  applying the local `Action`.
</code_context>
<issue_to_address>
**Copied guest guard fails to compile**

When an implementation copies the sketch's `ControlMode::Shared` reference, `ControlMode::Shared` does not exist; the available variant is `ControlMode::SharedControl`, so the copied guard fails to compile instead of routing guest playback commands.

Change the sketch to use `ControlMode::SharedControl`.

Also at `docs/fork-feature-shortlist.md:75`.
</issue_to_address>

### Comment 3
<location path="docs/fork-feature-shortlist.md" line_range="62" />
<code_context>
+    flags as sensitive — a guest who leaves the party or switches to Host-only falls straight
+    back through the unmodified existing dispatch.
+- Host side needs no change (it already executes and re-broadcasts, per the wiki). Scope this PR
+  to the guest-side key translation only.
+- Which keys: play/pause, next, previous, seek forward/back — the same list the wiki already
+  promises. Volume and local-only things (sidebar navigation) stay local.
</code_context>
<issue_to_address>
**GUI guests still control local playback**

When the implementation follows the stated TUI-only scope while GUI users join a party in Shared Control, a follow-up that implements only guest-side key translation leaves GUI transport actions on the normal `App.apply` path, so GUI guests clicking play, next, or seek still control their local playback instead of the host's.

Route transport actions from all clients through the shared-control check, preferably at a common action-dispatch boundary, and cover GUI controls in the tests.
</issue_to_address>

### Comment 4
<location path="docs/fork-feature-shortlist.md" line_range="185-186" />
<code_context>
+to opt out short of pausing the app entirely.
+
+**Verified against current source:** `is_private_session` is already read from the Connect device
+list (`src/infra/spotify/player.rs:194`) and hardcoded `false` at one call site (`:376`) — i.e.
+the app already understands the field exists on other devices' state, it just never sets its own.
+That matches the issue's framing exactly: this is wiring a flag through, not inventing a new
+protocol concept.
</code_context>
<issue_to_address>
**Private-session investigation is misdirected**

When the board uses the cited `:376` assignment to conclude spotatui already handles the field for other devices but fails to set it for its own player, `lan_device_json` serializes separately discovered LAN devices, so its hardcoded `false` does not establish whether spotatui sets private-session state for its own Connect device; the board directs the implementation investigation based on unsupported evidence.

Clarify that the `lan_device_json` placeholder says nothing about spotatui’s own Connect device state, and remove the conclusion that the app never sets its own flag.
</issue_to_address>

### Comment 5
<location path="docs/fork-feature-shortlist.md" line_range="148-149" />
<code_context>
+
+**Design sketch:**
+- Add one or two new `ThemePreset` variants (e.g. `HighContrast`, and a colorblind-safe palette —
+  Rosé Pine is still requested and unported too, lower-hanging fruit alongside it) following the
+  exact four-place recipe the issue itself documents: enum variant, `all()`, `name()`,
+  `to_theme()` match arms.
+- For the accessibility ones specifically, pick colors against a documented contrast target
</code_context>
<issue_to_address>
**New presets fail to reload**

When an accessibility preset is added following the documented four-place recipe, `ThemePreset::from_name` falls through to `Custom` for a newly added preset name, so saved selections restore as Custom instead of the selected theme.

Include `ThemePreset::from_name` in the preset-update recipe and add a round-trip test for each new preset name.
</issue_to_address>

Sourcery assessment

Approval pending. 5 findings to address first.

Blocking findings: docs/fork-feature-shortlist.md:61, docs/fork-feature-shortlist.md:54, docs/fork-feature-shortlist.md:62, docs/fork-feature-shortlist.md:186, docs/fork-feature-shortlist.md:149


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

front of the normal path, not a new owner in the predicate chain the roadmap's R1 already
flags as sensitive — a guest who leaves the party or switches to Host-only falls straight
back through the unmodified existing dispatch.
- Host side needs no change (it already executes and re-broadcasts, per the wiki). Scope this PR

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Host-only guests control playback

When a guest bypasses the proposed client-side key guard and the relay forwards its PlaybackCommand to a host whose mode is HostOnly, handle_incoming_playback_command checks that the local session is hosted, but not that its control_mode is SharedControl; it executes a received command anyway, so a guest whose command reaches the host can control playback in Host Only mode.

Keep the guest-side guard, but also reject incoming playback commands on the host unless the session is in SharedControl (and verify the relay enforces the same policy).

Prompt for AI agents
In `docs/fork-feature-shortlist.md` at line 61:

**Host-only guests control playback**

When a guest bypasses the proposed client-side key guard and the relay forwards its `PlaybackCommand` to a host whose mode is `HostOnly`, `handle_incoming_playback_command` checks that the local session is hosted, but not that its `control_mode` is `SharedControl`; it executes a received command anyway, so a guest whose command reaches the host can control playback in Host Only mode.

Keep the guest-side guard, but also reject incoming playback commands on the host unless the session is in `SharedControl` (and verify the relay enforces the same policy).

**Design sketch:**
- Add a guard, checked once, at the top of the global transport-key match in
`tui/handlers/mod.rs` (or inside `App::apply` for the handful of `Action` variants involved):
when `app.party_status() == Joined` **and** the session's `control_mode == Shared`, translate

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Copied guest guard fails to compile

When an implementation copies the sketch's ControlMode::Shared reference, ControlMode::Shared does not exist; the available variant is ControlMode::SharedControl, so the copied guard fails to compile instead of routing guest playback commands.

Change the sketch to use ControlMode::SharedControl.

Also at docs/fork-feature-shortlist.md:75.

Prompt for AI agents
In `docs/fork-feature-shortlist.md` at line 54:

**Copied guest guard fails to compile**

When an implementation copies the sketch's `ControlMode::Shared` reference, `ControlMode::Shared` does not exist; the available variant is `ControlMode::SharedControl`, so the copied guard fails to compile instead of routing guest playback commands.

Change the sketch to use `ControlMode::SharedControl`.

Also at `docs/fork-feature-shortlist.md:75`.

flags as sensitive — a guest who leaves the party or switches to Host-only falls straight
back through the unmodified existing dispatch.
- Host side needs no change (it already executes and re-broadcasts, per the wiki). Scope this PR
to the guest-side key translation only.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · GUI guests still control local playback

When the implementation follows the stated TUI-only scope while GUI users join a party in Shared Control, a follow-up that implements only guest-side key translation leaves GUI transport actions on the normal App.apply path, so GUI guests clicking play, next, or seek still control their local playback instead of the host's.

Route transport actions from all clients through the shared-control check, preferably at a common action-dispatch boundary, and cover GUI controls in the tests.

Prompt for AI agents
In `docs/fork-feature-shortlist.md` at line 62:

**GUI guests still control local playback**

When the implementation follows the stated TUI-only scope while GUI users join a party in Shared Control, a follow-up that implements only guest-side key translation leaves GUI transport actions on the normal `App.apply` path, so GUI guests clicking play, next, or seek still control their local playback instead of the host's.

Route transport actions from all clients through the shared-control check, preferably at a common action-dispatch boundary, and cover GUI controls in the tests.

Comment on lines +185 to +186
list (`src/infra/spotify/player.rs:194`) and hardcoded `false` at one call site (`:376`) — i.e.
the app already understands the field exists on other devices' state, it just never sets its own.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Private-session investigation is misdirected

When the board uses the cited :376 assignment to conclude spotatui already handles the field for other devices but fails to set it for its own player, lan_device_json serializes separately discovered LAN devices, so its hardcoded false does not establish whether spotatui sets private-session state for its own Connect device; the board directs the implementation investigation based on unsupported evidence.

Clarify that the lan_device_json placeholder says nothing about spotatui’s own Connect device state, and remove the conclusion that the app never sets its own flag.

Prompt for AI agents
In `docs/fork-feature-shortlist.md` at lines 185-186:

**Private-session investigation is misdirected**

When the board uses the cited `:376` assignment to conclude spotatui already handles the field for other devices but fails to set it for its own player, `lan_device_json` serializes separately discovered LAN devices, so its hardcoded `false` does not establish whether spotatui sets private-session state for its own Connect device; the board directs the implementation investigation based on unsupported evidence.

Clarify that the `lan_device_json` placeholder says nothing about spotatui’s own Connect device state, and remove the conclusion that the app never sets its own flag.

Comment on lines +148 to +149
Rosé Pine is still requested and unported too, lower-hanging fruit alongside it) following the
exact four-place recipe the issue itself documents: enum variant, `all()`, `name()`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · New presets fail to reload

When an accessibility preset is added following the documented four-place recipe, ThemePreset::from_name falls through to Custom for a newly added preset name, so saved selections restore as Custom instead of the selected theme.

Include ThemePreset::from_name in the preset-update recipe and add a round-trip test for each new preset name.

Prompt for AI agents
In `docs/fork-feature-shortlist.md` at lines 148-149:

**New presets fail to reload**

When an accessibility preset is added following the documented four-place recipe, `ThemePreset::from_name` falls through to `Custom` for a newly added preset name, so saved selections restore as Custom instead of the selected theme.

Include `ThemePreset::from_name` in the preset-update recipe and add a round-trip test for each new preset name.

@Battlelamb
Battlelamb merged commit 62b10bf into main Oct 16, 2026
4 checks passed
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.

2 participants