Nimblesite / Nimblesite/SharpLsp

Sidecar spawn-time failures bypass crash backoff — unthrottled respawn storm

Open
#152 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug cluster:sidecar-startup critical
Dominant language
TypeScript
Stars
132
Forks
5
Avg merge
6h 24m
Merged PRs (30d)
27

Description

SidecarManager::ensure_running propagates spawn_process errors without engaging any backoff (src/sidecar/manager.rs), and the exponential backoff lives only in handle_crash, which is reached solely from health_loop — and health_loop skips whenever the transport is None. Under a persistent spawn failure (e.g. any pre-READY exit like #110), every semantic LSP request launches a fresh doomed dotnet process with zero delay and the health monitor never engages.

Proposed: route spawn failures through the same backoff state as crashes (or track a spawn-failure timestamp and refuse respawn until the backoff elapses).

Related: #110.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/sidecar/manager.rs by tracing ensure_running, spawn_process, handle_crash, and health_loop. Confirm how crash backoff state is stored and how spawn errors currently propagate. Done means persistent spawn failures are subject to the same backoff or an equivalent delay, including when transport is None, without unthrottled process launches.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.