@@ -16,6 +16,7 @@ const {
1616 isPlaceholderOnlyValue,
1717 isPlaceholder,
1818 isRawPlaceholder,
19+ isUnusableVersion,
1920 countWords,
2021 hasConcreteDetail,
2122 rejectsWorkflowDispatchPullRequest,
@@ -693,6 +694,135 @@ describe("validateIssue - bug", () => {
693694 assert . equal ( result . valid , false ) ;
694695 assert . ok ( result . reasons . some ( ( r ) => r . includes ( "Version" ) ) ) ;
695696 } ) ;
697+
698+ it ( "rejects unknown / don't-know Version values (#624)" , ( ) => {
699+ const versions = [
700+ "Unknown" ,
701+ "Uknown" ,
702+ "unkown" ,
703+ "Don't know" ,
704+ "dont know" ,
705+ "idk" ,
706+ "모름" ,
707+ "잘 모름" ,
708+ "?" ,
709+ "???" ,
710+ ] ;
711+ for ( const version of versions ) {
712+ const body = [
713+ "### Client or integration" ,
714+ "Codex CLI" ,
715+ "### Area" ,
716+ "CLI" ,
717+ "### Summary" ,
718+ "The OpenCodex proxy keeps dropping the Codex CLI connection mid-request." ,
719+ "### Reproduction" ,
720+ "1. ocx start --port 10100" ,
721+ "2. Send any Codex CLI request through the proxy" ,
722+ "3. Observe the connection drop" ,
723+ "### Version" ,
724+ version ,
725+ "### Operating system" ,
726+ "Windows 11" ,
727+ ] . join ( "\n" ) ;
728+ const result = validateIssue ( {
729+ title : "Unexpected interruption continues to occur" ,
730+ body,
731+ labels : [ "bug" ] ,
732+ } ) ;
733+ assert . equal ( result . kind , "bug" ) ;
734+ assert . equal (
735+ result . valid ,
736+ false ,
737+ `Expected unusable Version "${ version } " to be invalid, got: ${ result . reasons . join ( "; " ) } ` ,
738+ ) ;
739+ assert . ok (
740+ result . reasons . some ( ( r ) => / V e r s i o n / i. test ( r ) && / u n k n o w n | m i s s i n g / i. test ( r ) ) ,
741+ `Expected Version unknown/missing reason for "${ version } ", got: ${ result . reasons . join ( "; " ) } ` ,
742+ ) ;
743+ }
744+ } ) ;
745+
746+ it ( "rejects issue #624-style low-effort new-form bug" , ( ) => {
747+ const body = [
748+ "### Client or integration" ,
749+ "Codex CLI" ,
750+ "### Area" ,
751+ "CLI" ,
752+ "### Summary" ,
753+ "CLI로 확인해봤는데 오픈코덱스 프록시가 중간에 자꾸 연결이 끊어져서 그런거라고 합니다." ,
754+ "" ,
755+ "수정 바랍니다." ,
756+ "### Reproduction" ,
757+ "예기치않게중단됨" ,
758+ "### Version" ,
759+ "모름" ,
760+ "### Operating system" ,
761+ "윈11" ,
762+ "### Provider and model" ,
763+ "_No response_" ,
764+ "### Logs or error output" ,
765+ "```shell" ,
766+ "" ,
767+ "```" ,
768+ ] . join ( "\n" ) ;
769+ const result = validateIssue ( {
770+ title : "Unexpected interruption continues to occur" ,
771+ body,
772+ labels : [ "bug" ] ,
773+ } ) ;
774+ assert . equal ( result . kind , "bug" ) ;
775+ assert . equal ( result . valid , false ) ;
776+ assert . ok ( result . reasons . some ( ( r ) => / V e r s i o n / i. test ( r ) ) ) ;
777+ assert . ok ( result . reasons . some ( ( r ) => / R e p r o d u c t i o n / i. test ( r ) && / v a g u e | e m p t y / i. test ( r ) ) ) ;
778+ } ) ;
779+
780+ it ( "rejects a new-form bug with a usable Version but placeholder OS" , ( ) => {
781+ const body = [
782+ "### Client or integration" ,
783+ "Codex CLI" ,
784+ "### Area" ,
785+ "CLI" ,
786+ "### Summary" ,
787+ "Proxy returns 502 when streaming is enabled on Windows." ,
788+ "### Reproduction" ,
789+ "1. ocx start" ,
790+ "2. Send a streaming /v1/responses request" ,
791+ "### Version" ,
792+ "2.7.42" ,
793+ "### Operating system" ,
794+ "No response" ,
795+ ] . join ( "\n" ) ;
796+ const result = validateIssue ( { title : "Streaming 502" , body, labels : [ "bug" ] } ) ;
797+ assert . equal ( result . kind , "bug" ) ;
798+ assert . equal ( result . valid , false ) ;
799+ assert . ok ( result . reasons . some ( ( r ) => / O p e r a t i n g s y s t e m / i. test ( r ) ) ) ;
800+ } ) ;
801+
802+ it ( "rejects a new-form bug whose Reproduction is only a vague phrase" , ( ) => {
803+ const body = [
804+ "### Client or integration" ,
805+ "Codex CLI" ,
806+ "### Area" ,
807+ "CLI" ,
808+ "### Summary" ,
809+ "The OpenCodex proxy keeps dropping the Codex CLI connection mid-request." ,
810+ "### Reproduction" ,
811+ "Unexpected interruption" ,
812+ "### Version" ,
813+ "2.7.42" ,
814+ "### Operating system" ,
815+ "Windows 11" ,
816+ ] . join ( "\n" ) ;
817+ const result = validateIssue ( {
818+ title : "Unexpected interruption continues to occur" ,
819+ body,
820+ labels : [ "bug" ] ,
821+ } ) ;
822+ assert . equal ( result . kind , "bug" ) ;
823+ assert . equal ( result . valid , false ) ;
824+ assert . ok ( result . reasons . some ( ( r ) => / R e p r o d u c t i o n / i. test ( r ) && / v a g u e / i. test ( r ) ) ) ;
825+ } ) ;
696826} ) ;
697827
698828// ---------------------------------------------------------------------------
@@ -839,6 +969,16 @@ describe("normalisation", () => {
839969 assert . equal ( clean ( "Not available!" ) , "" ) ;
840970 } ) ;
841971
972+ it ( "detects unusable Version stand-ins without treating them as generic placeholders" , ( ) => {
973+ for ( const value of [ "Unknown" , "Uknown" , "모름" , "idk" , "don't know" ] ) {
974+ assert . equal ( isUnusableVersion ( value ) , true , value ) ;
975+ assert . equal ( isPlaceholderOnlyValue ( value ) , false , value ) ;
976+ }
977+ for ( const value of [ "2.7.42" , "N/A" , "No response" , "main@abc1234" ] ) {
978+ assert . equal ( isUnusableVersion ( value ) , false , value ) ;
979+ }
980+ } ) ;
981+
842982 it ( "does not treat sentences containing placeholder phrases as empty" , ( ) => {
843983 assert . equal ( clean ( "This is N/A for voice mode today." ) , "This is N/A for voice mode today." ) ;
844984 assert . equal ( clean ( "Not applicable to Claude Code." ) , "Not applicable to Claude Code." ) ;
0 commit comments