Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fe5f967d4f
ℹ️ 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".
| val restart = job?.isActive == true | ||
| stopLocked() |
There was a problem hiding this comment.
Preserve completion when applying tracker edits
If a non-seeding torrent finishes just before this edit acquires the lifecycle mutex, job is already inactive, so restart is false and stopLocked() overwrites FINISHED with PAUSED without resuming it. If TorrentDownloadSource has not yet sampled the brief FINISHED state, its loop only exits for FINISHED, SEEDING, or STOPPED, leaving the download stuck indefinitely; preserve the terminal state or restart when this race occurs.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 107811d. Edits capture the state of an inactive session and restore it in finally, including persistence failure or cancellation, instead of leaving a finished session paused. The regression waits for a non-seeding session job to finish, then checks both failed and successful edits. It failed before the fix (FINISHED versus PAUSED) and passes afterward; the session/engine focused suite also passed.
|
Superseded by #237 (Tracker lifecycle, editing and discovery privacy) in the consolidated eight-PR stack for #162. The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks. Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment) |
Tracker overrides can now be changed on an existing internal session. An active edit joins old discovery and peers, persists the replacement, and restarts discovery with the committed tiers. Failed persistence keeps the old configuration; cancellation after rename retains ownership of the committed replacement. Empty lists survive pause/resume without restoring metainfo trackers or changing private-torrent policy.
The command admits and snapshots input before suspension, permits one pending edit, and serializes with session lifecycle and resume-data saves. Configuration and checkpoint encoding reservations remain held for future saves, while a dedicated control allowance supports up to 256 replacement entries. Session shutdown joins command/save jobs before clearing in-memory configuration and returning credit. Saves after closure return null.
Stacked on #220; advances #162. Public SDK/daemon/UI exposure, revision conflict handling, and remaining production gates are still open.
Validation: 574 JVM and 553 executed iOS tests passed with zero failures/errors/skips. Native-runtime guard and two pinned v1 conformance scenarios passed. New tests cover real-engine stop/start ordering and empty overrides, failed edits and retry, cancellation after rename and during joined cleanup, input mutation, concurrent-edit rejection, and configuration/checkpoint workspace admission rejection without pausing.