Skip to content

fix(player): show why an AI subtitle job failed after its dialog closed - #545

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/1163-ai-failure-notice
Oct 13, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/1163-ai-failure-notice

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: Silo-Server/silo-server#1163
Validation tasks: unblocks #327 C4, #328 C4

A failed AI subtitle job reported its reason only inside the AI sheet (phone and tablet) or dialog (TV). Viewers usually close it while the job runs, and then the failure was never seen: the phone cleared the error when the sheet closed, and TV reset the dialog to an empty form when it was reopened.

Approach

When the job fails while the sheet is closed, the phone shows "AI subtitles failed." with the reason in the player's notice, which fits a long reason in landscape. TV shows it in the player's message toast for ten seconds. Reopening the TV dialog keeps the failure and its reason, and the form stays usable for a new request; loading other content clears it so another episode never inherits the previous job's state.

Validation

  • Compiles for phone and TV; the player view models have no unit harness for these flows, so the behaviour was checked on emulators.
  • Phone (portrait and landscape), tablet and TV emulators against a local server with a mock provider: injected provider failures, rejected keys and billing exhaustion showed their reason with the sheet or dialog closed; reopening showed it again; a new job then worked; playback continued throughout.

Evidence

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

Surface and build: Android phone, tablet and TV emulators, with short recordings; before = main 747efff, after = this branch.

Risks

None identified.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; OpenAI Codex CLI only to generate translation text for the local test provider
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: Claude Code /code-review (medium) over the combined fix branch for this repository; every confirmed finding was fixed and re-validated

A failed AI subtitle job reported its reason only inside the AI sheet
(phone) or dialog (TV). Closing it while the job ran, which the sheet
invites, meant the failure was never seen: the phone cleared the error on
close, and TV reset the dialog to an empty form when it was reopened.

The phone now shows the reason in the player's notice, which fits a long
reason in landscape; TV shows it in the player's message toast for ten
seconds; and reopening the TV dialog keeps the failure and its reason.
Loading other content clears the TV phase, so another episode never
inherits the previous job's progress or failure.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T16:33:52.982741Z 6b0edf8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 55 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
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a02ec7f3-27a8-4fa2-8b5a-fc37440f4c8e

📥 Commits

Reviewing files that changed from the base of the PR and between 538aa09 and d26ba35.


📒 Files selected for processing (4)
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerOverlay.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@silo-kody

silo-kody Bot commented Oct 11, 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 ❌

@silo-triage silo-triage Bot added bug Something isn't working priority: P2 Limited scope, workaround exists, or polish labels Oct 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b0edf89fd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@silo-kody

silo-kody Bot commented Oct 11, 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 ❌

@Quick104
Quick104 merged commit 13b660d into Silo-Server:main Oct 13, 2026
9 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 priority: P2 Limited scope, workaround exists, or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants