Skip to content

Add right-click View Plan on Lite Deadlocks grid (#880)#882

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/880-deadlock-view-plan
Apr 22, 2026
Merged

Add right-click View Plan on Lite Deadlocks grid (#880)#882
erikdarlingdata merged 1 commit intodevfrom
feature/880-deadlock-view-plan

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Adds a right-click View Plan context menu item on rows in the Lite Deadlocks grid
  • Looks up the estimated plan via sql_handle + statement offsets against sys.dm_exec_query_stats, falling back to executionStack/frame entries when the process-level handle is empty or evicted
  • Result opens in the existing plan viewer tab labeled Est Plan - Victim SPID N or Est Plan - Deadlocker SPID N

First of three surfaces for #880; Dashboard Blocked Process Reports and Dashboard Deadlocks will follow in separate PRs.

Test plan

  • Build clean (0 errors)
  • Connect to a server with recent deadlocks, right-click a row → View Plan → plan tab opens
  • Row whose plan has been evicted from cache shows a clear "plan evicted" message rather than silently failing
  • Row with only zero-handles (dynamic SQL / system context) shows "no resolvable sql_handle"

🤖 Generated with Claude Code

Surfaces the estimated plan for a deadlock participant by looking up
the row's sql_handle + statement offsets (and executionStack frames as
fallback) against sys.dm_exec_query_stats. Tab is labeled "Est Plan -
Victim/Deadlocker SPID N".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit cfd7fab into dev Apr 22, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/880-deadlock-view-plan branch April 22, 2026 20:19
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