mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-04-25 13:44:06 +08:00
## Fixes 1. **Test visibility**: Added is_unknown_verb_option_error to mod tests use super import list so tests can call the detector function. 2. **Detector precision**: The verb-option detector was incorrectly matching 'unknown option: --foo' (generic form missing a verb). Tightened the detector to require a non-empty, space-free verb between 'unknown ' and ' option:'. Now correctly matches only verb-qualified rejections like: - 'unknown system-prompt option: --json' - 'unknown export option: --bogus' ## Test Results - All 180 library tests pass - 4 new #248-specific classifier tests pass: - classify_error_kind_covers_verb_qualified_unknown_options_248 - is_unknown_verb_option_error_only_matches_verb_qualified_shape_248 - No regressions (all existing classifier paths still classifying correctly) ## Status #248 implementation is complete and tested. Branch is ready for code review before merging to main. The implementation extends the classifier to handle verb-qualified unknown-option rejections across all subcommands (system-prompt, export, dump-manifests, etc.) plus unknown subcommand/slash-command rejections at the top level.