fix(cli): add Progress, Timing, Execution Detail, and Cost panels to agents plan status output #9461

Merged
HAL9000 merged 3 commits from fix/plan-status-missing-output-panels into master 2026-06-03 14:00:32 +00:00

3 Commits

Author SHA1 Message Date
HAL9000 bcf9f7955c docs(cli): add clarifying comments for Execution Detail panel (N/A sandbox refs, checkpoint approximation)
CI / lint (pull_request) Successful in 59s
CI / push-validation (pull_request) Successful in 41s
CI / quality (pull_request) Successful in 1m5s
CI / helm (pull_request) Successful in 47s
CI / security (pull_request) Successful in 1m11s
CI / build (pull_request) Successful in 57s
CI / typecheck (pull_request) Successful in 1m25s
CI / unit_tests (pull_request) Successful in 5m19s
CI / docker (pull_request) Successful in 1m45s
CI / integration_tests (pull_request) Successful in 9m23s
CI / coverage (pull_request) Successful in 8m58s
CI / status-check (pull_request) Successful in 3s
2026-06-03 09:01:44 -04:00
HAL9000 2165e82d72 fix(cli): add Progress, Timing, Execution Detail, and Cost panels to agents plan status output
Restore all five required Rich output panels to _print_lifecycle_plan():
- Plan Status panel: Processing State, Projects, Arguments, Automation Profile,
  actors (Strategy/Execution/Estimation/Invariant), Execution Environment,
  Created/Updated timestamps, Description, Definition of Done, DoD evaluation,
  Invariants, resume metadata, multi-project scopes, error message
- Progress panel: Strategize/Execute/Apply step indicators
- Timing panel: Started, Elapsed, ETA (using estimation_result when available),
  and all phase timestamps (Strategize Started/Completed, Execute Started/Completed,
  Applied At)
- Execution Detail panel: Sandbox, Tool Calls (N/A), Files Modified (N/A),
  Child Plans, Checkpoints
- Cost panel: Tokens Used, Cost So Far, Estimated Total Cost
- Footer: ✓ OK Status refreshed

Also fixes:
- tool_calls semantic bug: display N/A instead of total_tokens
- files_modified: display N/A (not available in cost_metadata)
- ETA calculation: use estimation_result.estimated_time_seconds or N/A
- In-function import: moved Plan as LifecyclePlan to top of file
- Import sorting: split aliased import per ruff isort rules

Adds BDD scenarios for all five panels in plan_lifecycle_cli_coverage.feature
with step definitions in plan_lifecycle_cli_coverage_steps.py.

Updates CHANGELOG.md with user-facing output changes.

ISSUES CLOSED: #9341
2026-06-03 09:01:44 -04:00
HAL9000 159ae7b149 fix(cli): add Progress, Timing, Execution Detail, and Cost panels to agents plan status output
Implements the missing output panels for the 'agents plan status' command as specified in the product specification. The command now renders five panels:

1. Plan Status - Plan ID, Phase, State, Action, Project, Automation, Attempt
2. Progress - Strategize/Execute/Apply step progress with status indicators (✓, , •)
3. Timing - Started, Elapsed, ETA
4. Execution Detail - Sandbox strategy, Tool Calls, Files Modified, Child Plans, Checkpoints
5. Cost - Tokens Used, Cost So Far, Estimated

Also adds the '✓ OK Status refreshed' footer line as required by the specification.

ISSUES CLOSED: #9341
2026-06-03 09:01:44 -04:00