Detect whether CC is showing numbered permission options (e.g. "1. Yes, 2. No") vs a simple y/N prompt. Returns the approval method to use.
CC's permission UI uses indented numbered lines with "Esc to cancel" nearby. We look for the pattern " . " where N is 1-3, which distinguishes permission options from regular numbered lists in output.
Detect whether CC is showing numbered permission options (e.g. "1. Yes, 2. No") vs a simple y/N prompt. Returns the approval method to use.
CC's permission UI uses indented numbered lines with "Esc to cancel" nearby. We look for the pattern ".