Add realtime config updates via SSE - #326
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Mishenevd
force-pushed
the
feature/realtime-sse-config-updates
branch
from
July 28, 2026 00:14
b7e2ab2 to
ea545a3
Compare
Agent subscribes to a Server-Sent Events stream and applies config changes as soon as the cloud pushes a config-updated event, instead of waiting for the next 60s poll. The existing RealtimeTask poll stays untouched and keeps running as a fallback. Gated behind AIKIDO_FEATURE_SSE (off by default), matching the firewall-node and firewall-python ports of this feature. Uses HttpURLConnection for the stream connection since its read timeout is a true idle timeout, unlike java.net.http.HttpClient's whole-exchange timeout.
Mishenevd
force-pushed
the
feature/realtime-sse-config-updates
branch
from
July 30, 2026 10:29
ea545a3 to
1654765
Compare
timokoessler
approved these changes
Jul 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent subscribes to a Server-Sent Events stream and applies config changes on push instead of waiting for the next 60s poll (spec: zen-specs/realtime-config-updates.md). Existing
RealtimeTaskpoll is unchanged and stays running as fallback.Behind
AIKIDO_FEATURE_SSE(off by default), matching the Node/Python ports.Testing:
agent_api:testsuite: no regressionszen-demo-javaon Fly.io with the flag on, connected to the realruntime.aikido.devbackend, received and applied a realconfig-updatedevent, no errors, old poll task ran unaffected in parallel