fix(adminui,client): error boundary inside the interactive scope, stale-commit OnSaved, AbCip browse delay emit, DisposeBridge cancel (review R3)
M1: PageErrorBoundary wraps the body of every InteractiveServer page; the inert layout boundary is removed. m1: DisposeBridge cancels its CTS when the 5 s wait times out. m2: a CSV import that commits after the modal closed still raises OnSaved. m3: document SecurityMode=None no-fallback in Client.CLI.md / Client.UI.md. m4: browsePageDelayMs written only when loaded or changed; negative flagged. Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
@@ -305,7 +305,13 @@
|
||||
.ToList();
|
||||
|
||||
var outcome = await Svc.ImportTagsAsync(targetDeviceId, rows);
|
||||
if (IsStale(generation)) { return; }
|
||||
// The write has landed whether or not the modal was closed/reopened meanwhile, so the parent must
|
||||
// still refresh its tree; only the modal-local state writes are skipped when stale.
|
||||
if (IsStale(generation))
|
||||
{
|
||||
if (outcome.Errors.Count == 0) { await OnSaved.InvokeAsync(); }
|
||||
return;
|
||||
}
|
||||
if (outcome.Errors.Count > 0)
|
||||
{
|
||||
_commitErrors = outcome.Errors.ToList();
|
||||
|
||||
Reference in New Issue
Block a user