@@ -1222,10 +1222,6 @@ pub struct ExecCommandBeginEvent {
12221222pub struct ExecCommandEndEvent {
12231223 /// Identifier for the ExecCommandBegin that finished.
12241224 pub call_id : String ,
1225- /// True when this exec was initiated directly by the user (e.g. bang command),
1226- /// not by the agent/model. Defaults to false for backwards compatibility.
1227- #[ serde( default ) ]
1228- pub is_user_shell_command : bool ,
12291225 /// Captured stdout
12301226 pub stdout : String ,
12311227 /// Captured stderr
@@ -1262,10 +1258,6 @@ pub enum ExecOutputStream {
12621258pub struct ExecCommandOutputDeltaEvent {
12631259 /// Identifier for the ExecCommandBegin that produced this chunk.
12641260 pub call_id : String ,
1265- /// True when this exec was initiated directly by the user (e.g. bang command),
1266- /// not by the agent/model. Defaults to false for backwards compatibility.
1267- #[ serde( default ) ]
1268- pub is_user_shell_command : bool ,
12691261 /// Which stream produced this chunk.
12701262 pub stream : ExecOutputStream ,
12711263 /// Raw bytes from the stream (may not be valid UTF-8).
@@ -1552,13 +1544,12 @@ mod tests {
15521544 fn vec_u8_as_base64_serialization_and_deserialization ( ) -> Result < ( ) > {
15531545 let event = ExecCommandOutputDeltaEvent {
15541546 call_id : "call21" . to_string ( ) ,
1555- is_user_shell_command : false ,
15561547 stream : ExecOutputStream :: Stdout ,
15571548 chunk : vec ! [ 1 , 2 , 3 , 4 , 5 ] ,
15581549 } ;
15591550 let serialized = serde_json:: to_string ( & event) ?;
15601551 assert_eq ! (
1561- r#"{"call_id":"call21","is_user_shell_command":false," stream":"stdout","chunk":"AQIDBAU="}"# ,
1552+ r#"{"call_id":"call21","stream":"stdout","chunk":"AQIDBAU="}"# ,
15621553 serialized,
15631554 ) ;
15641555
0 commit comments