Skip to content

fix: take the run guard before the first await and always release it - #50

Open
Arthurvroum wants to merge 1 commit into
mainfrom
35-run-guard
Open

Arthurvroum wants to merge 1 commit into
mainfrom
35-run-guard

Conversation

@Arthurvroum

Copy link
Copy Markdown
Collaborator

Run Analysis set isRunning only after its preflight: two requests made while the dependency prompt was open could both pass the check. A setup step that threw after the flag was set (opening a file that disappeared, for automatic entry points) left it set, so every later run reported an analysis already in progress. A rejected request also reset the active run's sidebar status.

The handler now runs inside runGuarded(), which takes the guard synchronously, reports setup failures, and releases it on every exit. A rejected request only shows its warning.

Fixes #35

Run Analysis set isRunning only after its preflight: two requests made
while the dependency prompt was open could both pass the check. A setup
step that threw after the flag was set (opening a file that disappeared,
for automatic entry points) left it set, so every later run reported an
analysis already in progress. A rejected request also reset the active
run's sidebar status.

The handler now runs inside runGuarded(), which takes the guard
synchronously, reports setup failures, and releases it on every exit.
A rejected request only shows its warning.

Fixes #35
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.

Concurrent run requests can pass preflight together, and setup failures can leave analysis locked

1 participant