Commit 8a9441b
LittleCoinCoin
fix(cli): prevent unwanted defaults
Prevent unwanted defaults for enabled/disabled MCP config parameters.
Root cause: argparse's store_true action defaults to False when flag is not
provided, making 'not provided' indistinguishable from 'explicitly false'.
This caused enabled/disabled parameters to be injected into Omni model even
when user didn't specify them, resulting in unexpected config updates.
Solution: Set default=None for --enabled (Codex) and --disabled (Kiro) flags
so that absence is represented as None and doesn't get included in the Omni
payload.
The fix enables tri-state behavior:
- Omitted flag → None → not added to Omni → not included in host config
- Provided flag → True → added to Omni → included in host config
This prevents unwanted value flips during partial updates and eliminates
false UNSUPPORTED warnings when these flags aren't used.1 parent e7fe043 commit 8a9441b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1671 | 1671 | | |
1672 | 1672 | | |
1673 | 1673 | | |
| 1674 | + | |
1674 | 1675 | | |
1675 | 1676 | | |
1676 | 1677 | | |
| |||
1703 | 1704 | | |
1704 | 1705 | | |
1705 | 1706 | | |
| 1707 | + | |
1706 | 1708 | | |
1707 | 1709 | | |
1708 | 1710 | | |
| |||
0 commit comments