Skip to content

fix(requests): recover unmonitored movie and season requests - #213

Closed
snapetech wants to merge 3 commits into
mainfrom
codex/scanner-status-reset-reconciliation-20261012
Closed

snapetech wants to merge 3 commits into
mainfrom
codex/scanner-status-reset-reconciliation-20261012

Conversation

@snapetech

@snapetech snapetech commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Recover approved Radarr and Sonarr requests when a complete scan confirms that a movie or TV season is unmonitored and unavailable. This includes older rows already marked UNKNOWN, while preserving same-quality active work, service identity, and delivered seasons so the abandoned selection can be requested again.

The already-UNKNOWN state can persist after earlier scans, so this PR also releases those approved requests. It includes the SeerrNG cross-ID guard in #209, which this reconciliation depends on.

Codex assisted with the repository review, implementation, and regression tests. The maintainer authorized this work.

How Has This Been Tested?

  • Focused Radarr/Sonarr Node suites after the legacy UNKNOWN addition: 51 passed, 0 failed, 0 skipped.
  • The full Node regression run before this follow-up passed 303 tests; hosted validation will rerun the current full inventory.
  • Focused Vitest suites from the original change: 16 UI tests and 6 download-asset tests passed.
  • pnpm typecheck:server passed after this follow-up; client typecheck passed on the original change.
  • ESLint, Prettier, Oxlint, attribution, and git diff --check passed. pnpm ui-style:check passed on the original change; this follow-up changes no UI.
  • pnpm release-notes:preview --base origin/main --head HEAD passed.
  • The complete GitHub-hosted Mode 2 validation will run again for the updated pull request.
  • Visual inspection was unavailable for the original UI changes: the isolated desktop workspace timed out during startup, so no rendered-interface pass is claimed.

Screenshots / Logs (if applicable)

No screenshots; visual inspection could not be completed because the isolated desktop workspace did not start.

Release Notes

  • I added a release-note fragment under release-notes/.
  • This change is internal-only and does not need a user-facing release note.
  • The fragment includes audience, area, action, and breaking-change status.
  • I previewed the release text with pnpm release-notes:preview.

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-13T06:49:32.662078Z 1cdb9fc New commits
ℹ️ 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.

@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: 1cdb9fc846

ℹ️ 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".

externalServiceSlug: sonarrSeries.titleSlug,
title: sonarrSeries.title,
is4k: server4k,
deferStatusReset: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve monitored episode selections during reconciliation

When a request contains specific episode numbers, SonarrAPI.addSeries deliberately leaves the containing season unmonitored and monitors the selected episodes individually (server/api/servarr/sonarr.ts:642-645,681-686). Enabling deferred reconciliation here therefore classifies a valid partial or watch-ahead request with no downloaded files as an abandoned season because processSonarrSeries only checks season.monitored; the resolver then declines every approved selection for that season on the next successful scan even though Sonarr is still monitoring its requested episodes. Inspect episode-level monitoring or exempt episode-specific selections before settling the season.

AGENTS.md reference: AGENTS.md:L75-L77

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

@snapetech

Copy link
Copy Markdown
Collaborator Author

The changes in this pull request are already on main (merged separately with the scanner reconciliation work), so there is nothing left to merge. Closing.

@snapetech snapetech closed this Oct 15, 2026
@snapetech
snapetech deleted the codex/scanner-status-reset-reconciliation-20261012 branch October 15, 2026 15:53
@snapetech

Copy link
Copy Markdown
Collaborator Author

Resolution audit: superseded by implementation on main. Source/successor commit is an ancestor of main.

Recorded source resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant