mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 01:15:52 +03:00
[PR #368] [MERGED] Add SSE-powered Team Huddle feed with polling fallback #674
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#674
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/368
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @AJaySi
Base:
main← Head:codex/add-server-sent-events-endpoint📝 Commits (1)
c0d9289Add agent huddle SSE feed with frontend live subscriptions📊 Changes
5 files changed (+522 additions, -156 deletions)
View changed files
📝
backend/api/agents_api.py(+245 -1)📝
frontend/src/App.tsx(+2 -0)📝
frontend/src/components/MainDashboard/components/TeamHuddleWidget.tsx(+42 -155)➕
frontend/src/hooks/useAgentHuddleFeed.ts(+167 -0)➕
frontend/src/pages/TeamActivityPage.tsx(+66 -0)📄 Description
Motivation
Description
backend/api/agents_api.pyand implementedGET /api/agents/huddle/feedto return an initial/delta snapshot andGET /api/agents/huddle/streamas an authenticated SSE stream that emitssnapshot,delta, andheartbeatevents and detects run lifecycle changes.AgentRun,AgentEvent,AgentAlert, andAgentApprovalRequestand included a lightweight signature cache to surface run lifecycle updates.frontend/src/hooks/useAgentHuddleFeed.tsthat hydrates from/api/agents/huddle/feed, subscribes to the SSE stream via authenticated fetch, reconciles incoming deltas into bounded lists byid, tracks heartbeats, performs exponential reconnect/backoff, and falls back to periodic polling when SSE is unreliable.TeamHuddleWidgetto consume the live feed and display connection state/heartbeat, added a newTeamActivityPageto surface runs/events/alerts/approvals from the same feed, and registered the/team-activityroute infrontend/src/App.tsx.Testing
python -m compileall backend/api/agents_api.py backend/services/agent_activity_service.py, which succeeded.npx tsc --noEmit --pretty false, which failed due to pre-existing type declaration errors in third-party package@copilotkit/react-core(errors unrelated to these changes)./team-activity, but the headless Chromium process crashed in this environment (SIGSEGV), so no screenshot could be produced.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.