@@ -14,6 +14,7 @@ import type {
1414 CommandExecutionOutputDeltaNotification ,
1515 ConfigWarningNotification ,
1616 ErrorNotification ,
17+ GuardianWarningNotification ,
1718 ItemCompletedNotification ,
1819 ItemStartedNotification , ThreadItem ,
1920 ModelReroutedNotification ,
@@ -104,10 +105,12 @@ export class CodexEventHandler {
104105 case "turn/diff/updated" :
105106 case "item/commandExecution/terminalInteraction" :
106107 case "item/fileChange/outputDelta" :
108+ case "item/fileChange/patchUpdated" :
107109 case "account/updated" :
108110 case "fs/changed" :
109111 case "mcpServer/startupStatus/updated" :
110112 case "serverRequest/resolved" :
113+ case "model/verification" :
111114 return null ;
112115 case "item/mcpToolCall/progress" :
113116 return this . createMcpToolProgressEvent ( notification . params ) ;
@@ -118,6 +121,8 @@ export class CodexEventHandler {
118121 return await this . createConfigWarningEvent ( notification . params ) ;
119122 case "warning" :
120123 return this . createWarningEvent ( notification . params ) ;
124+ case "guardianWarning" :
125+ return this . createGuardianWarningEvent ( notification . params ) ;
121126 case "thread/compacted" :
122127 return {
123128 sessionUpdate : "agent_message_chunk" ,
@@ -191,6 +196,16 @@ export class CodexEventHandler {
191196 } ;
192197 }
193198
199+ private createGuardianWarningEvent ( event : GuardianWarningNotification ) : UpdateSessionEvent {
200+ return {
201+ sessionUpdate : "agent_message_chunk" ,
202+ content : {
203+ type : "text" ,
204+ text : `Guardian warning: ${ event . message } \n\n`
205+ }
206+ } ;
207+ }
208+
194209 private createModelReroutedEvent ( event : ModelReroutedNotification ) : UpdateSessionEvent {
195210 return {
196211 sessionUpdate : "agent_thought_chunk" ,
0 commit comments