Skip to content

fix(build): declare BrowseItem's episode fields once - #675

Merged
Quick104 merged 1 commit into
mainfrom
fix/browse-item-duplicate-episode-fields
Oct 7, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/browse-item-duplicate-episode-fields

Conversation

@Quick104

@Quick104 Quick104 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Main doesn't compile for iOS, tvOS, or macOS. #630 and #575 each added seriesId, seriesTitle, seasonNumber and episodeNumber to BrowseItem. Neither PR conflicted with the other, but once both landed the struct declares those fields twice. The Apple regression run on main (1eedd0c8) fails with invalid redeclaration of 'seriesId' and the matching errors for the other three fields.

Approach

Declare the four fields once. This keeps the copy #575 placed with the progress fields, because the Watch Party series-row initializer passes them in that position, and drops the duplicate arguments from BrowseItem.init(sectionItem:). The doc comment now covers both sources of these fields: episode rows in search and section-sourced catalog pages.

Validation

Evidence

Evidence: none, no user-visible change

Risks

None identified. The fields keep the same names, types and defaults, so decoding is unchanged.

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 (Claude Agent SDK) in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5[1m]
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Declare BrowseItem episode fields once in Models.swift

Moves the episode-context and progress stored properties in BrowseItem so they are declared once, right after the core identity fields, and removes the duplicate declarations that sat after overlaySummary. Docs now cover both text-search rows and section-sourced catalog rows, and init(sectionItem:) drops the trailing episode arguments from its memberwise call. See Models.swift.

Macroscope summarized dd254b9.

#630 and #575 each added seriesId, seriesTitle, seasonNumber and
episodeNumber to BrowseItem. Both landed on main, so the struct declares
them twice and neither the iOS nor the tvOS app compiles. Keep the copy
#575 placed beside the progress fields, which the Watch Party series row
initializer passes in that order, and drop the duplicate arguments in
init(sectionItem:).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@silo-kody

silo-kody Bot commented Oct 7, 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 ❌
⚠️ 2 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:

  • Centralize server-relative authentication path validation
  • Enforce latest-link-wins centrally across deferred deep links

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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-07T15:19:02.565545Z dd254b9 PR opened
🔒 Security Review ✅ Completed 2026-10-07T15:19:55.809972Z dd254b9 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.

@Quick104 Quick104 added priority: P0 Fix/merge first: data-loss, security, or widespread breakage impact: compat Breaks a supported client or server path labels Oct 7, 2026 — with Cursor
@coderabbitai

coderabbitai Bot commented Oct 7, 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 17 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: 8504c7d8-7eca-4281-826e-abbda353f69d
📥 Commits

Reviewing files that changed from the base of the PR and between 68878b1 and dd254b9.

📒 Files selected for processing (1)
  • iosApp/iosApp/Networking/Models.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.

@Quick104 Quick104 added the evidence-not-needed A maintainer waived the Evidence check, for example for an automated dependency update label Oct 7, 2026
@Quick104
Quick104 merged commit b65cf92 into main Oct 7, 2026
7 checks passed
@Quick104
Quick104 deleted the fix/browse-item-duplicate-episode-fields branch October 7, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

evidence-not-needed A maintainer waived the Evidence check, for example for an automated dependency update impact: compat Breaks a supported client or server path priority: P0 Fix/merge first: data-loss, security, or widespread breakage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant