pub struct PlanConfig {
pub auto_approve: bool,
pub post_approve: Option<PlanPostApprove>,
pub permissions: PlanPermissions,
pub model: Option<String>,
pub reasoning: Option<ReasoningLevel>,
}Expand description
Plan-mode settings ([plan]).
Fields§
§auto_approve: boolWhen true, exit_plan_mode skips the approval dialog entirely: the
plan is approved the moment the model presents it. Default false —
the dialog is the point of plan mode.
post_approve: Option<PlanPostApprove>Pin what approval does. Unset (default) the dialog offers both “Approve and start” and “Approve and wait” every time; set, it collapses to a single Approve option with this behavior. Option + skip_serializing keeps “unset” meaningful in saved configs (the freeze-defaults rule).
permissions: PlanPermissionsPer-category permission profile while planning. Edited live in the
/plan config picker; the reducer threads the LIVE values onto each
tool dispatch (the startup Config snapshot in ExecContext would
go stale).
model: Option<String>Plan-phase model override: entering plan mode swaps the session to this model and leaving restores the previous one — plan on a frontier model, execute locally (or invert for privacy). Unset = plan with whatever is running.
reasoning: Option<ReasoningLevel>Plan-phase reasoning override, same swap/restore contract as model.
Trait Implementations§
Source§impl Clone for PlanConfig
impl Clone for PlanConfig
Source§fn clone(&self) -> PlanConfig
fn clone(&self) -> PlanConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlanConfig
impl Debug for PlanConfig
Source§impl Default for PlanConfig
impl Default for PlanConfig
Source§fn default() -> PlanConfig
fn default() -> PlanConfig
Source§impl<'de> Deserialize<'de> for PlanConfigwhere
PlanConfig: Default,
impl<'de> Deserialize<'de> for PlanConfigwhere
PlanConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for PlanConfig
impl RefUnwindSafe for PlanConfig
impl Send for PlanConfig
impl Sync for PlanConfig
impl Unpin for PlanConfig
impl UnsafeUnpin for PlanConfig
impl UnwindSafe for PlanConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more