Skip to content

Add Config updates via SSE#1064

Merged
hansott merged 8 commits into
mainfrom
config-sse
Jul 2, 2026
Merged

Add Config updates via SSE#1064
hansott merged 8 commits into
mainfrom
config-sse

Conversation

@timokoessler

@timokoessler timokoessler commented Jun 19, 2026

Copy link
Copy Markdown
Member

Extracted from #984

Summary by Aikido

⚠️ Security Issues: 2 🔍 Quality Issues: 7 ✅ Resolved Issues: 1

🚀 New Features

  • Implemented SSE-based config updates with connection and parsing

⚡ Enhancements

  • Probed realtime endpoint and fell back to polling when unreachable

🔧 Refactors

  • Extended poll/getConfigLastUpdatedAt APIs to accept realtime URL
  • Adjusted Undici tests to wait for realtime probe before assertions
  • Made test helper match accept variadic arguments and forward them

More info

Extracted from #984

Co-Authored-By: Hans Ott <3886384+hansott@users.noreply.github.com>
Comment thread library/agent/realtime/listenForConfigUpdates.ts
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

hansott and others added 5 commits June 26, 2026 15:04
The new SSE-based config updates now only run when the sse feature
flag is on. When it's off, agents keep the old behavior: polling
the runtime.aikido.dev host for config changes.

getRealtimeURL() points at the SSE host (zen.aikido.dev), so the
no-SSE path uses the new getPollingURL() to reach the old host.
Comment thread library/agent/realtime/connectToSSE.ts
Comment thread library/helpers/eventsource-parser/parse.ts
@hansott
hansott merged commit fe11c32 into main Jul 2, 2026
62 of 64 checks passed
@hansott
hansott deleted the config-sse branch July 2, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants