---
id: TASK-13
title: Update cmd module unit tests for new API
status: Done
assignee:
  - codex
created_date: '2026-02-26 22:26'
updated_date: '2026-02-26 22:29'
labels: []
dependencies: []
references:
  - src/core/cmd.rs
  - tests/integration_tests.rs
  - tests/e2e_tests.rs
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Align unit tests with the updated `cmd` module API and ensure command tests compile and pass without behavior changes.
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [x] #1 All unit tests referencing `src/core/cmd.rs` compile against the new API and pass.
- [x] #2 `just test` passes.
- [x] #3 No CLI/config behavior changes; tests only unless API changes require minimal harness updates.
<!-- AC:END -->

## Implementation Plan

<!-- SECTION:PLAN:BEGIN -->
Plan:
1) Run `rg`/`just test` to capture compile failures tied to the cmd API change.
2) Update affected unit tests in `src/core/cmd.rs` and any integration tests to match new API signatures or behavior.
3) Re-run `just test` to confirm fixes.
<!-- SECTION:PLAN:END -->

## Implementation Notes

<!-- SECTION:NOTES:BEGIN -->
Updated cmd unit tests for new `cmd_run` signature by adding `list` and `img` arguments in run tests. `just test` now passes (63 tests).
<!-- SECTION:NOTES:END -->

## Final Summary

<!-- SECTION:FINAL_SUMMARY:BEGIN -->
Adjusted cmd module unit tests to match the updated `cmd_run` API by supplying `list` and `img` arguments in run tests. `just test` passes.

Tests: `just test`
<!-- SECTION:FINAL_SUMMARY:END -->
