fix(maestro): seed catalog from REST so the UI renders without /api/events
ci / rust (push) Successful in 2m6s

CatalogStore.start() previously connected the events WS only — fine when
loaded from the registry, broken when loaded from maestro-web (the daemon
has no /api/events endpoint yet, so the WS handshake 404s and the catalog
stays empty). Issue an initial resync() before connect(); the WS, when it
succeeds, takes over with live deltas. Daemon-side WS is filed as NAP-248.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-26 21:02:57 +00:00
co-authored by Claude Opus 4.7
parent cc6e04ca5a
commit 54b5763871
+5
View File
@@ -16,6 +16,11 @@ export class CatalogStore {
private backoffMs = 500;
start(): void {
// Seed the catalog from REST so the UI renders even when the events WS
// hasn't connected yet (or isn't available — e.g. talking to a daemon's
// local /api surface, which has no /api/events). The WS, when it
// succeeds, takes over with live deltas.
void this.resync();
this.connect();
}