From 6d5cbfa56d393e6128ed6afafb8cd0479e14a150 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Wed, 10 Jun 2026 17:53:40 -0600 Subject: [PATCH] feat: Created the --no-memory CLI flag to disable memory for this invocation --- src/cli/mod.rs | 3 +++ src/main.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index ea3c234..a7571b5 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -75,6 +75,9 @@ pub struct Cli { /// Turn off stream mode #[arg(short = 'S', long)] pub no_stream: bool, + /// Disable memory for this invocation + #[arg(long)] + pub no_memory: bool, /// Display the message without sending it #[arg(long)] pub dry_run: bool, diff --git a/src/main.rs b/src/main.rs index c130a88..fa235f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -292,6 +292,9 @@ async fn run( if cli.no_stream { update_app_config(&mut ctx, |app| app.stream = false); } + if cli.no_memory { + update_app_config(&mut ctx, |app| app.memory = Some(false)); + } if cli.empty_session { ctx.empty_session()?; }