Skip to content

fix(worker): discard late configuration during shutdown - #979

Merged
nixuuu merged 1 commit into
devfrom
fix/worker-config-during-shutdown
Nov 18, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/worker-config-during-shutdown

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 18, 2026

Copy link
Copy Markdown
Member

Change

After a worker falls back from an unavailable saved secure route, SIGTERM can race the first configuration probe. A probe that returns after shutdown has stopped the CLI check timer can start it again. The process then stays alive even after the journal and connections have closed.

Check shutdown state before and after probing. Configuration that loses the race is reported as unapplied. The next worker process applies the configuration on connection.

Fixes: #967
Related: #974

Verification

  • Reproduced exit code 137 using the worker route migration test on the commit for fix(worker): finish updates after device cleanup fails #967. The same test passed on its parent.
  • All 8 tests in the worker route migration, worker shutdown, and worker update cleanup suites passed with this change through check:tmp.
  • Worker typecheck, targeted lint and formatting, and git diff --check passed. GitHub CI runs the full gate.

@nixuuu
nixuuu enabled auto-merge (squash) November 18, 2026 16:35
@nixuuu
nixuuu merged commit bcf7146 into dev Nov 18, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/worker-config-during-shutdown branch November 18, 2026 16:46
nixuuu added a commit that referenced this pull request Nov 18, 2026
## Problem

The Updates and Provider usage panels in the sidebar footer can overlap
when the pointer moves quickly between their triggers. Each panel
manages its own open state, so the first panel can stay open during its
250 ms pointer-leave grace period while the second opens.

## Change

- Share the active panel between the two footer controls and skip the
outgoing panel’s exit animation on handoff.
- Preserve the pointer grace period for moving into panel content. A
panel opened by activating its button takes priority over hover.
- Keep keyboard activation, Escape dismissal, focus return, and
narrow-screen sheets.

## Verification

Retested PR head `192bac0ae0c032b3a95b75bc51d9d03dad3ce116` locally on
`nix-pc` after syncing with `dev`. The isolated Chromium 155 regression
using the shared Popover passed all four viewport and theme
combinations. The three edited Svelte components compiled without
warnings. The sync includes #979, which fixes the worker shutdown race
that caused the route migration test to time out in CI.

- An isolated Chromium regression using the shared Popover reproduced
simultaneous open panels with the previous independent state and passed
with the fix.
- Verified handoff in both directions, entry into panel content,
pointer-leave dismissal, keyboard activation, Escape and focus return on
the applicable widths. Checked light and dark at 390 px and 1024 px.
- Compiled the three edited Svelte components and ran the formatter on
the edited TypeScript and CSS. Repository-wide checks remain with CI.
- Copy audit: no UI text changes.

Fixes: #726
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.

1 participant