---
id: TASK-6.1
title: Wire CLI `--` args into phase arg resolution
status: Done
assignee:
  - codex
created_date: '2026-02-03 14:30'
updated_date: '2026-02-03 14:37'
labels: []
dependencies: []
parent_task_id: TASK-6
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Capture additional CLI args from `Api.args['']` (or equivalent) and append them to phase commands after zconf args. Ensure it works for conf/build/flash/run and preserves behavior when unset.
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [x] #1 CLI `--` args are retrieved from parsed args and made available to phase execution.
- [x] #2 Phase commands append CLI args after global and profile args.
- [x] #3 No behavior change when CLI args are absent.
<!-- AC:END -->

## Implementation Plan

<!-- SECTION:PLAN:BEGIN -->
1. Use the parsed CLI additional args from config[''] (argparse-trimmed key) as the source for `--` values.
2. Append CLI `--` args after global and profile args in phase arg resolution.
3. Keep behavior unchanged when CLI args are absent.
<!-- SECTION:PLAN:END -->

## Implementation Notes

<!-- SECTION:NOTES:BEGIN -->
Appended CLI `--` args from config[''] after global/profile in phase_extra_args (conf/build/flash/run). No tests run for this subtask.
<!-- SECTION:NOTES:END -->
