use --auto flag
This commit is contained in:
@@ -214,9 +214,9 @@ pub struct Cli {
|
|||||||
#[arg(long, value_name = "TEXT")]
|
#[arg(long, value_name = "TEXT")]
|
||||||
pub requirements: Option<String>,
|
pub requirements: Option<String>,
|
||||||
|
|
||||||
/// Enable traditional chat mode (disables accumulative autonomous mode)
|
/// Enable accumulative autonomous mode (default is chat mode)
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
pub chat: bool,
|
pub auto: bool,
|
||||||
|
|
||||||
/// Enable machine-friendly output mode with JSON markers and stats
|
/// Enable machine-friendly output mode with JSON markers and stats
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
@@ -401,12 +401,12 @@ pub async fn run() -> Result<()> {
|
|||||||
} else {
|
} else {
|
||||||
// Normal mode - use ConsoleUiWriter
|
// Normal mode - use ConsoleUiWriter
|
||||||
|
|
||||||
// NEW DEFAULT: Accumulative mode for interactive sessions
|
// DEFAULT: Chat mode for interactive sessions
|
||||||
// It runs when:
|
// It runs when:
|
||||||
// 1. No task is provided (not single-shot)
|
// 1. No task is provided (not single-shot)
|
||||||
// 2. Not in autonomous mode
|
// 2. Not in autonomous mode
|
||||||
// 3. Not explicitly disabled with --chat flag
|
// 3. Not explicitly enabled with --auto flag
|
||||||
let use_accumulative = cli.task.is_none() && !cli.autonomous && !cli.chat;
|
let use_accumulative = cli.task.is_none() && !cli.autonomous && cli.auto;
|
||||||
|
|
||||||
if use_accumulative {
|
if use_accumulative {
|
||||||
// Run accumulative mode and return early
|
// Run accumulative mode and return early
|
||||||
|
|||||||
Reference in New Issue
Block a user