8000 Drain shared Mac relay work during shutdown by hmmhmmhm · Pull Request #400 · hmmhmmhm/daiso-mcp · GitHub
[go: up one dir, main page]

Skip to content

Drain shared Mac relay work during shutdown - #400

Merged
hmmhmmhm merged 4 commits into
mainfrom
fix/dtryx-graceful-drain
Dec 3, 2026
Merged

hmmhmmhm merged 4 commits into
mainfrom
fix/dtryx-graceful-drain

Conversation

@hmmhmmhm
@hmmhmmhm hmmhmmhm commented Dec 3, 2026
Copy link
Copy Markdown
Owner

Problem

Restarting the shared Mac relay immediately closes active connections, which can interrupt requests, GS25 session maintenance, and Seven Safari cleanup. The existing launchd timeout can expire before the Safari helper finishes.

Change

  • Stop admission on shutdown and wait for active HTTP responses and tracked underlying work, including GS25 maintenance and Seven Safari cleanup.
  • Record an uncertain shutdown when work or Safari cleanup cannot be confirmed; retain signal handlers while draining.
  • Document the Dtryx-specific launchd timeout and the remaining limitations of the first transition from the legacy runtime.

Validation

  • Node 24.15.0: full npm run check and npm run test:coverage passed before the final focused signal, timeout, and uncertainty follow-ups; focused regression tests and lint passed after each follow-up.
  • Isolated loopback HTTP and repeated OS signal checks passed; synthetic plist validation preserved unrelated keys.
  • Independent review covered shutdown admission, tracked work, Safari cleanup, and launchd timeout. Actual Mac deployment and production verification remain separate.

@hmmhmmhm
hmmhmmhm merged commit 315d7cb into main Dec 3, 2026
10 checks passed
@hmmhmmhm
hmmhmmhm deleted the fix/dtryx-graceful-drain branch December 3, 2026 03:23
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

0