Skip to content

Fix numeric filter negative range parsing and MCP shutdown deadlock risk#207

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/quick-wins-113-112
Feb 20, 2026
Merged

Fix numeric filter negative range parsing and MCP shutdown deadlock risk#207
erikdarlingdata merged 1 commit intodevfrom
fix/quick-wins-113-112

Conversation

@erikdarlingdata
Copy link
Owner

Summary

Test plan

  • Build succeeds with zero warnings
  • Numeric grid filters still work for positive ranges (e.g., 100-500)
  • App closes cleanly without hanging

🤖 Generated with Claude Code

NumericFilterHelper: Replace naive Split('-') range parsing with TryParseRange
that finds the separator dash by looking for a '-' preceded by a digit. Correctly
handles -100-200, -100--50, and .. syntax. Previously, negative-start ranges were
silently ignored due to the StartsWith('-') guard.

MainWindow: Wrap MCP StopAsync in Task.Run to avoid sync-over-async deadlock on
the WPF UI thread during app close.

Addresses items from #113 and #112.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 85475db into dev Feb 20, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/quick-wins-113-112 branch February 20, 2026 14:21
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