@@ -39,7 +39,7 @@ export interface TestFixture {
3939 getCodexAcpAgent ( ) : CodexAcpServer ,
4040
4141 onCodexConnectionEvent ( handler : ( event : CodexConnectionEvent ) => void ) : void ,
42- getCodexConnectionDump ( ignoredFields : string [ ] ) : string ,
42+ getCodexConnectionDump ( ignoredFields : string [ ] , options ?: { ignoreNotificationMethods ?: string [ ] } ) : string ,
4343 clearCodexConnectionDump ( ) : void ,
4444
4545 onAcpConnectionEvent ( handler : ( event : MethodCallEvent ) => void ) : void ,
@@ -85,8 +85,14 @@ export function createBaseTestFixture(config: ConnectionConfig): TestFixture {
8585 getCodexAcpClient ( ) : CodexAcpClient {
8686 return codexAcpClient ;
8787 } ,
88- getCodexConnectionDump ( ignoredFields : string [ ] ) : string {
89- return createArrayDump ( transportEvents , ignoredFields ) ;
88+ getCodexConnectionDump ( ignoredFields : string [ ] , options ?: { ignoreNotificationMethods ?: string [ ] } ) : string {
89+ const ignoredMethods = new Set ( options ?. ignoreNotificationMethods ?? [ ] ) ;
90+ const filteredEvents = ignoredMethods . size === 0
91+ ? transportEvents
92+ : transportEvents . filter ( ( event ) =>
93+ ! ( event . eventType === "notification" && ignoredMethods . has ( event . method ) )
94+ ) ;
95+ return createArrayDump ( filteredEvents , ignoredFields ) ;
9096 } ,
9197 onCodexConnectionEvent ( handler : ( event : CodexConnectionEvent ) => void ) : void {
9298 codexEventHandlers . push ( handler ) ;
0 commit comments