fix(adminui): _canRebirth is captured at browse-open, so a reaped session still draws Request-rebirth
#510
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
RawBrowseModal.razor:377sets_canRebirth = BrowserService.CanRequestRebirth(_token)once, when thebrowse session is established. Browse sessions are reaped for idleness after ~2 minutes. A modal left open past
the reap therefore still renders the Request rebirth… button (
RawBrowseModal.razor:102), and clicking itfails against a token that no longer resolves.
Not silent — the error is surfaced to the operator, not swallowed, and reopening the browser fixes it. So
this is a stale-affordance defect: the UI offers an action it can no longer perform.
Fix options, in increasing order of effort:
CanRequestRebirth(_token)at click time and, on a dead token, re-establish the session (ortell the operator to reopen) instead of erroring.
Option 1 alone closes the operator-visible symptom.
Acceptance. With a browse modal open and idle past the reap window, the rebirth affordance either works
(session re-established) or is no longer offered — it never presents and then errors.