mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 15:38:22 +08:00
Real claude-cli/2.1.220 auto-mode classifier requests carry two system entries: the security-monitor prompt plus an appended session-context block. The previous len(systemEntries) != 1 guard rejected them before any content check ran, so claude_code_only groups kept refusing the classifier (#5152, follow-up to #5041/#5048). Scan every entry for the monitor prompt instead of requiring exactly one. Discrimination is unchanged: the matching entry still needs the 10k-char minimum, the fixed prefix, and all eight markers.