From 1d761543b5d6c4e083c1d7bcac7df1013d66d9af Mon Sep 17 00:00:00 2001 From: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:16:54 -0700 Subject: [PATCH] fix(ingest): cancel command exits 0 on success MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cancel_import was unconditionally calling std::process::exit(1), making a successful cancel indistinguishable from a failure. Exit code 1 is reserved for terminal-failure statuses (failed, cancelled) in status / poll_ingest — the cancel command itself succeeded. --- src/commands/ingest.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/commands/ingest.rs b/src/commands/ingest.rs index e4cc7424..66c70563 100644 --- a/src/commands/ingest.rs +++ b/src/commands/ingest.rs @@ -1070,7 +1070,6 @@ fn cancel_import(workspace_id: &str, output: &str, id: &str) { .dark_grey() ); }); - std::process::exit(1); } // --- list-datasources ------------------------------------------------------