@@ -48,15 +48,13 @@ describe("codex app-server session binding", () => {
4848
4949 const binding = await readCodexAppServerBinding ( sessionFile ) ;
5050
51- expect ( binding ) . toMatchObject ( {
52- schemaVersion : 1 ,
53- threadId : "thread-123" ,
54- sessionFile,
55- cwd : tempDir ,
56- model : "gpt-5.4-codex" ,
57- modelProvider : "openai" ,
58- dynamicToolsFingerprint : "tools-v1" ,
59- } ) ;
51+ expect ( binding ?. schemaVersion ) . toBe ( 1 ) ;
52+ expect ( binding ?. threadId ) . toBe ( "thread-123" ) ;
53+ expect ( binding ?. sessionFile ) . toBe ( sessionFile ) ;
54+ expect ( binding ?. cwd ) . toBe ( tempDir ) ;
55+ expect ( binding ?. model ) . toBe ( "gpt-5.4-codex" ) ;
56+ expect ( binding ?. modelProvider ) . toBe ( "openai" ) ;
57+ expect ( binding ?. dynamicToolsFingerprint ) . toBe ( "tools-v1" ) ;
6058 const bindingStat = await fs . stat ( resolveCodexAppServerBindingPath ( sessionFile ) ) ;
6159 expect ( bindingStat . isFile ( ) ) . toBe ( true ) ;
6260 } ) ;
@@ -142,11 +140,9 @@ describe("codex app-server session binding", () => {
142140 const binding = await readCodexAppServerBinding ( sessionFile , nativeAuthLookup ) ;
143141
144142 expect ( raw ) . not . toContain ( '"modelProvider": "openai"' ) ;
145- expect ( binding ) . toMatchObject ( {
146- threadId : "thread-123" ,
147- authProfileId : "work" ,
148- model : "gpt-5.4-mini" ,
149- } ) ;
143+ expect ( binding ?. threadId ) . toBe ( "thread-123" ) ;
144+ expect ( binding ?. authProfileId ) . toBe ( "work" ) ;
145+ expect ( binding ?. model ) . toBe ( "gpt-5.4-mini" ) ;
150146 expect ( binding ?. modelProvider ) . toBeUndefined ( ) ;
151147 } ) ;
152148
0 commit comments