fix: wrap command templates and stabilize integration tests#78
Conversation
Code ReviewSummaryThe PR makes three changes: (1) wraps command templates with XML instruction tags, (2) removes fragile CEP-rooted integration tests, and (3) stabilizes opencode integration tests with explicit model specification. Issues Found1. Failing Test - False Positive Detection Logic Bug
|
| Check | Status |
|---|---|
| TypeScript typecheck | ✓ Pass |
| Build | ✓ Pass |
| Biome lint | ✓ Pass |
| Unit tests | 18/19 Pass (1 failing) |
Recommendation
Request changes - The failing test needs to be fixed before merge. The false positive detector needs to check the original text, not just the converted output.
Code ReviewSummaryThe PR makes three changes: (1) wraps command templates with XML instruction tags, (2) removes fragile CEP-rooted integration tests, and (3) stabilizes opencode integration tests with explicit model specification. Issues Found1. Failing Test - False Positive Detection Logic Bug
|
| Check | Status |
|---|---|
| TypeScript typecheck | ✓ Pass |
| Biome lint | ✓ Pass |
| Unit tests | 11/12 Pass (1 failing - the bug above) |
Recommendation
Request changes - The failing test needs to be fixed before merge. The false positive detector needs to check both original and converted text, not just converted output.
|
@fro-bot the tests are working in CI, confirm the check is green. if not, resolve the issue on this branch |
The detectFalsePositives function was incorrectly flagging lowercase task nouns as false positives due to regex state persistence. The .test() method with 'g' flag maintains lastIndex between calls, causing the second test (on original string) to start from the wrong position and return false. Fix: Reset lastIndex=0 before each .test() call to ensure consistent behavior across original and converted strings.
No description provided.