Summary:
ag init --force should overwrite an existing .aegis config, but in current builds it can crash/return HTTP 409 (duplicate key) instead of performing the requested overwrite. This violates the documented --force behavior and causes friction for automated/CI bootstraps.
Severity: P2
Reproduction steps:
- Ensure a config exists:
ag init --yes --cwd /tmp/aegis-init-test (or create ~/.aegis/config.yaml manually).
- Attempt a forced init:
ag init --force --cwd /tmp/aegis-init-test (or ag init --yes --force as appropriate).
- Observe: the CLI exits with an error (HTTP 409 or process crash) and the existing config is not overwritten. Check server/CLI logs.
Observed behavior:
- Running
ag init --force can return a 409 conflict or crash the command instead of overwriting the config as --force implies.
Expected behavior:
--force should replace/overwrite existing configuration files without crashing; the command should be idempotent for automation and CI usage.
What to capture for triage:
- CLI output and server logs from a run that reproduces the failure.
- The existing ~/.aegis/config.yaml (sanitise any secrets) to inspect whether a duplicate key arises from merge logic.
Notes:
- This affects automated installs and CI flows that rely on
ag init --force for fresh bootstrapping. Marking P2 and assigning to @OneStepAt4time for investigation and fix.
Summary:
ag init --forceshould overwrite an existing .aegis config, but in current builds it can crash/return HTTP 409 (duplicate key) instead of performing the requested overwrite. This violates the documented --force behavior and causes friction for automated/CI bootstraps.Severity: P2
Reproduction steps:
ag init --yes --cwd /tmp/aegis-init-test(or create ~/.aegis/config.yaml manually).ag init --force --cwd /tmp/aegis-init-test(orag init --yes --forceas appropriate).Observed behavior:
ag init --forcecan return a 409 conflict or crash the command instead of overwriting the config as--forceimplies.Expected behavior:
--forceshould replace/overwrite existing configuration files without crashing; the command should be idempotent for automation and CI usage.What to capture for triage:
Notes:
ag init --forcefor fresh bootstrapping. Marking P2 and assigning to @OneStepAt4time for investigation and fix.