From 9752e814893178334b781d69621bb000a8bdfc04 Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Wed, 29 Oct 2025 14:53:10 +1100 Subject: [PATCH] cleanup --- crates/g3-cli/src/lib.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/crates/g3-cli/src/lib.rs b/crates/g3-cli/src/lib.rs index dd3ce55..d13bf19 100644 --- a/crates/g3-cli/src/lib.rs +++ b/crates/g3-cli/src/lib.rs @@ -241,10 +241,6 @@ pub struct Cli { /// Enable WebDriver browser automation tools #[arg(long)] pub webdriver: bool, - - /// Disable accumulative mode and use traditional interactive mode instead - #[arg(long, help = "Disable accumulative mode (use traditional interactive chat)")] - pub accumulative: bool, } pub async fn run() -> Result<()> { @@ -380,12 +376,6 @@ pub async fn run() -> Result<()> { // Execute task, autonomous mode, or start interactive mode based on machine mode if cli.machine { // Machine mode - use MachineUiWriter - if cli.accumulative { - eprintln!("ERROR: --accumulative mode is not compatible with --machine mode"); - eprintln!("Please use either --accumulative or --machine, but not both."); - std::process::exit(1); - } - let ui_writer = MachineUiWriter::new(); @@ -415,8 +405,8 @@ pub async fn run() -> Result<()> { // It runs when: // 1. No task is provided (not single-shot) // 2. Not in autonomous mode - // 3. Not explicitly disabled with --accumulative flag - let use_accumulative = cli.task.is_none() && !cli.autonomous && !cli.accumulative && !cli.chat; + // 3. Not explicitly disabled with --chat flag + let use_accumulative = cli.task.is_none() && !cli.autonomous && !cli.chat; if use_accumulative { // Run accumulative mode and return early