Repository navigation
fix: concore stop can kill unrelated processes (false positive pattern matching) - #622
Open
Somya-jain0811 wants to merge 1 commit into
Conversation
|
🎉 Welcome aboard, @Somya-jain0811! Thank you for your first pull request in concore. Please ensure that you are contributing to the dev branch. Your contribution means a lot to us. We'll review it shortly. Please ensure you have reviewed our: If you have any questions, feel free to ask. Happy coding! |
…ess detection
The old is_concore check ('concore' in cmdline) was dangerously broad —
it matched editors, git, IDEs, and anything else that happened to touch
a file with 'concore' in its path.
Changes:
- Extract shared detection logic into process_utils.py
- Use regex patterns that only match actual concore executions
(python concore_*.py, python -m concore, concore CLI commands)
- Trust the PID registry (concorekill_pids.txt) as primary source
- Detect concorekill.bat as a concore-owned process
- Update stop.py and status.py to use the new strict detector
- Add comprehensive tests covering true positives, false positives,
PID registry, and edge cases
Somya-jain0811
force-pushed
the
fix/stop-false-positive-process-matching
branch
from
October 29, 2026 07:37
61975c4 to
de510b7
Compare
Author
|
Hey @pradeeban Wanted to clarify how this relates to #581. PR #581 solved the false-positive issue by checking
What this PR does:
Happy to clean up / alias |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #623
concore stop used broad substring matching ('concore' in cmdline) to detect processes. This matched editors, git, IDEs, and anything else that touched a file with 'concore' in its path - potentially killing unrelated processes.
For example, running concore stop while VS Code had a concore file open (code concore/README.md) would kill the editor. Same for git -C concore pull or grep -r concore ./src.
Fix
Extracted shared detection into process_utils.py with a 5-tier strict approach:
Updated both stop.py and status.py to use the new detector.
Tests
Added 19 test cases in tests/test_process_detection.py:
Files Changed