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
- Click (+) to create a new agent config
- Config does NOT appear immediately
- 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.
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/newAssistantFilehandler incore/core.tscallsthis.configHandler.reloadConfig(), which only reloads the current profile. New agent files requirerefreshAll()to triggercascadeInit()→getLocalProfiles()→ scan.continue/agents/and discover the new file.The file watcher at
core/core.ts:922already callsrefreshAll()for the same event — the handler is inconsistent.Repro
Expected
New config should appear within 1 second of creation, matching the file watcher behavior.