You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
iEEG panel: no retry for a transient subject mesh fetch failure #607
The iEEG spatial panel gives up on the subject's own surface after a single failed geometry mesh fetch, with no automatic retry.
A transient server error from the data host (zarr.nemar.org) therefore leaves the reader without the subject surface until they act.
Where
src/lib/ieeg-spatial/panel.ts, startTemplateLoad (around lines 3558-3578): a mesh load that fails for transport reasons dispatches template_failed once. surfaceFailure (around line 2511) classifies anything other than an IntegrityError as "retry", but that retry only happens on reopening the panel, a frame change or a recording change (around lines 1481-1489).
The reader sees SUBJECT_FAILED_SENTENCE (around line 1810): "This subject's anatomy could not be loaded, so the contacts are shown without it. Close and reopen this panel to try again." subjectSurfaceFor in src/lib/ieeg-spatial/subject-anatomy.ts drops a failed load from its cache, so a later attempt does fetch again; nothing triggers one on its own.
Observed
While working on #604 (PR #605), a local Playwright run of the on005415 native-frame tests failed 3 of 5: the panel's data-template-state went to failed with the sentence above.
That run counted 12 HTTP 5xx in total (allowance 10); the counter is run-wide, so it does not say which request each error came from.
Every on005415 geometry file returned 200 when probed right afterwards, and a rerun of the same 3 tests passed with 0 transient failures.
Question
Is a bounded automatic retry wanted for a transport failure on the subject surface (for example one or two retries with a short backoff), or a reader-visible Retry action in the panel instead of "close and reopen"?
The e2e suite in e2e/ieeg-spatial-validation.spec.ts would then stop failing on a single transient 5xx from the data host.
Agentic AI tools were used. The author assumes full responsibility for this content.
Activity