Skip to content

bug: ag run fails with timeout — config path mismatch ignores project-local .aegis/config.yaml #3307

Description

@OneStepAt4time

Bug Report

Priority: P1 — new users hit this immediately if they ran ag init inside a project directory

Description:
ag run fails with timeout because the config path lookup in run.ts defaultConfigPath() doesn't walk up to find project-local .aegis/config.yaml. The doctor command does walk up correctly, creating an inconsistency.

Steps to reproduce:

  1. Run ag init inside a project directory (creates .aegis/config.yaml locally)
  2. Run ag run "some prompt"
  3. Times out — can't find config

Expected behavior:
run.ts defaultConfigPath() should walk up directories like doctor does to find project-local config.

Workaround:
Symlink or copy config to ~/.aegis/config.yaml

Found by: Hermes (dogfooding, 2026-05-14)

Fix target: src/cli/run.ts — align defaultConfigPath() with doctor's directory walk

Metadata

Metadata

Labels

P2backendbugSomething isn't workingreleasedIncluded in a published release

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions