Skip to content

fix(lsp): defer agent prompts off initialize hook to avoid JSON-RPC re-entrancy - #15

Merged
saulotoledo merged 1 commit into
mainfrom
fix/avoid-json-rpc-re-entrancy
Aug 10, 2026
Merged

fix(lsp): defer agent prompts off initialize hook to avoid JSON-RPC re-entrancy#15
saulotoledo merged 1 commit into
mainfrom
fix/avoid-json-rpc-re-entrancy

Conversation

@saulotoledo

Copy link
Copy Markdown
Owner

Blocking y-or-n-p / read-string inside lsp-after-initialize-hook (and build-tool process sentinels) lets JDTLS notifications nest into lsp-mode's unfinished deserialize path, producing hash-table-p errors when jal-auto-setup is nil. Schedule prompts and restarts via run-at-time.

…e-entrancy

Blocking `y-or-n-p` / `read-string` inside `lsp-after-initialize-hook` (and
build-tool process sentinels) lets JDTLS notifications nest into lsp-mode's
unfinished deserialize path, producing `hash-table-p` errors when
`jal-auto-setup` is `nil`. Schedule prompts and restarts via `run-at-time`.
@saulotoledo
saulotoledo merged commit ec88b0e into main Aug 10, 2026
2 checks passed
@saulotoledo
saulotoledo deleted the fix/avoid-json-rpc-re-entrancy branch August 10, 2026 14:38
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