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
fix: retry instead of spawning local server when auto_kill=false (#366)
* fix: retry instead of spawning local server when auto_kill=false
When connecting to an externally managed server (auto_kill=false), the
health check failure path fell through to spawn_local_server(). These
spawned processes survived Neovim exit (Go binary ignores SIGHUP) and
were never cleaned up because VimLeavePre only unregistered the port
instead of killing the process.
Now retries the health check (5 attempts with backoff) instead of
spawning an orphan.
* test: cover auto_kill=false retry path in server_job
Add three tests for the new code path that retries connecting to an
externally managed server instead of spawning a local one:
- succeeds after transient health-check failures
- rejects after exhausting all retries
- never falls back to spawn_local_server
0 commit comments