Skip to content

fix(tv): say when marking a card watched fails - #706

Merged
Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/1253-tv-mark-watched-error
Oct 28, 2026
Merged

Quick104 merged 1 commit into
Silo-Server:mainfrom
Rhainland:fix/1253-tv-mark-watched-error

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: Silo-Server/silo-server#1253
Validation tasks: changes #350 C4

On Android TV, choosing Mark as Watched from a card's long-press menu gives no feedback when the server refuses it. The menu closes, the card shows no badge, and nothing tells the user it failed. For audiobooks every mark failed this way, because the server answered 404 (fixed in Silo-Server/silo-server#3169), but any rejected mark fails silently.

The card now shows the error when a mark fails.

Approach

The card menu's watched action shows a long toast, "Couldn't mark as watched." followed by the server's message, when the request fails and the card rolls back. Toasts are already how the TV app reports errors in Settings and Watch Party. Home-row cards use a different code path and still roll back silently; that is left for a follow-up.

Validation

  • No unit test: the change is UI wiring.
  • TV unit tests and lint for the touched module, debug build: pass.
  • Android TV emulator (Android 14), twice each. Against silo-server e6df1d8ed (the 404 server): before, the menu closed with no message; after, a toast reads "Couldn't mark as watched. Item not found". Against a build with silo-server#3169: marking works, the card gets its badge, the menu then offers Mark as Unwatched, and unmarking removes the badge.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/pr-706/

Surface and build: Android TV, Audiobooks → Browse → card long-press → Mark as Watched; before on origin/main e9c410096, after on this branch; same synthetic library. Phone and tablet use different menus.

Risks

None identified.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (T3 Code)
  • Tool(s): Claude Code, Codex CLI, GitHub CLI, Gradle, Android Emulator, adb
  • Model(s): claude-opus-5-5; gpt-6.1-sol (review)
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Independent Claude Opus 5.5 and GPT 6.1 Sol reviews of the branch diff (correctness, repo standards, the bug as described). GPT found nothing. Opus noted that Home-row cards still fail silently, as stated above.

The card menu closes before the write finishes, so a rejected Mark as
Watched or Mark as Unwatched only rolled the card back, with no sign
that anything went wrong. Show a toast with the server's reason when
the write fails.
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bfe1461c-b369-428d-b7cc-863f12dd1a7d
Commits

Reviewing files that changed from the base of the PR and between 548617c and 10139ff.

Files selected for processing: 1
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/components/TvCardActionsHelpers.kt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@silo-kody

silo-kody Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 4 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Validate download ownership before publishing subtitle bytes
  • Bind playback markers to the actual playing file
  • Share route-aware audio decisions and preserve original-format decoder fallback
  • Apply playback route eligibility consistently at admission and media loading

@silo-triage silo-triage Bot added size/S 0–49 added + deleted lines (all files); change volume, not priority. bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Oct 27, 2026
@Quick104
Quick104 merged commit bda6cbd into Silo-Server:main Oct 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants