Skip to content

webui: drop the details pane when its torrent disappears, and let detail polls fail quietly - #3168

Merged
xirvik merged 1 commit into
Novik:masterfrom
IvanShift:up/stale-details-pane
Aug 15, 2026
Merged

webui: drop the details pane when its torrent disappears, and let detail polls fail quietly#3168
xirvik merged 1 commit into
Novik:masterfrom
IvanShift:up/stale-details-pane

Conversation

@IvanShift

Copy link
Copy Markdown
Contributor

Problem. When the torrent shown in the details pane is erased or replaced while
the pane is open, theWebUI.dID still points at a hash gone from dataTorrents:
the pane freezes on stale data and the cached files/dirs/peers/trackers for that
hash are never freed (the trackers map was missing from the normal removal path
too). The file/peer/tracker detail polls for the vanished hash fault, and being
flagged important they surface as a red XMLRPC error dialog — for a routine race
between polling and erase.

Fix. Clear the pane and its caches when the hash disappears from the list;
httprpc marks the f/p/t detail multicalls not-important and answers an empty
result instead of an error when they fail.

How to verify. New tests/js/webui-stale-details.spec.js. Manual: open a
torrent's details, erase that torrent from another tab — before: frozen pane and an
error popup; after: the pane clears silently.

…ail polls fail quietly

When the torrent shown in the details pane is erased or replaced while
the pane is open, ruTorrent keeps rendering it: theWebUI.dID still
points at a hash that is gone from dataTorrents, and the cached
files/dirs/peers/trackers for that hash are never freed (the trackers
map was also missing from the cleanup on the normal removal path).
Meanwhile the file/peer/tracker detail multicalls for the vanished hash
fault, and because they are flagged important the failure surfaces as a
red XMLRPC error dialog for what is a routine race between polling and
erase.

Clear the pane and its caches when the hash disappears from the list,
and let a detail poll answer with an empty result instead of an error.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@xirvik
xirvik merged commit cf5aef4 into Novik:master Aug 15, 2026
5 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