From fccfd5135818acc9ebcdac45ecb5ff4060d161dc Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 11 Feb 2026 16:52:48 +0000 Subject: fix: force interactive mode for list command The list command is inherently interactive - it presents menus for browsing and selecting proposals. Without interactive mode, all choice() calls auto-select default index 0, causing the first proposal to be checked out immediately without user input. --- src/bin/ngit/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs index 5d29b02..b6b51d0 100644 --- a/src/bin/ngit/main.rs +++ b/src/bin/ngit/main.rs @@ -45,7 +45,12 @@ async fn main() { } }, Commands::Init(args) => sub_commands::init::launch(&cli, args).await, - Commands::List => sub_commands::list::launch().await, + Commands::List => { + // list is inherently interactive - it presents menus for + // browsing and selecting proposals + std::env::set_var("NGIT_INTERACTIVE_MODE", "1"); + sub_commands::list::launch().await + } Commands::Send(args) => sub_commands::send::launch(&cli, args, false).await, Commands::Sync(args) => sub_commands::sync::launch(args).await, } -- cgit v1.2.3