From bdd3348f46205e5b390f82ea0d8949ffbaf8ce3f Mon Sep 17 00:00:00 2001 From: Test User Date: Sun, 19 Apr 2026 02:17:55 +0000 Subject: [PATCH 1/2] fix: warn when automation-profile add --update given but no existing profile When the --update flag is provided to agents automation-profile add but no existing profile with the given name exists, the command now emits a clear warning message to the user before proceeding to create the new profile. This prevents silent no-ops and helps users understand that --update had no effect. Added a new BDD scenario to automation_profile_cli.feature to verify the warning is displayed when --update is given for a non-existent profile. ISSUES CLOSED: #8830 --- features/automation_profile_cli.feature | 7 +++++++ src/cleveragents/cli/commands/automation_profile.py | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/features/automation_profile_cli.feature b/features/automation_profile_cli.feature index ed081c27c..33f970903 100644 --- a/features/automation_profile_cli.feature +++ b/features/automation_profile_cli.feature @@ -20,6 +20,13 @@ Feature: Automation Profile CLI commands Then the automation-profile add should succeed And the automation-profile output should contain "Updated" + Scenario: Add profile with --update when profile does not exist warns and creates + Given a valid automation profile config YAML file + When I run automation-profile add with --config and --update + Then the automation-profile add should succeed + And the automation-profile output should contain "Warning" + And the automation-profile output should contain "Profile Added" + Scenario: Add profile conflict without --update Given a valid automation profile config YAML file And the custom profile "acme/strict" already exists diff --git a/src/cleveragents/cli/commands/automation_profile.py b/src/cleveragents/cli/commands/automation_profile.py index da6803375..1c5baab8e 100644 --- a/src/cleveragents/cli/commands/automation_profile.py +++ b/src/cleveragents/cli/commands/automation_profile.py @@ -236,6 +236,12 @@ def add_profile( ) raise typer.Abort() + if update and not existing: + console.print( + f"[yellow]Warning:[/yellow] Profile '{name}' does not exist. " + f"Creating new profile (--update flag has no effect)." + ) + if update and existing: profile = service.update_profile(name, config_data) title = "Profile Updated" -- 2.52.0 From c30d52d1719df069dfd9e4f7e3b335b9cd50fcd1 Mon Sep 17 00:00:00 2001 From: HAL9000 Date: Fri, 24 Apr 2026 04:23:48 +0000 Subject: [PATCH 2/2] ci: re-trigger CI after transient infrastructure failures -- 2.52.0