Skip to content

chore(player): preserve Rhainland's Retry fix history - #640

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/player-nonretryable-retry
Oct 6, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/player-nonretryable-retry

Conversation

@Rhainland

@Rhainland Rhainland commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: #580
Validation tasks: #337 C6; behavior already shipped in #620

PR #620 already included both commits from this PR. This PR records Rhainland's Retry fix and regression tests as two rebased commits with the original authorship.

The fix hides Retry on iOS, tvOS, and macOS when the server marks a terminal playback failure as non-retryable. Transport failures and session-local recovery dead ends keep Retry; permanent start refusals keep it hidden. The damaged-episode list work in #580 remains open.

Validation

  • The rebased branch tree matches main at 4efc8cf3 exactly. The current player views retain the reconnect action introduced in fix(player): reconnect and resume after a mid-stream server drop #620.
  • Both rebased commits retain Rhainland's authorship and commit messages.
  • git diff --check and scripts/ci/check-no-api-v1.sh pass.
  • Before the rebase, GitHub CI passed the iOS and tvOS test jobs, macOS build, and CI scripts on 7382cdca.
  • The original author reported passing retry-decision unit tests and an iPhone simulator check: a zero-byte episode showed the source-unreadable message with only Go Back.
  • No new Apple build or simulator run was performed for this rebase because its tree matches main.

Risks

This merge records work already present on main and introduces no source changes.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Original implementation: model claude-opus-5-5, Claude Code harness running in T3 Code; tools: Claude Code subagents, xcodebuild, Xcode Simulator (simctl, Maestro), GitHub CLI. Fully AI-generated, human verified, as disclosed by the original author.
  • Original adversarial review: a separate Claude Code reviewer agent (claude-opus-5-5) checked behavior, platform guards, tests, and commit hygiene. Its findings about recovery dead ends and the macOS Retry button were fixed before this rebase.
  • Rebase and PR maintenance: model gpt-6.1-sol, Codex harness running in T3 Code; tools: Git, GitHub CLI, Python, T3 Code MCP.

Note

Preserve Rhainland's Retry fix history

Whitespace-only change to blank lines. No functional changes.

Macroscope summarized 30b5f1b.

@coderabbitai

coderabbitai Bot commented Oct 5, 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 39 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: 62a04e68-0587-443c-aefa-d926e1c7f342
📥 Commits

Reviewing files that changed from the base of the PR and between 6242652 and 7382cdc.

📒 Files selected for processing (5)
  • iosApp/Tests/PlayerTerminalFailureRetryTests.swift
  • iosApp/iosApp/Screens/Player/PlaybackSessionBridge.swift
  • iosApp/iosApp/Screens/Player/PlayerView.swift
  • iosApp/iosApp/Screens/Player/PlayerViewModel.swift
  • iosApp/iosApp/macOS/PlayerView.swift
  • Autopilot · 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 5, 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-kody

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

A file the server can't read (zero-byte, corrupt or truncated) ends playback with a terminal outcome marked retryable: false, for example source_unreadable. The player still showed Retry, which started a new session that failed the same way every time.

The player now keeps the retryable flag with the terminal error and shows only Go Back (Close on macOS) when it is false. Transport and engine failures stay retryable. So do the player's own recovery dead ends (attempt_limit_reached, replan_loop_detected, an unusable replacement plan): a flaky network can exhaust the replan ladder, and Retry starts a fresh session with a fresh ladder, which usually works.

Found during the Series validation, silo-apple#337 C6.
The previous commit made every replan dead end retryable. Two of them are refusals the start path makes too, with retryable: false: server_upgrade_required (the server dropped authenticated media transport) and room_source_unavailable (the Watch Party's fixed media version is gone). After such a replan the error view offered Retry, and the fresh session it started failed the same way.

replanDeadEnd now keeps those two reasons non-retryable. The player's own recovery dead ends (attempt_limit_reached, replan_loop_detected, invalid_replan and the other replacement-plan failures) stay retryable.
@Quick104 Quick104 changed the title fix(player): don't offer Retry when the server says retrying can't help chore(player): preserve Rhainland's Retry fix history Oct 6, 2026
@Quick104
Quick104 force-pushed the fix/player-nonretryable-retry branch from 7382cdc to 30b5f1b Compare October 6, 2026 15:56
@Quick104
Quick104 merged commit 8e3fd17 into Silo-Server:main Oct 6, 2026
2 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