-
fix(cli): resolve duplicate --code-aware flag breaking proxy import
发布于
2026-05-08 18:43:59 +00:00 PR #411 reintroduced an older
--code-awareis_flag option and a
duplicatecode_aware_enabled=kwarg in the ProxyConfig call, which
collided with the canonical tristate--code-aware/--no-code-aware
introduced in #260. The result: every CLI entry point (headroom proxy,
headroom wrap codex,headroom wrap claude, etc.) raised at import
time:File ".../headroom/cli/proxy.py", line 575 code_aware_enabled=code_aware or _get_env_bool(...) SyntaxError: keyword argument repeated: code_aware_enabledRemoves:
- The legacy
@click.option("--code-aware", is_flag=True, ...) - The legacy
code_aware: boolfunction parameter - The duplicate
code_aware_enabled=kwarg
Keeps the tristate
--code-aware/--no-code-aware> env-var >
default-off resolver. Behavior is unchanged for all flag combinations
covered by tests/test_cli_proxy_env.py.Test mocks for
run_serverupdated to accept**kwargsto match
the real signature (config plus run-time options like print_banner).
Without this the four code-aware tests added in #411 raised
TypeError on each invocation.Plugin marketplace/manifest version bump 0.21.5 → 0.21.7 carried in
this commit by the sync-plugin-versions pre-commit hook.下载附件
- The legacy