You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub(crate)constTURN_ABORTED_INTERRUPTED_GUIDANCE:&str = "The user interrupted the previous turn on purpose. Any running unified exec processes may still be running in the background. If any tools/commands were aborted, they may have partially executed.";
66
67
pub(crate)constTURN_ABORTED_INTERRUPTED_DEVELOPER_GUIDANCE:&str = "The previous turn was interrupted on purpose. Any running unified exec processes may still be running in the background. If any tools/commands were aborted, they may have partially executed.";
67
68
69
+
#[derive(Debug,Clone,Copy,PartialEq,Eq)]
70
+
pub(crate)enumInterruptedTurnHistoryMarker{
71
+
Disabled,
72
+
ContextualUser,
73
+
Developer,
74
+
}
75
+
76
+
implInterruptedTurnHistoryMarker{
77
+
pub(crate)fnfrom_config(config:&Config) -> Self{
78
+
if !config.agent_interrupt_message_enabled{
79
+
returnSelf::Disabled;
80
+
}
81
+
if config.features.enabled(Feature::MultiAgentV2){
82
+
Self::Developer
83
+
}else{
84
+
Self::ContextualUser
85
+
}
86
+
}
87
+
}
88
+
68
89
/// Shared model-visible marker used by both the real interrupt path and
0 commit comments