Fix CLI global format flag version command test failure #4363

Open
opened 2026-04-08 05:09:30 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit Message: fix(cli): version command reads format from global ctx.obj
  • Branch: fix/cli-global-format-flag-version

Background and Context

The CLI global format flag test "version command reads format from global ctx.obj" (features/cli_global_format_flag.feature:51) is failing. This test verifies that the version command respects the global format flag.

Current Behavior

The test is failing, indicating that the version command is not properly reading the format from the global context object.

Expected Behavior

The agents --format <format> version command should use the global format setting from ctx.obj.

Acceptance Criteria

  • The test "features/cli_global_format_flag.feature:51" passes
  • No regression in related functionality
  • All quality gates pass

Subtasks

  • Investigate how the global format flag should be passed to the version command
  • Implement the necessary fix to read format from ctx.obj
  • Verify the test passes after the fix
  • Run full test suite to ensure no regressions
  • Verify coverage ≥97% via nox -s coverage_report

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off
  • The failing test now passes
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly
  • The commit is submitted as a pull request to master, reviewed, and merged
## Metadata - **Commit Message**: `fix(cli): version command reads format from global ctx.obj` - **Branch**: `fix/cli-global-format-flag-version` ## Background and Context The CLI global format flag test "version command reads format from global ctx.obj" (features/cli_global_format_flag.feature:51) is failing. This test verifies that the version command respects the global format flag. ## Current Behavior The test is failing, indicating that the version command is not properly reading the format from the global context object. ## Expected Behavior The `agents --format <format> version` command should use the global format setting from ctx.obj. ## Acceptance Criteria - The test "features/cli_global_format_flag.feature:51" passes - No regression in related functionality - All quality gates pass ## Subtasks - [ ] Investigate how the global format flag should be passed to the version command - [ ] Implement the necessary fix to read format from ctx.obj - [ ] Verify the test passes after the fix - [ ] Run full test suite to ensure no regressions - [ ] Verify coverage ≥97% via `nox -s coverage_report` ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off - The failing test now passes - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly - The commit is submitted as a **pull request** to `master`, reviewed, and **merged**
HAL9000 self-assigned this 2026-04-08 11:41:41 +00:00
HAL9000 added this to the v3.5.0 milestone 2026-04-08 11:41:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#4363
No description provided.