@@ -1430,7 +1430,7 @@ describe("CLI", () => {
14301430 expect ( [ failed . status , failed . stdout , failed . stderr ] ) . toEqual ( [
14311431 2 ,
14321432 "" ,
1433- "codex-security: working directory is unavailable\n" ,
1433+ "working directory is unavailable\n" ,
14341434 ] ) ;
14351435 } finally {
14361436 await rm ( root , { recursive : true , force : true } ) ;
@@ -2029,7 +2029,8 @@ describe("CLI", () => {
20292029 await main ( [ "scan" , "." , "--json" ] , stdout . stream , stderr . stream , deps ) ,
20302030 ) . toBe ( 2 ) ;
20312031 expect ( stdout . text ( ) ) . toBe ( "" ) ;
2032- expect ( stderr . text ( ) ) . toContain ( `codex-security: ${ message } \n` ) ;
2032+ expect ( stderr . text ( ) ) . toContain ( `${ message } \n` ) ;
2033+ expect ( stderr . text ( ) ) . not . toContain ( "codex-security:" ) ;
20332034 expect ( stderr . text ( ) ) . not . toContain ( "model service could not be reached" ) ;
20342035 }
20352036 } ) ;
@@ -2769,7 +2770,7 @@ describe("CLI", () => {
27692770 await main ( [ "scan" , "." ] , stdout . stream , stderr . stream , failing ) ,
27702771 ) . toBe ( 2 ) ;
27712772 expect ( stdout . text ( ) ) . toBe ( "" ) ;
2772- expect ( stderr . text ( ) ) . toContain ( "codex-security: invalid scan request\n" ) ;
2773+ expect ( stderr . text ( ) ) . toContain ( "invalid scan request\n" ) ;
27732774 expect ( stderr . text ( ) ) . not . toContain ( "Running scan" ) ;
27742775 expect ( stderr . text ( ) ) . not . toContain ( "CodexSecurityError" ) ;
27752776 } ) ;
@@ -2794,7 +2795,7 @@ describe("CLI", () => {
27942795 ) ,
27952796 ) . toBe ( 2 ) ;
27962797 expect ( stdout . text ( ) ) . toBe ( "" ) ;
2797- expect ( stderr . text ( ) ) . toContain ( "codex-security: invalid scan request\n" ) ;
2798+ expect ( stderr . text ( ) ) . toContain ( "invalid scan request\n" ) ;
27982799
27992800 const unavailableCwd = dependencies ( ) ;
28002801 unavailableCwd . currentDirectory = ( ) => {
@@ -2922,6 +2923,7 @@ describe("CLI", () => {
29222923 "Isolated Codex runtime directory must be outside the scanned directory and any enclosing Git worktree." ,
29232924 ) ;
29242925 expect ( stderr . text ( ) ) . toContain ( `Partial output was kept at ${ partial } .` ) ;
2926+ expect ( stderr . text ( ) ) . not . toContain ( "codex-security:" ) ;
29252927 } ) ;
29262928
29272929 test ( "redacts credentials embedded in protected-root diagnostics" , async ( ) => {
@@ -2982,8 +2984,7 @@ describe("CLI", () => {
29822984 ) . toBe ( 2 ) ;
29832985 expect ( stdout . text ( ) ) . toBe ( "" ) ;
29842986 expect ( stderr . text ( ) ) . toBe (
2985- "[00:00] Preparing scan\n" +
2986- `codex-security: scan failed ${ REDACTED_CREDENTIALS } \n` ,
2987+ "[00:00] Preparing scan\n" + `scan failed ${ REDACTED_CREDENTIALS } \n` ,
29872988 ) ;
29882989 }
29892990 } ) ;
0 commit comments