CodeNomad/.github/workflows
Pascal André 4c50829da0
fix(ui): defer session virtualization for closed left panel (#612)
## Summary
- do not mount SessionList while the temporary left drawer is floating
and closed
- keep the session-list error state mutually exclusive with virtualized
rows
- register focused visibility-policy tests in the PR workflow

## Root cause
SUID constructs temporary Drawer children while open is false. This
occurs both after restarting with a persisted closed panel and when
narrowing the window into mobile mode, which forces the left panel to
become unpinned and closed. SessionSidebar then mounted the virtua
Virtualizer in a detached staging document. virtua resolves
ResizeObserver through ownerDocument.defaultView, which is null for that
document.

The failure is timing-dependent: if session hydration publishes rows
while that closed mobile Drawer is detached, the synchronous render
exception escapes through setSessionPage and is caught by fetchSessions
as if the successful API request had failed. Opening the panel later
therefore reveals an empty list or the misleading Unable to load
sessions error. If hydration finishes under a different drawer
lifecycle, the bug does not appear.

Because the error UI and virtualized rows were both mounted, Retry
cleared the error and immediately hit the same poisoned lifecycle again.

## Behavior
Session fetching and startup restore continue while the panel is closed.
The virtualized DOM is created only after the panel is open or pinned.
Genuine list errors dispose the rows; Retry can then mount a clean
virtualizer after succeeding.

## Reproduction
1. Narrow the window until CodeNomad enters mobile mode and the left
panel can no longer remain pinned.
2. Leave the sessions panel closed while sessions hydrate, or restart in
that state.
3. Open the left panel.
4. Before this fix, the list may be empty or show Unable to load
sessions with a ResizeObserver null error.

## Validation
- 19 focused session visibility, tree, and pagination tests
- UI TypeScript typecheck
- production Vite build
- full Windows Tauri release build
- NSIS installer bundle
- regression test included in PR CI
2026-07-19 17:19:32 +01:00
..
build-and-upload.yml build: publish deb and portable tar.gz Linux artifacts (#492) 2026-07-12 19:29:33 +02:00
comment-pr-artifacts.yml fix(restore): simplify persistence and harden cross-platform cleanup (#602) 2026-07-17 22:17:15 +01:00
dev-release.yml ci: run dev prerelease nightly 2026-02-20 13:58:32 +00:00
manual-npm-publish.yml fix(ci): invoke pinned npm cli directly 2026-04-21 11:18:38 +01:00
pr-build.yml fix(ui): defer session virtualization for closed left panel (#612) 2026-07-19 17:19:32 +01:00
release-ui.yml fix(desktop): restore managed Node server startup (#348) 2026-04-26 13:20:47 +01:00
release.yml chore(release): publish dev builds as codenomad-dev 2026-02-13 00:39:14 +00:00
restrict-non-dev-prs.yml fix(workflows): recheck non-dev PR authorization by author 2026-04-01 23:11:25 +01:00
reusable-release.yml fix: wire Winget automation into release pipeline (#551) 2026-06-13 17:51:24 +01:00
update-winget.yml fix: wire Winget automation into release pipeline (#551) 2026-06-13 17:51:24 +01:00