Skip to content

New agent configs don't appear until file watcher fires #11062

@shanevcantwell

Description

@shanevcantwell

Bug

Creating a new agent file via the (+) button doesn't immediately show the new config in the configs list. It only appears after the file watcher fires (~5-10 seconds later).

Root cause

The config/newAssistantFile handler in core/core.ts calls this.configHandler.reloadConfig(), which only reloads the current profile. New agent files require refreshAll() to trigger cascadeInit()getLocalProfiles() → scan .continue/agents/ and discover the new file.

The file watcher at core/core.ts:922 already calls refreshAll() for the same event — the handler is inconsistent.

Repro

  1. Click (+) to create a new agent config
  2. Config does NOT appear immediately
  3. Wait ~5-10 seconds — config appears when file watcher fires

Expected

New config should appear within 1 second of creation, matching the file watcher behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelates to configuration optionskind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions