Skip to content

Enforce panic catching in the Oak LSP - #1406

Open
lionel- wants to merge 7 commits into
oak-panic/catchfrom
oak-panic/enforce
Open

Enforce panic catching in the Oak LSP#1406
lionel- wants to merge 7 commits into
oak-panic/catchfrom
oak-panic/enforce

Conversation

@lionel-

@lionel- lionel- commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #1405.

This PR enforces good panic catching conventions for Salsa accesses.

  • All Salsa DB access now go through dedicated accessors that check whether a "panic boundary" (i.e. a catch site) is active on the stack. This ensures that new code/handlers in the Oak LSP are properly guarded against panics.

  • A clippy rule disallows bare panic catching. Instead the codebase must now use crate::panic::catch_unwind() which declares a panic boundary.

  • Add boundaries around Tokio tasks and processes.

Positron Release Notes

New Features

  • N/A

Bug Fixes

  • N/A

@lionel-
lionel- added this pull request to stack #1407 September 11, 2026 15:03
@lionel-
lionel- requested a review from thomasp85 September 11, 2026 15: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