Skip to content

bug: ag init --yes does not create config.yaml when .aegis dir has partial state #3345

Description

@OneStepAt4time

Bug Report

Aegis version: v0.6.7-preview.1

Reproduction

  1. Have a ~/.aegis/ directory with some files (e.g., keys.json, state.json) but no config.yaml
  2. Run ag init --yes

Expected

Creates config.yaml and prints working next steps.

Actual

⚠️  .aegis/config.yaml already exists.
⚠️  Existing auth token will be preserved.
✅ Using existing .aegis/config.yaml
✅ Reusing existing API token

But config.yaml was never actually created. The command lies about the state.

Impact

MEDIUM — confusing for users recovering from partial/corrupted state. The CLI claims success but the server cannot start (no config).

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2P4P4 — nice to have / backlogbackendbugSomething isn't workingreleasedIncluded in a published release

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions